| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // checks. | 159 // checks. |
| 160 // | 160 // |
| 161 // TODO(joi): See if we can fix the offending unit tests and remove this | 161 // TODO(joi): See if we can fix the offending unit tests and remove this |
| 162 // workaround. | 162 // workaround. |
| 163 bool enable_thread_checks_; | 163 bool enable_thread_checks_; |
| 164 | 164 |
| 165 // Initially false, switches to true once we have logged because of back-off | 165 // Initially false, switches to true once we have logged because of back-off |
| 166 // being disabled for localhost. | 166 // being disabled for localhost. |
| 167 bool logged_for_localhost_disabled_; | 167 bool logged_for_localhost_disabled_; |
| 168 | 168 |
| 169 // NetLog to use, or NULL if none configured. | 169 // NetLog to use, if configured. |
| 170 scoped_ptr<BoundNetLog> net_log_; | 170 BoundNetLog net_log_; |
| 171 | 171 |
| 172 // Valid once we've registered for network notifications. | 172 // Valid once we've registered for network notifications. |
| 173 base::PlatformThreadId registered_from_thread_; | 173 base::PlatformThreadId registered_from_thread_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerManager); | 175 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerManager); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace net | 178 } // namespace net |
| 179 | 179 |
| 180 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ | 180 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ |
| OLD | NEW |