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 NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "net/base/backoff_entry.h" | 15 #include "net/base/backoff_entry.h" |
16 #include "net/log/net_log.h" | 16 #include "net/log/net_log_with_source.h" |
17 #include "net/url_request/url_request_throttler_entry_interface.h" | 17 #include "net/url_request/url_request_throttler_entry_interface.h" |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 | 20 |
21 class NetworkDelegate; | 21 class NetworkDelegate; |
22 class URLRequestThrottlerManager; | 22 class URLRequestThrottlerManager; |
23 | 23 |
24 // URLRequestThrottlerEntry represents an entry of URLRequestThrottlerManager. | 24 // URLRequestThrottlerEntry represents an entry of URLRequestThrottlerManager. |
25 // It analyzes requests of a specific URL over some period of time, in order to | 25 // It analyzes requests of a specific URL over some period of time, in order to |
26 // deduce the back-off time for every request. | 26 // deduce the back-off time for every request. |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 std::string url_id_; | 155 std::string url_id_; |
156 | 156 |
157 NetLogWithSource net_log_; | 157 NetLogWithSource net_log_; |
158 | 158 |
159 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerEntry); | 159 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerEntry); |
160 }; | 160 }; |
161 | 161 |
162 } // namespace net | 162 } // namespace net |
163 | 163 |
164 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ | 164 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ |
OLD | NEW |