Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Side by Side Diff: content/common/socket_stream_handle_data.h

Issue 9677031: Bind RenderViewImpl routing_id to SocketStreamHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reflects review comments by tony and darin Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_RENDERER_SOCKET_STREAM_HANDLE_DATA_H_
6 #define CONTENT_RENDERER_SOCKET_STREAM_HANDLE_DATA_H_
7 #pragma once
8
9 #include "base/supports_user_data.h"
10
11 namespace WebKit {
12 class WebSocketStreamHandle;
13 }
14
15 // User data stored in each WebSocketStreamHandleImpl.
16 class SocketStreamHandleData : public base::SupportsUserData::Data {
17 public:
18 explicit SocketStreamHandleData(int render_view_id)
19 : render_view_id_(render_view_id) {
20 }
21 virtual ~SocketStreamHandleData() {}
22
23 int render_view_id() const { return render_view_id_; }
24
25 // Picks the stored user data from WebKit::WebSocketStreamHandle object.
wtc 2012/03/19 23:21:03 Nit: Picks => Retrieves or Extracts Ni
Takashi Toyoshima 2012/03/20 00:18:03 Thank you. "Actually" must be the right word that
26 // Virtually, |handle| must be WebSocketStreamHandleImpl object.
27 static const SocketStreamHandleData* ForHandle(
28 WebKit::WebSocketStreamHandle* handle);
29
30 private:
31 int render_view_id_;
32
33 DISALLOW_COPY_AND_ASSIGN(SocketStreamHandleData);
34 };
35
36 #endif // CONTENT_RENDERER_SOCKET_STREAM_HANDLE_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698