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

Side by Side Diff: content/browser/renderer_host/websocket_host.h

Issue 26544003: Make net::WebSocketChannel deletion safe and enable new IPCs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add missing "virtual" keyword Created 7 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/websocket.h" 13 #include "content/common/websocket.h"
14 14
15 class GURL; 15 class GURL;
16 16
17 namespace net { 17 namespace net {
18 class WebSocketChannel; 18 class WebSocketChannel;
19 class URLRequestContext; 19 class URLRequestContext;
20 } // namespace net 20 } // namespace net
21 21
22 namespace IPC { 22 namespace IPC {
23 class Message; 23 class Message;
24 } // namespace IPC 24 } // namespace IPC
25 25
26 namespace content { 26 namespace content {
27 27
28 class WebSocketDispatcherHost; 28 class WebSocketDispatcherHost;
29 29
30 // Host of WebSocketChannel. The lifetime of an instance of this class is 30 // Host of net::WebSocketChannel. The lifetime of an instance of this class is
31 // completely controlled by the WebSocketDispatcherHost. 31 // completely controlled by the WebSocketDispatcherHost object.
32 class CONTENT_EXPORT WebSocketHost { 32 class CONTENT_EXPORT WebSocketHost {
33 public: 33 public:
34 WebSocketHost(int routing_id, 34 WebSocketHost(int routing_id,
35 WebSocketDispatcherHost* dispatcher, 35 WebSocketDispatcherHost* dispatcher,
36 net::URLRequestContext* url_request_context); 36 net::URLRequestContext* url_request_context);
37 virtual ~WebSocketHost(); 37 virtual ~WebSocketHost();
38 38
39 // General message dispatch. WebSocketDispatcherHost::OnMessageReceived 39 // General message dispatch. WebSocketDispatcherHost::OnMessageReceived
40 // delegates to this method after looking up the |routing_id|. 40 // delegates to this method after looking up the |routing_id|.
41 virtual bool OnMessageReceived(const IPC::Message& message, 41 virtual bool OnMessageReceived(const IPC::Message& message,
(...skipping 20 matching lines...) Expand all
62 62
63 // The ID used to route messages. 63 // The ID used to route messages.
64 int routing_id_; 64 int routing_id_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(WebSocketHost); 66 DISALLOW_COPY_AND_ASSIGN(WebSocketHost);
67 }; 67 };
68 68
69 } // namespace content 69 } // namespace content
70 70
71 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_ 71 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698