OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 5 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/browser/renderer_host/socket_stream_host.h" | 8 #include "content/browser/renderer_host/socket_stream_host.h" |
9 #include "content/browser/ssl/ssl_manager.h" | 9 #include "content/browser/ssl/ssl_manager.h" |
10 #include "content/common/resource_messages.h" | 10 #include "content/common/resource_messages.h" |
11 #include "content/common/socket_stream.h" | 11 #include "content/common/socket_stream.h" |
12 #include "content/common/socket_stream_messages.h" | 12 #include "content/common/socket_stream_messages.h" |
13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
14 #include "content/public/browser/global_request_id.h" | 14 #include "content/public/browser/global_request_id.h" |
15 #include "net/cookies/cookie_monster.h" | 15 #include "net/cookies/canonical_cookie.h" |
16 #include "net/url_request/url_request_context_getter.h" | 16 #include "net/url_request/url_request_context_getter.h" |
17 #include "net/websockets/websocket_job.h" | 17 #include "net/websockets/websocket_job.h" |
18 #include "net/websockets/websocket_throttle.h" | 18 #include "net/websockets/websocket_throttle.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 SocketStreamDispatcherHost::SocketStreamDispatcherHost( | 22 SocketStreamDispatcherHost::SocketStreamDispatcherHost( |
23 int render_process_id, | 23 int render_process_id, |
24 ResourceMessageFilter::URLRequestContextSelector* selector, | 24 ResourceMessageFilter::URLRequestContextSelector* selector, |
25 ResourceContext* resource_context) | 25 ResourceContext* resource_context) |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 LOG(ERROR) << "SocketStreamMsg_Closed failed."; | 222 LOG(ERROR) << "SocketStreamMsg_Closed failed."; |
223 } | 223 } |
224 } | 224 } |
225 | 225 |
226 net::URLRequestContext* SocketStreamDispatcherHost::GetURLRequestContext() { | 226 net::URLRequestContext* SocketStreamDispatcherHost::GetURLRequestContext() { |
227 return url_request_context_selector_->GetRequestContext( | 227 return url_request_context_selector_->GetRequestContext( |
228 ResourceType::SUB_RESOURCE); | 228 ResourceType::SUB_RESOURCE); |
229 } | 229 } |
230 | 230 |
231 } // namespace content | 231 } // namespace content |
OLD | NEW |