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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 bool must_download, | 50 bool must_download, |
51 ScopedVector<content::ResourceThrottle>* throttles) override; | 51 ScopedVector<content::ResourceThrottle>* throttles) override; |
52 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 52 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
53 net::AuthChallengeInfo* auth_info, | 53 net::AuthChallengeInfo* auth_info, |
54 net::URLRequest* request) override; | 54 net::URLRequest* request) override; |
55 bool HandleExternalProtocol(const GURL& url, | 55 bool HandleExternalProtocol(const GURL& url, |
56 int child_id, | 56 int child_id, |
57 int route_id) override; | 57 int route_id) override; |
58 bool ShouldForceDownloadResource(const GURL& url, | 58 bool ShouldForceDownloadResource(const GURL& url, |
59 const std::string& mime_type) override; | 59 const std::string& mime_type) override; |
60 bool ShouldInterceptResourceAsStream(net::URLRequest* request, | 60 bool ShouldInterceptResourceAsStream(const base::FilePath& plugin_path, |
61 net::URLRequest* request, | |
jochen (gone - plz use gerrit)
2015/03/24 09:20:54
URLRequest* should be the first parameter
Deepak
2015/03/24 10:33:46
Done.
| |
61 const std::string& mime_type, | 62 const std::string& mime_type, |
62 GURL* origin, | 63 GURL* origin, |
63 std::string* payload) override; | 64 std::string* payload) override; |
64 void OnStreamCreated(net::URLRequest* request, | 65 void OnStreamCreated(net::URLRequest* request, |
65 scoped_ptr<content::StreamInfo> stream) override; | 66 scoped_ptr<content::StreamInfo> stream) override; |
66 void OnResponseStarted(net::URLRequest* request, | 67 void OnResponseStarted(net::URLRequest* request, |
67 content::ResourceContext* resource_context, | 68 content::ResourceContext* resource_context, |
68 content::ResourceResponse* response, | 69 content::ResourceResponse* response, |
69 IPC::Sender* sender) override; | 70 IPC::Sender* sender) override; |
70 void OnRequestRedirected(const GURL& redirect_url, | 71 void OnRequestRedirected(const GURL& redirect_url, |
(...skipping 25 matching lines...) Expand all Loading... | |
96 scoped_refptr<SafeBrowsingService> safe_browsing_; | 97 scoped_refptr<SafeBrowsingService> safe_browsing_; |
97 #if defined(ENABLE_EXTENSIONS) | 98 #if defined(ENABLE_EXTENSIONS) |
98 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 99 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
99 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; | 100 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; |
100 #endif | 101 #endif |
101 | 102 |
102 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 103 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
103 }; | 104 }; |
104 | 105 |
105 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ | 106 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ |
OLD | NEW |