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_LOADER_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_LOADER_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
6 #define CHROME_BROWSER_LOADER_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_LOADER_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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 void OnStreamCreated(net::URLRequest* request, | 75 void OnStreamCreated(net::URLRequest* request, |
76 std::unique_ptr<content::StreamInfo> stream) override; | 76 std::unique_ptr<content::StreamInfo> stream) override; |
77 void OnResponseStarted(net::URLRequest* request, | 77 void OnResponseStarted(net::URLRequest* request, |
78 content::ResourceContext* resource_context, | 78 content::ResourceContext* resource_context, |
79 content::ResourceResponse* response) override; | 79 content::ResourceResponse* response) override; |
80 void OnRequestRedirected(const GURL& redirect_url, | 80 void OnRequestRedirected(const GURL& redirect_url, |
81 net::URLRequest* request, | 81 net::URLRequest* request, |
82 content::ResourceContext* resource_context, | 82 content::ResourceContext* resource_context, |
83 content::ResourceResponse* response) override; | 83 content::ResourceResponse* response) override; |
84 void RequestComplete(net::URLRequest* url_request) override; | 84 void RequestComplete(net::URLRequest* url_request) override; |
85 bool ShouldEnableLoFiMode( | 85 int GetPreviewsState( |
| 86 int previews_state, |
86 const net::URLRequest& url_request, | 87 const net::URLRequest& url_request, |
87 content::ResourceContext* resource_context) override; | 88 content::ResourceContext* resource_context) override; |
88 content::NavigationData* GetNavigationData( | 89 content::NavigationData* GetNavigationData( |
89 net::URLRequest* request) const override; | 90 net::URLRequest* request) const override; |
90 std::unique_ptr<net::ClientCertStore> CreateClientCertStore( | 91 std::unique_ptr<net::ClientCertStore> CreateClientCertStore( |
91 content::ResourceContext* resource_context) override; | 92 content::ResourceContext* resource_context) override; |
92 void OnAbortedFrameLoad(const GURL& url, | 93 void OnAbortedFrameLoad(const GURL& url, |
93 base::TimeDelta request_loading_time) override; | 94 base::TimeDelta request_loading_time) override; |
94 | 95 |
95 // Called on the UI thread. Allows switching out the | 96 // Called on the UI thread. Allows switching out the |
(...skipping 21 matching lines...) Expand all Loading... |
117 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; | 118 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; |
118 #if BUILDFLAG(ENABLE_EXTENSIONS) | 119 #if BUILDFLAG(ENABLE_EXTENSIONS) |
119 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 120 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
120 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; | 121 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; |
121 #endif | 122 #endif |
122 | 123 |
123 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 124 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
124 }; | 125 }; |
125 | 126 |
126 #endif // CHROME_BROWSER_LOADER_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 127 #endif // CHROME_BROWSER_LOADER_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |