| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/browser/resource_dispatcher_host_delegate.h" | 5 #include "content/public/browser/resource_dispatcher_host_delegate.h" |
| 6 | 6 |
| 7 #include "content/public/browser/navigation_data.h" |
| 7 #include "content/public/browser/resource_request_info.h" | 8 #include "content/public/browser/resource_request_info.h" |
| 8 #include "content/public/browser/stream_info.h" | 9 #include "content/public/browser/stream_info.h" |
| 9 | 10 |
| 10 namespace content { | 11 namespace content { |
| 11 | 12 |
| 12 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( | 13 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( |
| 13 const std::string& method, | 14 const std::string& method, |
| 14 const GURL& url, | 15 const GURL& url, |
| 15 ResourceType resource_type, | 16 ResourceType resource_type, |
| 16 ResourceContext* resource_context) { | 17 ResourceContext* resource_context) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void ResourceDispatcherHostDelegate::RequestComplete( | 90 void ResourceDispatcherHostDelegate::RequestComplete( |
| 90 net::URLRequest* url_request) { | 91 net::URLRequest* url_request) { |
| 91 } | 92 } |
| 92 | 93 |
| 93 bool ResourceDispatcherHostDelegate::ShouldEnableLoFiMode( | 94 bool ResourceDispatcherHostDelegate::ShouldEnableLoFiMode( |
| 94 const net::URLRequest& url_request, | 95 const net::URLRequest& url_request, |
| 95 content::ResourceContext* resource_context) { | 96 content::ResourceContext* resource_context) { |
| 96 return false; | 97 return false; |
| 97 } | 98 } |
| 98 | 99 |
| 100 NavigationData* ResourceDispatcherHostDelegate::GetNavigationData( |
| 101 net::URLRequest* request) const { |
| 102 return nullptr; |
| 103 } |
| 104 |
| 99 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 105 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
| 100 } | 106 } |
| 101 | 107 |
| 102 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 108 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
| 103 } | 109 } |
| 104 | 110 |
| 105 } // namespace content | 111 } // namespace content |
| OLD | NEW |