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 #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 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; | 67 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; |
68 virtual bool AcceptAuthRequest(net::URLRequest* request, | 68 virtual bool AcceptAuthRequest(net::URLRequest* request, |
69 net::AuthChallengeInfo* auth_info) OVERRIDE; | 69 net::AuthChallengeInfo* auth_info) OVERRIDE; |
70 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 70 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
71 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; | 71 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; |
72 virtual bool HandleExternalProtocol(const GURL& url, | 72 virtual bool HandleExternalProtocol(const GURL& url, |
73 int child_id, | 73 int child_id, |
74 int route_id) OVERRIDE; | 74 int route_id) OVERRIDE; |
75 virtual bool ShouldForceDownloadResource( | 75 virtual bool ShouldForceDownloadResource( |
76 const GURL& url, const std::string& mime_type) OVERRIDE; | 76 const GURL& url, const std::string& mime_type) OVERRIDE; |
| 77 virtual bool ShouldInterceptResourceAsStream( |
| 78 content::ResourceContext* resource_context, |
| 79 const GURL& url, |
| 80 const std::string& mime_type, |
| 81 GURL* security_origin, |
| 82 std::string* target_id) OVERRIDE; |
| 83 virtual void OnStreamCreated( |
| 84 content::ResourceContext* resource_context, |
| 85 int render_process_id, |
| 86 int render_view_id, |
| 87 const std::string& target_id, |
| 88 scoped_ptr<content::StreamHandle> stream, |
| 89 const std::string& mime_type, |
| 90 const GURL& original_url) OVERRIDE; |
77 virtual void OnResponseStarted( | 91 virtual void OnResponseStarted( |
78 net::URLRequest* request, | 92 net::URLRequest* request, |
79 content::ResourceContext* resource_context, | 93 content::ResourceContext* resource_context, |
80 content::ResourceResponse* response, | 94 content::ResourceResponse* response, |
81 IPC::Sender* sender) OVERRIDE; | 95 IPC::Sender* sender) OVERRIDE; |
82 virtual void OnRequestRedirected( | 96 virtual void OnRequestRedirected( |
83 const GURL& redirect_url, | 97 const GURL& redirect_url, |
84 net::URLRequest* request, | 98 net::URLRequest* request, |
85 content::ResourceContext* resource_context, | 99 content::ResourceContext* resource_context, |
86 content::ResourceResponse* response) OVERRIDE; | 100 content::ResourceResponse* response) OVERRIDE; |
(...skipping 25 matching lines...) Expand all Loading... |
112 | 126 |
113 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; | 127 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; |
114 scoped_refptr<SafeBrowsingService> safe_browsing_; | 128 scoped_refptr<SafeBrowsingService> safe_browsing_; |
115 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 129 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
116 prerender::PrerenderTracker* prerender_tracker_; | 130 prerender::PrerenderTracker* prerender_tracker_; |
117 | 131 |
118 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 132 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
119 }; | 133 }; |
120 | 134 |
121 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 135 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |