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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 DeferState defer_state_; 157 DeferState defer_state_;
158 158
159 // The result of the most recent safe browsing check. Only valid to read this 159 // The result of the most recent safe browsing check. Only valid to read this
160 // when state_ != STATE_CHECKING_URL. 160 // when state_ != STATE_CHECKING_URL.
161 SBThreatType threat_type_; 161 SBThreatType threat_type_;
162 162
163 // The time when we started deferring the request. 163 // The time when we started deferring the request.
164 base::TimeTicks defer_start_time_; 164 base::TimeTicks defer_start_time_;
165 165
166 // Timer to abort the safe browsing check if it takes too long. 166 // Timer to abort the safe browsing check if it takes too long.
167 base::OneShotTimer<SafeBrowsingResourceThrottle> timer_; 167 base::OneShotTimer timer_;
168 168
169 // The redirect chain for this resource 169 // The redirect chain for this resource
170 std::vector<GURL> redirect_urls_; 170 std::vector<GURL> redirect_urls_;
171 171
172 // If in DEFERRED_UNCHECKED_REDIRECT state, this is the 172 // If in DEFERRED_UNCHECKED_REDIRECT state, this is the
173 // URL we still need to check before resuming. 173 // URL we still need to check before resuming.
174 GURL unchecked_redirect_url_; 174 GURL unchecked_redirect_url_;
175 GURL url_being_checked_; 175 GURL url_being_checked_;
176 176
177 scoped_refptr<SafeBrowsingDatabaseManager> database_manager_; 177 scoped_refptr<SafeBrowsingDatabaseManager> database_manager_;
178 scoped_refptr<SafeBrowsingUIManager> ui_manager_; 178 scoped_refptr<SafeBrowsingUIManager> ui_manager_;
179 const net::URLRequest* request_; 179 const net::URLRequest* request_;
180 const content::ResourceType resource_type_; 180 const content::ResourceType resource_type_;
181 181
182 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceThrottle); 182 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceThrottle);
183 }; 183 };
184 #endif // CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_ 184 #endif // CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698