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