OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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 COMPONENTS_SAFE_BROWSING_BASE_SAFE_BROWSING_RESOURCE_THROTTLE_H_ | 5 #ifndef COMPONENTS_SAFE_BROWSING_BASE_SAFE_BROWSING_RESOURCE_THROTTLE_H_ |
6 #define COMPONENTS_SAFE_BROWSING_BASE_SAFE_BROWSING_RESOURCE_THROTTLE_H_ | 6 #define COMPONENTS_SAFE_BROWSING_BASE_SAFE_BROWSING_RESOURCE_THROTTLE_H_ |
7 | 7 |
| 8 #include <set> |
8 #include <string> | 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/macros.h" | 12 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
15 #include "components/safe_browsing/base_ui_manager.h" | 16 #include "components/safe_browsing/base_ui_manager.h" |
16 #include "components/safe_browsing_db/database_manager.h" | 17 #include "components/safe_browsing_db/database_manager.h" |
17 #include "components/security_interstitials/content/unsafe_resource.h" | 18 #include "components/security_interstitials/content/unsafe_resource.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 166 |
166 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> database_manager_; | 167 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> database_manager_; |
167 const net::URLRequest* request_; | 168 const net::URLRequest* request_; |
168 | 169 |
169 State state_; | 170 State state_; |
170 DeferState defer_state_; | 171 DeferState defer_state_; |
171 | 172 |
172 const content::ResourceType resource_type_; | 173 const content::ResourceType resource_type_; |
173 net::NetLogWithSource net_log_with_source_; | 174 net::NetLogWithSource net_log_with_source_; |
174 | 175 |
| 176 // TODO(vakh): The following set should be removed after fixing |
| 177 // http://crbug.com/660293 |
| 178 // URLs that timed out waiting for a SafeBrowsing reputation check. |
| 179 std::set<GURL> timed_out_urls_; |
| 180 |
175 DISALLOW_COPY_AND_ASSIGN(BaseSafeBrowsingResourceThrottle); | 181 DISALLOW_COPY_AND_ASSIGN(BaseSafeBrowsingResourceThrottle); |
176 }; | 182 }; |
177 | 183 |
178 #endif // COMPONENTS_SAFE_BROWSING_BASE_SAFE_BROWSING_RESOURCE_THROTTLE_H_ | 184 #endif // COMPONENTS_SAFE_BROWSING_BASE_SAFE_BROWSING_RESOURCE_THROTTLE_H_ |
OLD | NEW |