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

Side by Side Diff: chrome/browser/net/connect_interceptor.cc

Issue 5384002: net: Remove typedef net::URLRequest URLRequest; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/net/connect_interceptor.h" 5 #include "chrome/browser/net/connect_interceptor.h"
6 6
7 #include "chrome/browser/net/predictor_api.h" 7 #include "chrome/browser/net/predictor_api.h"
8 #include "net/base/load_flags.h" 8 #include "net/base/load_flags.h"
9 9
10 namespace chrome_browser_net { 10 namespace chrome_browser_net {
11 11
12 ConnectInterceptor::ConnectInterceptor() { 12 ConnectInterceptor::ConnectInterceptor() {
13 URLRequest::RegisterRequestInterceptor(this); 13 net::URLRequest::RegisterRequestInterceptor(this);
14 } 14 }
15 15
16 ConnectInterceptor::~ConnectInterceptor() { 16 ConnectInterceptor::~ConnectInterceptor() {
17 URLRequest::UnregisterRequestInterceptor(this); 17 net::URLRequest::UnregisterRequestInterceptor(this);
18 } 18 }
19 19
20 net::URLRequestJob* ConnectInterceptor::MaybeIntercept( 20 net::URLRequestJob* ConnectInterceptor::MaybeIntercept(
21 net::URLRequest* request) { 21 net::URLRequest* request) {
22 // Learn what URLs are likely to be needed during next startup. 22 // Learn what URLs are likely to be needed during next startup.
23 // Pass actual URL, rather than WithEmptyPath, as we often won't need to do 23 // Pass actual URL, rather than WithEmptyPath, as we often won't need to do
24 // the canonicalization. 24 // the canonicalization.
25 LearnAboutInitialNavigation(request->url()); 25 LearnAboutInitialNavigation(request->url());
26 26
27 bool is_subresource = !(request->load_flags() & net::LOAD_MAIN_FRAME); 27 bool is_subresource = !(request->load_flags() & net::LOAD_MAIN_FRAME);
(...skipping 26 matching lines...) Expand all
54 return NULL; 54 return NULL;
55 } 55 }
56 56
57 net::URLRequestJob* ConnectInterceptor::MaybeInterceptRedirect( 57 net::URLRequestJob* ConnectInterceptor::MaybeInterceptRedirect(
58 net::URLRequest* request, 58 net::URLRequest* request,
59 const GURL& location) { 59 const GURL& location) {
60 return NULL; 60 return NULL;
61 } 61 }
62 62
63 } // namespace chrome_browser_net 63 } // namespace chrome_browser_net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698