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 <set> | 9 #include <set> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 bool must_download, | 58 bool must_download, |
59 ScopedVector<content::ResourceThrottle>* throttles) override; | 59 ScopedVector<content::ResourceThrottle>* throttles) override; |
60 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 60 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
61 net::AuthChallengeInfo* auth_info, | 61 net::AuthChallengeInfo* auth_info, |
62 net::URLRequest* request) override; | 62 net::URLRequest* request) override; |
63 bool HandleExternalProtocol(const GURL& url, | 63 bool HandleExternalProtocol(const GURL& url, |
64 int child_id, | 64 int child_id, |
65 int route_id) override; | 65 int route_id) override; |
66 bool ShouldForceDownloadResource(const GURL& url, | 66 bool ShouldForceDownloadResource(const GURL& url, |
67 const std::string& mime_type) override; | 67 const std::string& mime_type) override; |
68 bool ShouldInterceptResourceAsStream(net::URLRequest* request, | 68 bool ShouldInterceptResourceAsStream(const base::FilePath& file_path, |
| 69 net::URLRequest* request, |
69 const std::string& mime_type, | 70 const std::string& mime_type, |
70 GURL* origin, | 71 GURL* origin, |
71 std::string* payload) override; | 72 std::string* payload) override; |
72 void OnStreamCreated(net::URLRequest* request, | 73 void OnStreamCreated(net::URLRequest* request, |
73 scoped_ptr<content::StreamInfo> stream) override; | 74 scoped_ptr<content::StreamInfo> stream) override; |
74 void OnResponseStarted(net::URLRequest* request, | 75 void OnResponseStarted(net::URLRequest* request, |
75 content::ResourceContext* resource_context, | 76 content::ResourceContext* resource_context, |
76 content::ResourceResponse* response, | 77 content::ResourceResponse* response, |
77 IPC::Sender* sender) override; | 78 IPC::Sender* sender) override; |
78 void OnRequestRedirected(const GURL& redirect_url, | 79 void OnRequestRedirected(const GURL& redirect_url, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 #if defined(ENABLE_EXTENSIONS) | 114 #if defined(ENABLE_EXTENSIONS) |
114 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 115 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
115 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; | 116 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; |
116 #endif | 117 #endif |
117 prerender::PrerenderTracker* prerender_tracker_; | 118 prerender::PrerenderTracker* prerender_tracker_; |
118 | 119 |
119 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 120 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
120 }; | 121 }; |
121 | 122 |
122 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 123 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |