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_BASE_BACKOFF_ENTRY_H_ | 5 #ifndef NET_BASE_BACKOFF_ENTRY_H_ |
6 #define NET_BASE_BACKOFF_ENTRY_H_ | 6 #define NET_BASE_BACKOFF_ENTRY_H_ |
7 | 7 |
8 #include "base/threading/non_thread_safe.h" | 8 #include "base/threading/non_thread_safe.h" |
9 #include "base/time.h" | 9 #include "base/time/time.h" |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 // Provides the core logic needed for randomized exponential back-off | 14 // Provides the core logic needed for randomized exponential back-off |
15 // on requests to a given resource, given a back-off policy. | 15 // on requests to a given resource, given a back-off policy. |
16 // | 16 // |
17 // This utility class knows nothing about network specifics; it is | 17 // This utility class knows nothing about network specifics; it is |
18 // intended for reuse in various networking scenarios. | 18 // intended for reuse in various networking scenarios. |
19 class NET_EXPORT BackoffEntry : NON_EXPORTED_BASE(public base::NonThreadSafe) { | 19 class NET_EXPORT BackoffEntry : NON_EXPORTED_BASE(public base::NonThreadSafe) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 int failure_count_; | 106 int failure_count_; |
107 | 107 |
108 const Policy* const policy_; | 108 const Policy* const policy_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(BackoffEntry); | 110 DISALLOW_COPY_AND_ASSIGN(BackoffEntry); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace net | 113 } // namespace net |
114 | 114 |
115 #endif // NET_BASE_BACKOFF_ENTRY_H_ | 115 #endif // NET_BASE_BACKOFF_ENTRY_H_ |
OLD | NEW |