| 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 #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 "chrome/browser/profiles/profile.h" | |
| 9 #include "content/browser/content_browser_client.h" | 8 #include "content/browser/content_browser_client.h" |
| 10 #include "content/browser/renderer_host/socket_stream_host.h" | 9 #include "content/browser/renderer_host/socket_stream_host.h" |
| 11 #include "content/common/socket_stream.h" | 10 #include "content/common/socket_stream.h" |
| 12 #include "content/common/socket_stream_messages.h" | 11 #include "content/common/socket_stream_messages.h" |
| 13 #include "content/common/resource_messages.h" | 12 #include "content/common/resource_messages.h" |
| 14 #include "net/base/cookie_monster.h" | 13 #include "net/base/cookie_monster.h" |
| 15 #include "net/url_request/url_request_context_getter.h" | 14 #include "net/url_request/url_request_context_getter.h" |
| 16 #include "net/websockets/websocket_job.h" | 15 #include "net/websockets/websocket_job.h" |
| 17 #include "net/websockets/websocket_throttle.h" | 16 #include "net/websockets/websocket_throttle.h" |
| 18 | 17 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 hosts_.Remove(socket_id); | 164 hosts_.Remove(socket_id); |
| 166 if (!Send(new SocketStreamMsg_Closed(socket_id))) { | 165 if (!Send(new SocketStreamMsg_Closed(socket_id))) { |
| 167 LOG(ERROR) << "SocketStreamMsg_Closed failed."; | 166 LOG(ERROR) << "SocketStreamMsg_Closed failed."; |
| 168 } | 167 } |
| 169 } | 168 } |
| 170 | 169 |
| 171 net::URLRequestContext* SocketStreamDispatcherHost::GetURLRequestContext() { | 170 net::URLRequestContext* SocketStreamDispatcherHost::GetURLRequestContext() { |
| 172 return url_request_context_selector_->GetRequestContext( | 171 return url_request_context_selector_->GetRequestContext( |
| 173 ResourceType::SUB_RESOURCE); | 172 ResourceType::SUB_RESOURCE); |
| 174 } | 173 } |
| OLD | NEW |