Chromium Code Reviews| 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" | |
|
bengr
2016/04/29 21:14:23
Forward declare instead.
RyanSturm
2016/05/02 19:52:22
Because the method using this is returning a std::
| |
| 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 std::unique_ptr<content::NavigationData> | |
| 101 ResourceDispatcherHostDelegate::GetNavigationData( | |
| 102 net::URLRequest* request) const { | |
| 103 return nullptr; | |
| 104 } | |
| 105 | |
| 99 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 106 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
| 100 } | 107 } |
| 101 | 108 |
| 102 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 109 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
| 103 } | 110 } |
| 104 | 111 |
| 105 } // namespace content | 112 } // namespace content |
| OLD | NEW |