OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/renderer_host/resource_dispatcher_host_delegate.h" | 5 #include "content/browser/renderer_host/resource_dispatcher_host_delegate.h" |
6 | 6 |
7 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 7 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
8 } | 8 } |
9 | 9 |
10 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 10 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
11 } | 11 } |
12 | 12 |
13 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( | 13 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( |
14 int child_id, int route_id, | 14 int child_id, int route_id, |
15 const ResourceHostMsg_Request& request_data, | 15 const ResourceHostMsg_Request& request_data, |
16 const content::ResourceContext& resource_context, | 16 const content::ResourceContext& resource_context, |
17 const GURL& referrer) { | 17 const GURL& referrer) { |
18 return true; | 18 return true; |
19 } | 19 } |
20 | 20 |
21 ResourceHandler* ResourceDispatcherHostDelegate::RequestBeginning( | 21 ResourceHandler* ResourceDispatcherHostDelegate::RequestBeginning( |
22 ResourceHandler* handler, | 22 ResourceHandler* handler, |
23 net::URLRequest* request, | 23 net::URLRequest* request, |
| 24 const content::ResourceContext& resource_context, |
24 bool is_subresource, | 25 bool is_subresource, |
25 int child_id, | 26 int child_id, |
26 int route_id) { | 27 int route_id) { |
27 return handler; | 28 return handler; |
28 } | 29 } |
29 | 30 |
30 ResourceHandler* ResourceDispatcherHostDelegate::DownloadStarting( | 31 ResourceHandler* ResourceDispatcherHostDelegate::DownloadStarting( |
31 ResourceHandler* handler, | 32 ResourceHandler* handler, |
| 33 const content::ResourceContext& resource_context, |
32 int child_id, | 34 int child_id, |
33 int route_id) { | 35 int route_id) { |
34 return handler; | 36 return handler; |
35 } | 37 } |
36 | 38 |
37 bool ResourceDispatcherHostDelegate::ShouldDeferStart( | 39 bool ResourceDispatcherHostDelegate::ShouldDeferStart( |
38 net::URLRequest* request, | 40 net::URLRequest* request, |
39 const content::ResourceContext& resource_context) { | 41 const content::ResourceContext& resource_context) { |
40 return false; | 42 return false; |
41 } | 43 } |
(...skipping 29 matching lines...) Expand all Loading... |
71 net::URLRequest* request, | 73 net::URLRequest* request, |
72 ResourceResponse* response, | 74 ResourceResponse* response, |
73 ResourceMessageFilter* filter) { | 75 ResourceMessageFilter* filter) { |
74 } | 76 } |
75 | 77 |
76 void ResourceDispatcherHostDelegate::OnRequestRedirected( | 78 void ResourceDispatcherHostDelegate::OnRequestRedirected( |
77 net::URLRequest* request, | 79 net::URLRequest* request, |
78 ResourceResponse* response, | 80 ResourceResponse* response, |
79 ResourceMessageFilter* filter) { | 81 ResourceMessageFilter* filter) { |
80 } | 82 } |
OLD | NEW |