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

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

Issue 2616653002: Have a list of pending checks instead of pending clients (Closed)
Patch Set: rebase 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
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_;
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698