| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // This keeps track of how many requests have been made. Used with | 95 // This keeps track of how many requests have been made. Used with |
| 96 // GarbageCollectEntries. | 96 // GarbageCollectEntries. |
| 97 unsigned int requests_since_last_gc_; | 97 unsigned int requests_since_last_gc_; |
| 98 | 98 |
| 99 mutable scoped_ptr<GURL::Replacements> url_id_replacements_; | 99 mutable scoped_ptr<GURL::Replacements> url_id_replacements_; |
| 100 | 100 |
| 101 // Whether we would like to reject outgoing HTTP requests during the back-off | 101 // Whether we would like to reject outgoing HTTP requests during the back-off |
| 102 // period. | 102 // period. |
| 103 bool enforce_throttling_; | 103 bool enforce_throttling_; |
| 104 | 104 |
| 105 // Whether to record threads that have accessed the URLRequestThrottlerManager | |
| 106 // singleton object. | |
| 107 // TODO(yzshen): It is used for diagnostic purpose and should be removed once | |
| 108 // we figure out crbug.com/71721 | |
| 109 bool record_access_log_; | |
| 110 | |
| 111 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerManager); | 105 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerManager); |
| 112 }; | 106 }; |
| 113 | 107 |
| 114 } // namespace net | 108 } // namespace net |
| 115 | 109 |
| 116 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ | 110 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ |
| OLD | NEW |