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_SAFE_BROWSING_RESOURCE_THROTTLE_H_ | 5 #ifndef CHROME_BROWSER_LOADER_SAFE_BROWSING_RESOURCE_THROTTLE_H_ |
6 #define CHROME_BROWSER_LOADER_SAFE_BROWSING_RESOURCE_THROTTLE_H_ | 6 #define CHROME_BROWSER_LOADER_SAFE_BROWSING_RESOURCE_THROTTLE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
161 base::OneShotTimer timer_; | 161 base::OneShotTimer timer_; |
162 | 162 |
163 // The redirect chain for this resource | 163 // The redirect chain for this resource |
164 std::vector<GURL> redirect_urls_; | 164 std::vector<GURL> redirect_urls_; |
165 | 165 |
166 // If in DEFERRED_UNCHECKED_REDIRECT state, this is the | 166 // If in DEFERRED_UNCHECKED_REDIRECT state, this is the |
167 // URL we still need to check before resuming. | 167 // URL we still need to check before resuming. |
168 GURL unchecked_redirect_url_; | 168 GURL unchecked_redirect_url_; |
169 GURL url_being_checked_; | 169 GURL url_being_checked_; |
170 | 170 |
171 // TODO(vakh): The following vector should be removed after fixing | |
172 // http://crbug.com/660293 | |
173 // URLs that timed out waiting for a SafeBrowsing reputation check. | |
174 std::vector<GURL> timed_out_urls_; | |
Charlie Harrison
2017/01/06 16:53:00
Do we really need the GURL copies here?
The URLRe
vakh (use Gerrit instead)
2017/01/09 19:21:32
You mean just store references to those GURLs?
For
Charlie Harrison
2017/01/09 21:46:53
A resource throttle is owned by a ThrottlingResour
| |
175 | |
171 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> database_manager_; | 176 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> database_manager_; |
172 scoped_refptr<safe_browsing::SafeBrowsingUIManager> ui_manager_; | 177 scoped_refptr<safe_browsing::SafeBrowsingUIManager> ui_manager_; |
173 const net::URLRequest* request_; | 178 const net::URLRequest* request_; |
174 const content::ResourceType resource_type_; | 179 const content::ResourceType resource_type_; |
175 net::NetLogWithSource net_log_with_source_; | 180 net::NetLogWithSource net_log_with_source_; |
176 | 181 |
177 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceThrottle); | 182 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceThrottle); |
178 }; | 183 }; |
179 | 184 |
180 #endif // CHROME_BROWSER_LOADER_SAFE_BROWSING_RESOURCE_THROTTLE_H_ | 185 #endif // CHROME_BROWSER_LOADER_SAFE_BROWSING_RESOURCE_THROTTLE_H_ |
OLD | NEW |