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

Side by Side Diff: chrome/browser/renderer_host/pepper_message_filter.cc

Issue 6338002: net: Remove typedef net::URLRequestContext URLRequestContext; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for real Created 9 years, 11 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/pepper_message_filter.h" 5 #include "chrome/browser/renderer_host/pepper_message_filter.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "base/threading/worker_pool.h" 9 #include "base/threading/worker_pool.h"
10 #include "chrome/browser/browser_thread.h" 10 #include "chrome/browser/browser_thread.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 DISALLOW_COPY_AND_ASSIGN(LookupRequest); 164 DISALLOW_COPY_AND_ASSIGN(LookupRequest);
165 }; 165 };
166 166
167 void PepperMessageFilter::OnPepperConnectTcp( 167 void PepperMessageFilter::OnPepperConnectTcp(
168 int routing_id, 168 int routing_id,
169 int request_id, 169 int request_id,
170 const std::string& host, 170 const std::string& host,
171 uint16 port) { 171 uint16 port) {
172 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 172 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
173 173
174 URLRequestContext* req_context = 174 net::URLRequestContext* req_context =
175 profile_->GetRequestContext()->GetURLRequestContext(); 175 profile_->GetRequestContext()->GetURLRequestContext();
176 net::HostResolver::RequestInfo request_info(net::HostPortPair(host, port)); 176 net::HostResolver::RequestInfo request_info(net::HostPortPair(host, port));
177 177
178 // The lookup request will delete itself on completion. 178 // The lookup request will delete itself on completion.
179 LookupRequest* lookup_request = 179 LookupRequest* lookup_request =
180 new LookupRequest(this, req_context->host_resolver(), 180 new LookupRequest(this, req_context->host_resolver(),
181 routing_id, request_id, request_info); 181 routing_id, request_id, request_info);
182 lookup_request->Start(); 182 lookup_request->Start();
183 } 183 }
184 184
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 276
277 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, 277 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
278 NewRunnableMethod( 278 NewRunnableMethod(
279 this, &PepperMessageFilter::Send, 279 this, &PepperMessageFilter::Send,
280 new ViewMsg_PepperConnectTcpACK( 280 new ViewMsg_PepperConnectTcpACK(
281 routing_id, request_id, 281 routing_id, request_id,
282 socket_for_transit, local_addr, remote_addr))); 282 socket_for_transit, local_addr, remote_addr)));
283 } 283 }
284 284
285 #endif // ENABLE_FLAPPER_HACKS 285 #endif // ENABLE_FLAPPER_HACKS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698