OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/id_map.h" | 11 #include "base/id_map.h" |
12 #include "chrome/browser/browser_message_filter.h" | 12 #include "chrome/browser/browser_message_filter.h" |
13 #include "chrome/browser/renderer_host/resource_message_filter.h" | 13 #include "content/browser/renderer_host/resource_message_filter.h" |
14 #include "net/socket_stream/socket_stream.h" | 14 #include "net/socket_stream/socket_stream.h" |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 class SocketStreamHost; | 17 class SocketStreamHost; |
18 | 18 |
19 // Dispatches ViewHostMsg_SocketStream_* messages sent from renderer. | 19 // Dispatches ViewHostMsg_SocketStream_* messages sent from renderer. |
20 // It also acts as SocketStream::Delegate so that it sends | 20 // It also acts as SocketStream::Delegate so that it sends |
21 // ViewMsg_SocketStream_* messages back to renderer. | 21 // ViewMsg_SocketStream_* messages back to renderer. |
22 class SocketStreamDispatcherHost : public BrowserMessageFilter, | 22 class SocketStreamDispatcherHost : public BrowserMessageFilter, |
23 public net::SocketStream::Delegate { | 23 public net::SocketStream::Delegate { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 net::URLRequestContext* GetURLRequestContext(); | 56 net::URLRequestContext* GetURLRequestContext(); |
57 | 57 |
58 IDMap<SocketStreamHost> hosts_; | 58 IDMap<SocketStreamHost> hosts_; |
59 scoped_refptr<ResourceMessageFilter::URLRequestContextOverride> | 59 scoped_refptr<ResourceMessageFilter::URLRequestContextOverride> |
60 url_request_context_override_; | 60 url_request_context_override_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); | 62 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); |
63 }; | 63 }; |
64 | 64 |
65 #endif // CHROME_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ | 65 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ |
OLD | NEW |