| 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_handle.h" | 7 #include "content/public/browser/stream_handle.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 ScopedVector<ResourceThrottle>* throttles) { | 39 ScopedVector<ResourceThrottle>* throttles) { |
| 40 } | 40 } |
| 41 | 41 |
| 42 ResourceDispatcherHostLoginDelegate* | 42 ResourceDispatcherHostLoginDelegate* |
| 43 ResourceDispatcherHostDelegate::CreateLoginDelegate( | 43 ResourceDispatcherHostDelegate::CreateLoginDelegate( |
| 44 net::AuthChallengeInfo* auth_info, | 44 net::AuthChallengeInfo* auth_info, |
| 45 net::URLRequest* request) { | 45 net::URLRequest* request) { |
| 46 return NULL; | 46 return NULL; |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool ResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url, | 49 bool ResourceDispatcherHostDelegate::HandleExternalProtocol( |
| 50 int child_id, | 50 const GURL& url, |
| 51 int route_id) { | 51 int child_id, |
| 52 int route_id, |
| 53 bool initiated_by_user_gesture) { |
| 52 return true; | 54 return true; |
| 53 } | 55 } |
| 54 | 56 |
| 55 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( | 57 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( |
| 56 const GURL& url, | 58 const GURL& url, |
| 57 const std::string& mime_type) { | 59 const std::string& mime_type) { |
| 58 return false; | 60 return false; |
| 59 } | 61 } |
| 60 | 62 |
| 61 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( | 63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 net::URLRequest* url_request) { | 96 net::URLRequest* url_request) { |
| 95 } | 97 } |
| 96 | 98 |
| 97 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 99 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
| 98 } | 100 } |
| 99 | 101 |
| 100 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 102 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
| 101 } | 103 } |
| 102 | 104 |
| 103 } // namespace content | 105 } // namespace content |
| OLD | NEW |