Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: net/base/backoff_entry.h

Issue 18054009: Use a direct include of time headers in net/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/base/bandwidth_metrics.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/base/bandwidth_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698