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

Side by Side Diff: chrome/browser/loader/safe_browsing_resource_throttle.h

Issue 2626153003: [M56] Have a list of pending checks instead of pending clients (Closed)
Patch Set: 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 | chrome/browser/loader/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) 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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/loader/safe_browsing_resource_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698