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 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 ResourceDispatcherHost* resource_dispatcher_host, | 30 ResourceDispatcherHost* resource_dispatcher_host, |
31 prerender::PrerenderTracker* prerender_tracker); | 31 prerender::PrerenderTracker* prerender_tracker); |
32 virtual ~ChromeResourceDispatcherHostDelegate(); | 32 virtual ~ChromeResourceDispatcherHostDelegate(); |
33 | 33 |
34 // ResourceDispatcherHostDelegate implementation. | 34 // ResourceDispatcherHostDelegate implementation. |
35 virtual bool ShouldBeginRequest( | 35 virtual bool ShouldBeginRequest( |
36 int child_id, int route_id, | 36 int child_id, int route_id, |
37 const ResourceHostMsg_Request& request_data, | 37 const ResourceHostMsg_Request& request_data, |
38 const content::ResourceContext& resource_context, | 38 const content::ResourceContext& resource_context, |
39 const GURL& referrer) OVERRIDE; | 39 const GURL& referrer) OVERRIDE; |
40 virtual ResourceHandler* RequestBeginning(ResourceHandler* handler, | 40 virtual ResourceHandler* RequestBeginning( |
41 net::URLRequest* request, | 41 ResourceHandler* handler, |
42 bool is_subresource, | 42 net::URLRequest* request, |
43 int child_id, | 43 const content::ResourceContext& resource_context, |
44 int route_id) OVERRIDE; | 44 bool is_subresource, |
45 virtual ResourceHandler* DownloadStarting(ResourceHandler* handler, | 45 int child_id, |
46 int child_id, | 46 int route_id) OVERRIDE; |
47 int route_id) OVERRIDE; | 47 virtual ResourceHandler* DownloadStarting( |
| 48 ResourceHandler* handler, |
| 49 const content::ResourceContext& resource_context, |
| 50 int child_id, |
| 51 int route_id) OVERRIDE; |
48 virtual bool ShouldDeferStart( | 52 virtual bool ShouldDeferStart( |
49 net::URLRequest* request, | 53 net::URLRequest* request, |
50 const content::ResourceContext& resource_context) OVERRIDE; | 54 const content::ResourceContext& resource_context) OVERRIDE; |
51 virtual bool AcceptSSLClientCertificateRequest( | 55 virtual bool AcceptSSLClientCertificateRequest( |
52 net::URLRequest* request, | 56 net::URLRequest* request, |
53 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; | 57 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; |
54 virtual bool AcceptAuthRequest(net::URLRequest* request, | 58 virtual bool AcceptAuthRequest(net::URLRequest* request, |
55 net::AuthChallengeInfo* auth_info) OVERRIDE; | 59 net::AuthChallengeInfo* auth_info) OVERRIDE; |
56 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 60 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
57 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; | 61 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; |
(...skipping 16 matching lines...) Expand all Loading... |
74 ResourceHandler* handler, int child_id, int route_id, bool subresource); | 78 ResourceHandler* handler, int child_id, int route_id, bool subresource); |
75 | 79 |
76 ResourceDispatcherHost* resource_dispatcher_host_; | 80 ResourceDispatcherHost* resource_dispatcher_host_; |
77 scoped_refptr<SafeBrowsingService> safe_browsing_; | 81 scoped_refptr<SafeBrowsingService> safe_browsing_; |
78 prerender::PrerenderTracker* prerender_tracker_; | 82 prerender::PrerenderTracker* prerender_tracker_; |
79 | 83 |
80 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 84 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
81 }; | 85 }; |
82 | 86 |
83 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 87 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |