| 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/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 { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 // Subresources for main frames usually get loaded when we detected the main | 43 // Subresources for main frames usually get loaded when we detected the main |
| 44 // frame - way back in RenderViewHost::Navigate. So only use subresource | 44 // frame - way back in RenderViewHost::Navigate. So only use subresource |
| 45 // prediction here for subframes. | 45 // prediction here for subframes. |
| 46 if (request->load_flags() & net::LOAD_SUB_FRAME) | 46 if (request->load_flags() & net::LOAD_SUB_FRAME) |
| 47 PredictFrameSubresources(request->url().GetWithEmptyPath()); | 47 PredictFrameSubresources(request->url().GetWithEmptyPath()); |
| 48 return NULL; | 48 return NULL; |
| 49 } | 49 } |
| 50 | 50 |
| 51 URLRequestJob* ConnectInterceptor::MaybeInterceptResponse(URLRequest* request) { |
| 52 return NULL; |
| 53 } |
| 54 |
| 55 URLRequestJob* ConnectInterceptor::MaybeInterceptRedirect( |
| 56 URLRequest* request, |
| 57 const GURL& location) { |
| 58 return NULL; |
| 59 } |
| 60 |
| 51 } // namespace chrome_browser_net | 61 } // namespace chrome_browser_net |
| OLD | NEW |