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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 int child_id, | 58 int child_id, |
59 int route_id, | 59 int route_id, |
60 int request_id, | 60 int request_id, |
61 bool is_content_initiated, | 61 bool is_content_initiated, |
62 bool must_download, | 62 bool must_download, |
63 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE; | 63 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE; |
64 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 64 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
65 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; | 65 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; |
66 virtual bool HandleExternalProtocol(const GURL& url, | 66 virtual bool HandleExternalProtocol(const GURL& url, |
67 int child_id, | 67 int child_id, |
68 int route_id) OVERRIDE; | 68 int route_id, |
| 69 bool initiated_by_user_gesture) OVERRIDE; |
69 virtual bool ShouldForceDownloadResource( | 70 virtual bool ShouldForceDownloadResource( |
70 const GURL& url, const std::string& mime_type) OVERRIDE; | 71 const GURL& url, const std::string& mime_type) OVERRIDE; |
71 virtual bool ShouldInterceptResourceAsStream( | 72 virtual bool ShouldInterceptResourceAsStream( |
72 content::ResourceContext* resource_context, | 73 content::ResourceContext* resource_context, |
73 const GURL& url, | 74 const GURL& url, |
74 const std::string& mime_type, | 75 const std::string& mime_type, |
75 GURL* origin, | 76 GURL* origin, |
76 std::string* target_id) OVERRIDE; | 77 std::string* target_id) OVERRIDE; |
77 virtual void OnStreamCreated( | 78 virtual void OnStreamCreated( |
78 content::ResourceContext* resource_context, | 79 content::ResourceContext* resource_context, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 116 |
116 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; | 117 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; |
117 scoped_refptr<SafeBrowsingService> safe_browsing_; | 118 scoped_refptr<SafeBrowsingService> safe_browsing_; |
118 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 119 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
119 prerender::PrerenderTracker* prerender_tracker_; | 120 prerender::PrerenderTracker* prerender_tracker_; |
120 | 121 |
121 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 122 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
122 }; | 123 }; |
123 | 124 |
124 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 125 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |