| 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 <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 "chrome/browser/safe_browsing/safe_browsing_service.h" | 16 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 16 #include "chrome/browser/safe_browsing/ui_manager.h" | 17 #include "chrome/browser/safe_browsing/ui_manager.h" |
| 17 #include "components/safe_browsing_db/database_manager.h" | 18 #include "components/safe_browsing_db/database_manager.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // URL we still need to check before resuming. | 178 // URL we still need to check before resuming. |
| 178 GURL unchecked_redirect_url_; | 179 GURL unchecked_redirect_url_; |
| 179 GURL url_being_checked_; | 180 GURL url_being_checked_; |
| 180 | 181 |
| 181 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> database_manager_; | 182 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> database_manager_; |
| 182 scoped_refptr<safe_browsing::SafeBrowsingUIManager> ui_manager_; | 183 scoped_refptr<safe_browsing::SafeBrowsingUIManager> ui_manager_; |
| 183 const net::URLRequest* request_; | 184 const net::URLRequest* request_; |
| 184 const content::ResourceType resource_type_; | 185 const content::ResourceType resource_type_; |
| 185 net::NetLogWithSource net_log_with_source_; | 186 net::NetLogWithSource net_log_with_source_; |
| 186 | 187 |
| 188 // TODO(vakh): The following set should be removed after fixing |
| 189 // http://crbug.com/660293 |
| 190 // URLs that timed out waiting for a SafeBrowsing reputation check. |
| 191 std::set<GURL> timed_out_urls_; |
| 192 |
| 187 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceThrottle); | 193 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceThrottle); |
| 188 }; | 194 }; |
| 189 | 195 |
| 190 #endif // CHROME_BROWSER_LOADER_SAFE_BROWSING_RESOURCE_THROTTLE_H_ | 196 #endif // CHROME_BROWSER_LOADER_SAFE_BROWSING_RESOURCE_THROTTLE_H_ |
| OLD | NEW |