| 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/stream_info.h" | 7 #include "content/public/browser/stream_info.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 ScopedVector<ResourceThrottle>* throttles) { | 35 ScopedVector<ResourceThrottle>* throttles) { |
| 36 } | 36 } |
| 37 | 37 |
| 38 ResourceDispatcherHostLoginDelegate* | 38 ResourceDispatcherHostLoginDelegate* |
| 39 ResourceDispatcherHostDelegate::CreateLoginDelegate( | 39 ResourceDispatcherHostDelegate::CreateLoginDelegate( |
| 40 net::AuthChallengeInfo* auth_info, | 40 net::AuthChallengeInfo* auth_info, |
| 41 net::URLRequest* request) { | 41 net::URLRequest* request) { |
| 42 return nullptr; | 42 return nullptr; |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool ResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url, | 45 bool ResourceDispatcherHostDelegate::HandleExternalProtocol( |
| 46 int child_id, | 46 const GURL& url, |
| 47 int route_id) { | 47 int child_id, |
| 48 int route_id, |
| 49 bool is_main_frame, |
| 50 ui::PageTransition page_transition, |
| 51 bool has_user_gesture) { |
| 48 return true; | 52 return true; |
| 49 } | 53 } |
| 50 | 54 |
| 51 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( | 55 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( |
| 52 const GURL& url, | 56 const GURL& url, |
| 53 const std::string& mime_type) { | 57 const std::string& mime_type) { |
| 54 return false; | 58 return false; |
| 55 } | 59 } |
| 56 | 60 |
| 57 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( | 61 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( |
| (...skipping 27 matching lines...) Expand all Loading... |
| 85 net::URLRequest* url_request) { | 89 net::URLRequest* url_request) { |
| 86 } | 90 } |
| 87 | 91 |
| 88 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 92 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
| 89 } | 93 } |
| 90 | 94 |
| 91 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 95 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
| 92 } | 96 } |
| 93 | 97 |
| 94 } // namespace content | 98 } // namespace content |
| OLD | NEW |