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