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/base/net_export.h" |
16 #include "net/log/net_log_with_source.h" | 17 #include "net/log/net_log_with_source.h" |
17 #include "net/url_request/url_request_throttler_entry_interface.h" | 18 #include "net/url_request/url_request_throttler_entry_interface.h" |
18 | 19 |
19 namespace net { | 20 namespace net { |
20 | 21 |
21 class NetworkDelegate; | 22 class NetworkDelegate; |
22 class URLRequestThrottlerManager; | 23 class URLRequestThrottlerManager; |
23 | 24 |
24 // URLRequestThrottlerEntry represents an entry of URLRequestThrottlerManager. | 25 // URLRequestThrottlerEntry represents an entry of URLRequestThrottlerManager. |
25 // It analyzes requests of a specific URL over some period of time, in order to | 26 // It analyzes requests of a specific URL over some period of time, in order to |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 std::string url_id_; | 156 std::string url_id_; |
156 | 157 |
157 NetLogWithSource net_log_; | 158 NetLogWithSource net_log_; |
158 | 159 |
159 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerEntry); | 160 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerEntry); |
160 }; | 161 }; |
161 | 162 |
162 } // namespace net | 163 } // namespace net |
163 | 164 |
164 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ | 165 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ |
OLD | NEW |