Non-SFI mode: Clean up libevent_nacl_nonsfi.gyp.
[chromium-blink-merge.git] / content / common / socket_stream_handle_data.h
blobad241784616a99992c8c0b9e660c66d1a1cec76c
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_SOCKET_STREAM_HANDLE_DATA_H_
6 #define CONTENT_RENDERER_SOCKET_STREAM_HANDLE_DATA_H_
8 #include "base/supports_user_data.h"
9 #include "content/common/content_export.h"
11 namespace content {
13 // User data stored in each WebSocketStreamHandleImpl.
14 class SocketStreamHandleData : public base::SupportsUserData::Data {
15 public:
16 explicit SocketStreamHandleData(int render_frame_id)
17 : render_frame_id_(render_frame_id) {}
18 ~SocketStreamHandleData() override {}
20 int render_frame_id() const { return render_frame_id_; }
22 private:
23 int render_frame_id_;
25 DISALLOW_COPY_AND_ASSIGN(SocketStreamHandleData);
28 } // namespace content
30 #endif // CONTENT_RENDERER_SOCKET_STREAM_HANDLE_DATA_H_