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/navigation_data.h" |
8 #include "content/public/browser/resource_request_info.h" | 8 #include "content/public/browser/resource_request_info.h" |
9 #include "content/public/browser/stream_info.h" | 9 #include "content/public/browser/stream_info.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 net::URLRequest* request) { | 43 net::URLRequest* request) { |
44 return nullptr; | 44 return nullptr; |
45 } | 45 } |
46 | 46 |
47 bool ResourceDispatcherHostDelegate::HandleExternalProtocol( | 47 bool ResourceDispatcherHostDelegate::HandleExternalProtocol( |
48 const GURL& url, | 48 const GURL& url, |
49 int child_id, | 49 int child_id, |
50 const ResourceRequestInfo::WebContentsGetter& web_contents_getter, | 50 const ResourceRequestInfo::WebContentsGetter& web_contents_getter, |
51 bool is_main_frame, | 51 bool is_main_frame, |
52 ui::PageTransition page_transition, | 52 ui::PageTransition page_transition, |
53 bool has_user_gesture) { | 53 bool has_user_gesture, |
| 54 ResourceContext* resource_context) { |
54 return true; | 55 return true; |
55 } | 56 } |
56 | 57 |
57 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( | 58 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( |
58 const GURL& url, | 59 const GURL& url, |
59 const std::string& mime_type) { | 60 const std::string& mime_type) { |
60 return false; | 61 return false; |
61 } | 62 } |
62 | 63 |
63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( | 64 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 return nullptr; | 103 return nullptr; |
103 } | 104 } |
104 | 105 |
105 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 106 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
106 } | 107 } |
107 | 108 |
108 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 109 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
109 } | 110 } |
110 | 111 |
111 } // namespace content | 112 } // namespace content |
OLD | NEW |