diff options
Diffstat (limited to 'content/common/socket_stream_handle_data.h')
-rw-r--r-- | content/common/socket_stream_handle_data.h | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/content/common/socket_stream_handle_data.h b/content/common/socket_stream_handle_data.h index 113f889..3ce79ca 100644 --- a/content/common/socket_stream_handle_data.h +++ b/content/common/socket_stream_handle_data.h @@ -6,36 +6,20 @@ #define CONTENT_RENDERER_SOCKET_STREAM_HANDLE_DATA_H_ #include "base/supports_user_data.h" -#include "content_export.h" - -namespace blink { -class WebSocketStreamHandle; -} +#include "content/common/content_export.h" namespace content { // User data stored in each WebSocketStreamHandleImpl. class SocketStreamHandleData : public base::SupportsUserData::Data { public: + explicit SocketStreamHandleData(int render_frame_id) + : render_frame_id_(render_frame_id) {} virtual ~SocketStreamHandleData() {} int render_frame_id() const { return render_frame_id_; } - // Creates SocketStreamHandleData object with |render_frame_id| and store it - // to |handle|. - static void AddToHandle( - blink::WebSocketStreamHandle* handle, int render_frame_id); - - // Retrieves the stored user data from blink::WebSocketStreamHandle object. - // |handle| must actually be a WebSocketStreamHandleImpl object. - CONTENT_EXPORT static const SocketStreamHandleData* ForHandle( - blink::WebSocketStreamHandle* handle); - private: - explicit SocketStreamHandleData(int render_frame_id) - : render_frame_id_(render_frame_id) { - } - int render_frame_id_; DISALLOW_COPY_AND_ASSIGN(SocketStreamHandleData); |