| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |