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 namespace content { | 7 namespace content { |
8 | 8 |
9 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( | 9 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( |
10 int child_id, | 10 int child_id, |
11 int route_id, | 11 int route_id, |
12 const std::string& method, | 12 const std::string& method, |
13 const GURL& url, | 13 const GURL& url, |
14 ResourceType::Type resource_type, | 14 ResourceType::Type resource_type, |
15 const ResourceContext& resource_context, | 15 ResourceContext* resource_context, |
16 const Referrer& referrer) { | 16 const Referrer& referrer) { |
17 return true; | 17 return true; |
18 } | 18 } |
19 | 19 |
20 void ResourceDispatcherHostDelegate::RequestBeginning( | 20 void ResourceDispatcherHostDelegate::RequestBeginning( |
21 net::URLRequest* request, | 21 net::URLRequest* request, |
22 const ResourceContext& resource_context, | 22 ResourceContext* resource_context, |
23 ResourceType::Type resource_type, | 23 ResourceType::Type resource_type, |
24 int child_id, | 24 int child_id, |
25 int route_id, | 25 int route_id, |
26 bool is_continuation_of_transferred_request, | 26 bool is_continuation_of_transferred_request, |
27 ScopedVector<ResourceThrottle>* throttles) { | 27 ScopedVector<ResourceThrottle>* throttles) { |
28 } | 28 } |
29 | 29 |
30 void ResourceDispatcherHostDelegate::DownloadStarting( | 30 void ResourceDispatcherHostDelegate::DownloadStarting( |
31 net::URLRequest* request, | 31 net::URLRequest* request, |
32 const ResourceContext& resource_context, | 32 ResourceContext* resource_context, |
33 int child_id, | 33 int child_id, |
34 int route_id, | 34 int route_id, |
35 int request_id, | 35 int request_id, |
36 bool is_new_request, | 36 bool is_new_request, |
37 ScopedVector<ResourceThrottle>* throttles) { | 37 ScopedVector<ResourceThrottle>* throttles) { |
38 } | 38 } |
39 | 39 |
40 bool ResourceDispatcherHostDelegate::ShouldDeferStart( | 40 bool ResourceDispatcherHostDelegate::ShouldDeferStart( |
41 net::URLRequest* request, | 41 net::URLRequest* request, |
42 const ResourceContext& resource_context) { | 42 ResourceContext* resource_context) { |
43 return false; | 43 return false; |
44 } | 44 } |
45 | 45 |
46 bool ResourceDispatcherHostDelegate::AcceptSSLClientCertificateRequest( | 46 bool ResourceDispatcherHostDelegate::AcceptSSLClientCertificateRequest( |
47 net::URLRequest* request, | 47 net::URLRequest* request, |
48 net::SSLCertRequestInfo* cert_request_info) { | 48 net::SSLCertRequestInfo* cert_request_info) { |
49 return false; | 49 return false; |
50 } | 50 } |
51 | 51 |
52 bool ResourceDispatcherHostDelegate::AcceptAuthRequest( | 52 bool ResourceDispatcherHostDelegate::AcceptAuthRequest( |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 ResourceResponse* response) { | 84 ResourceResponse* response) { |
85 } | 85 } |
86 | 86 |
87 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 87 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
88 } | 88 } |
89 | 89 |
90 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 90 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
91 } | 91 } |
92 | 92 |
93 } // namespace content | 93 } // namespace content |
OLD | NEW |