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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 65 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
66 net::AuthChallengeInfo* auth_info, | 66 net::AuthChallengeInfo* auth_info, |
67 net::URLRequest* request) override; | 67 net::URLRequest* request) override; |
68 bool HandleExternalProtocol( | 68 bool HandleExternalProtocol( |
69 const GURL& url, | 69 const GURL& url, |
70 int child_id, | 70 int child_id, |
71 const content::ResourceRequestInfo::WebContentsGetter& | 71 const content::ResourceRequestInfo::WebContentsGetter& |
72 web_contents_getter, | 72 web_contents_getter, |
73 bool is_main_frame, | 73 bool is_main_frame, |
74 ui::PageTransition page_transition, | 74 ui::PageTransition page_transition, |
75 bool has_user_gesture) override; | 75 bool has_user_gesture, |
| 76 content::ResourceContext* resource_context) override; |
76 bool ShouldForceDownloadResource(const GURL& url, | 77 bool ShouldForceDownloadResource(const GURL& url, |
77 const std::string& mime_type) override; | 78 const std::string& mime_type) override; |
78 bool ShouldInterceptResourceAsStream(net::URLRequest* request, | 79 bool ShouldInterceptResourceAsStream(net::URLRequest* request, |
79 const base::FilePath& plugin_path, | 80 const base::FilePath& plugin_path, |
80 const std::string& mime_type, | 81 const std::string& mime_type, |
81 GURL* origin, | 82 GURL* origin, |
82 std::string* payload) override; | 83 std::string* payload) override; |
83 void OnStreamCreated(net::URLRequest* request, | 84 void OnStreamCreated(net::URLRequest* request, |
84 std::unique_ptr<content::StreamInfo> stream) override; | 85 std::unique_ptr<content::StreamInfo> stream) override; |
85 void OnResponseStarted(net::URLRequest* request, | 86 void OnResponseStarted(net::URLRequest* request, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; | 121 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; |
121 #if defined(ENABLE_EXTENSIONS) | 122 #if defined(ENABLE_EXTENSIONS) |
122 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 123 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
123 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; | 124 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; |
124 #endif | 125 #endif |
125 | 126 |
126 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 127 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
127 }; | 128 }; |
128 | 129 |
129 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 130 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |