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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 const std::string& mime_type) override; | 77 const std::string& mime_type) override; |
78 bool ShouldInterceptResourceAsStream(net::URLRequest* request, | 78 bool ShouldInterceptResourceAsStream(net::URLRequest* request, |
79 const base::FilePath& plugin_path, | 79 const base::FilePath& plugin_path, |
80 const std::string& mime_type, | 80 const std::string& mime_type, |
81 GURL* origin, | 81 GURL* origin, |
82 std::string* payload) override; | 82 std::string* payload) override; |
83 void OnStreamCreated(net::URLRequest* request, | 83 void OnStreamCreated(net::URLRequest* request, |
84 std::unique_ptr<content::StreamInfo> stream) override; | 84 std::unique_ptr<content::StreamInfo> stream) override; |
85 void OnResponseStarted(net::URLRequest* request, | 85 void OnResponseStarted(net::URLRequest* request, |
86 content::ResourceContext* resource_context, | 86 content::ResourceContext* resource_context, |
87 content::ResourceResponse* response, | 87 content::ResourceResponse* response) override; |
88 IPC::Sender* sender) override; | |
89 void OnRequestRedirected(const GURL& redirect_url, | 88 void OnRequestRedirected(const GURL& redirect_url, |
90 net::URLRequest* request, | 89 net::URLRequest* request, |
91 content::ResourceContext* resource_context, | 90 content::ResourceContext* resource_context, |
92 content::ResourceResponse* response) override; | 91 content::ResourceResponse* response) override; |
93 void RequestComplete(net::URLRequest* url_request) override; | 92 void RequestComplete(net::URLRequest* url_request) override; |
94 bool ShouldEnableLoFiMode( | 93 bool ShouldEnableLoFiMode( |
95 const net::URLRequest& url_request, | 94 const net::URLRequest& url_request, |
96 content::ResourceContext* resource_context) override; | 95 content::ResourceContext* resource_context) override; |
97 content::NavigationData* GetNavigationData( | 96 content::NavigationData* GetNavigationData( |
98 net::URLRequest* request) const override; | 97 net::URLRequest* request) const override; |
(...skipping 23 matching lines...) Expand all Loading... |
122 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; | 121 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; |
123 #if defined(ENABLE_EXTENSIONS) | 122 #if defined(ENABLE_EXTENSIONS) |
124 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 123 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
125 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; | 124 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; |
126 #endif | 125 #endif |
127 | 126 |
128 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 127 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
129 }; | 128 }; |
130 | 129 |
131 #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 |