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

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

Issue 2866026: Rename Dns prefetching files to Predictor files... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/net/dns_global.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/dns_global.h" 7 #include "chrome/browser/net/predictor_api.h"
8 8
9 namespace chrome_browser_net { 9 namespace chrome_browser_net {
10 10
11 ConnectInterceptor::ConnectInterceptor() { 11 ConnectInterceptor::ConnectInterceptor() {
12 URLRequest::RegisterRequestInterceptor(this); 12 URLRequest::RegisterRequestInterceptor(this);
13 } 13 }
14 14
15 ConnectInterceptor::~ConnectInterceptor() { 15 ConnectInterceptor::~ConnectInterceptor() {
16 URLRequest::UnregisterRequestInterceptor(this); 16 URLRequest::UnregisterRequestInterceptor(this);
17 } 17 }
(...skipping 14 matching lines...) Expand all
32 // TODO(jar): Only call if we believe this is a frame, and might have 32 // TODO(jar): Only call if we believe this is a frame, and might have
33 // subresources. We could "guess" by looking at path extensions (such as 33 // subresources. We could "guess" by looking at path extensions (such as
34 // foo.jpg or goo.gif etc.), but better would be to get this info from webkit 34 // foo.jpg or goo.gif etc.), but better would be to get this info from webkit
35 // and have it add the info to the request (we currently only set the 35 // and have it add the info to the request (we currently only set the
36 // priority, but we could record whether it was a frame). 36 // priority, but we could record whether it was a frame).
37 PredictFrameSubresources(request->url().GetWithEmptyPath()); 37 PredictFrameSubresources(request->url().GetWithEmptyPath());
38 return NULL; 38 return NULL;
39 } 39 }
40 40
41 } // namespace chrome_browser_net 41 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/net/dns_global.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698