| 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 <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 57 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
| 58 net::AuthChallengeInfo* auth_info, | 58 net::AuthChallengeInfo* auth_info, |
| 59 net::URLRequest* request) override; | 59 net::URLRequest* request) override; |
| 60 bool HandleExternalProtocol( | 60 bool HandleExternalProtocol( |
| 61 const GURL& url, | 61 const GURL& url, |
| 62 int child_id, | 62 int child_id, |
| 63 const content::ResourceRequestInfo::WebContentsGetter& | 63 const content::ResourceRequestInfo::WebContentsGetter& |
| 64 web_contents_getter, | 64 web_contents_getter, |
| 65 bool is_main_frame, | 65 bool is_main_frame, |
| 66 ui::PageTransition page_transition, | 66 ui::PageTransition page_transition, |
| 67 bool has_user_gesture) override; | 67 bool has_user_gesture, |
| 68 bool is_whitelisted) override; |
| 68 bool ShouldForceDownloadResource(const GURL& url, | 69 bool ShouldForceDownloadResource(const GURL& url, |
| 69 const std::string& mime_type) override; | 70 const std::string& mime_type) override; |
| 70 bool ShouldInterceptResourceAsStream(net::URLRequest* request, | 71 bool ShouldInterceptResourceAsStream(net::URLRequest* request, |
| 71 const base::FilePath& plugin_path, | 72 const base::FilePath& plugin_path, |
| 72 const std::string& mime_type, | 73 const std::string& mime_type, |
| 73 GURL* origin, | 74 GURL* origin, |
| 74 std::string* payload) override; | 75 std::string* payload) override; |
| 75 void OnStreamCreated(net::URLRequest* request, | 76 void OnStreamCreated(net::URLRequest* request, |
| 76 std::unique_ptr<content::StreamInfo> stream) override; | 77 std::unique_ptr<content::StreamInfo> stream) override; |
| 77 void OnResponseStarted(net::URLRequest* request, | 78 void OnResponseStarted(net::URLRequest* request, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; | 111 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; |
| 111 #if defined(ENABLE_EXTENSIONS) | 112 #if defined(ENABLE_EXTENSIONS) |
| 112 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 113 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
| 113 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; | 114 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; |
| 114 #endif | 115 #endif |
| 115 | 116 |
| 116 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 117 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 120 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
| OLD | NEW |