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_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 Loading... |
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_ |
OLD | NEW |