Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: components/safe_browsing/base_safe_browsing_resource_throttle.h

Issue 2616653002: Have a list of pending checks instead of pending clients (Closed)
Patch Set: git rebase manually! ugh. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/safe_browsing/base_safe_browsing_resource_throttle.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/safe_browsing/base_safe_browsing_resource_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698