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) OVERRIDE; |
77 virtual void OnResponseStarted( | 89 virtual void OnResponseStarted( |
78 net::URLRequest* request, | 90 net::URLRequest* request, |
79 content::ResourceContext* resource_context, | 91 content::ResourceContext* resource_context, |
80 content::ResourceResponse* response, | 92 content::ResourceResponse* response, |
81 IPC::Sender* sender) OVERRIDE; | 93 IPC::Sender* sender) OVERRIDE; |
82 virtual void OnRequestRedirected( | 94 virtual void OnRequestRedirected( |
83 const GURL& redirect_url, | 95 const GURL& redirect_url, |
84 net::URLRequest* request, | 96 net::URLRequest* request, |
85 content::ResourceContext* resource_context, | 97 content::ResourceContext* resource_context, |
86 content::ResourceResponse* response) OVERRIDE; | 98 content::ResourceResponse* response) OVERRIDE; |
(...skipping 25 matching lines...) Expand all Loading... |
112 | 124 |
113 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; | 125 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; |
114 scoped_refptr<SafeBrowsingService> safe_browsing_; | 126 scoped_refptr<SafeBrowsingService> safe_browsing_; |
115 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 127 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
116 prerender::PrerenderTracker* prerender_tracker_; | 128 prerender::PrerenderTracker* prerender_tracker_; |
117 | 129 |
118 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 130 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
119 }; | 131 }; |
120 | 132 |
121 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 133 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |