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

Side by Side Diff: content/browser/renderer_host/socket_stream_dispatcher_host.cc

Issue 6532073: Move core pieces of browser\renderer_host to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
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 "chrome/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" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/renderer_host/socket_stream_host.h"
10 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
11 #include "chrome/common/render_messages_params.h" 10 #include "chrome/common/render_messages_params.h"
12 #include "chrome/common/net/socket_stream.h" 11 #include "chrome/common/net/socket_stream.h"
13 #include "chrome/common/net/url_request_context_getter.h" 12 #include "chrome/common/net/url_request_context_getter.h"
13 #include "content/browser/renderer_host/socket_stream_host.h"
14 #include "net/websockets/websocket_job.h" 14 #include "net/websockets/websocket_job.h"
15 #include "net/websockets/websocket_throttle.h" 15 #include "net/websockets/websocket_throttle.h"
16 16
17 SocketStreamDispatcherHost::SocketStreamDispatcherHost() { 17 SocketStreamDispatcherHost::SocketStreamDispatcherHost() {
18 net::WebSocketJob::EnsureInit(); 18 net::WebSocketJob::EnsureInit();
19 } 19 }
20 20
21 SocketStreamDispatcherHost::~SocketStreamDispatcherHost() { 21 SocketStreamDispatcherHost::~SocketStreamDispatcherHost() {
22 // TODO(ukai): Implement IDMap::RemoveAll(). 22 // TODO(ukai): Implement IDMap::RemoveAll().
23 for (IDMap<SocketStreamHost>::const_iterator iter(&hosts_); 23 for (IDMap<SocketStreamHost>::const_iterator iter(&hosts_);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 if (!rv) { 156 if (!rv) {
157 URLRequestContextGetter* context_getter = 157 URLRequestContextGetter* context_getter =
158 Profile::GetDefaultRequestContext(); 158 Profile::GetDefaultRequestContext();
159 if (context_getter) 159 if (context_getter)
160 rv = context_getter->GetURLRequestContext(); 160 rv = context_getter->GetURLRequestContext();
161 } 161 }
162 162
163 return rv; 163 return rv;
164 } 164 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698