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 |
11 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( | 11 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( |
12 int child_id, | |
13 int route_id, | |
14 const std::string& method, | 12 const std::string& method, |
15 const GURL& url, | 13 const GURL& url, |
16 ResourceType resource_type, | 14 ResourceType resource_type, |
17 ResourceContext* resource_context) { | 15 ResourceContext* resource_context) { |
18 return true; | 16 return true; |
19 } | 17 } |
20 | 18 |
21 void ResourceDispatcherHostDelegate::RequestBeginning( | 19 void ResourceDispatcherHostDelegate::RequestBeginning( |
22 net::URLRequest* request, | 20 net::URLRequest* request, |
23 ResourceContext* resource_context, | 21 ResourceContext* resource_context, |
24 AppCacheService* appcache_service, | 22 AppCacheService* appcache_service, |
25 ResourceType resource_type, | 23 ResourceType resource_type, |
26 int child_id, | |
27 int route_id, | |
28 ScopedVector<ResourceThrottle>* throttles) { | 24 ScopedVector<ResourceThrottle>* throttles) { |
29 } | 25 } |
30 | 26 |
31 void ResourceDispatcherHostDelegate::DownloadStarting( | 27 void ResourceDispatcherHostDelegate::DownloadStarting( |
32 net::URLRequest* request, | 28 net::URLRequest* request, |
33 ResourceContext* resource_context, | 29 ResourceContext* resource_context, |
34 int child_id, | 30 int child_id, |
35 int route_id, | 31 int route_id, |
36 int request_id, | 32 int request_id, |
37 bool is_content_initiated, | 33 bool is_content_initiated, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 net::URLRequest* url_request) { | 85 net::URLRequest* url_request) { |
90 } | 86 } |
91 | 87 |
92 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 88 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
93 } | 89 } |
94 | 90 |
95 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 91 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
96 } | 92 } |
97 | 93 |
98 } // namespace content | 94 } // namespace content |
OLD | NEW |