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

Side by Side Diff: components/invalidation/impl/registration_manager.h

Issue 1413173005: Deprecate *_EXPORT_PRIVATE macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl format Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // A class that manages the registration of types for server-issued 5 // A class that manages the registration of types for server-issued
6 // notifications. 6 // notifications.
7 7
8 #ifndef COMPONENTS_INVALIDATION_IMPL_REGISTRATION_MANAGER_H_ 8 #ifndef COMPONENTS_INVALIDATION_IMPL_REGISTRATION_MANAGER_H_
9 #define COMPONENTS_INVALIDATION_IMPL_REGISTRATION_MANAGER_H_ 9 #define COMPONENTS_INVALIDATION_IMPL_REGISTRATION_MANAGER_H_
10 10
(...skipping 14 matching lines...) Expand all
25 using ::invalidation::InvalidationListener; 25 using ::invalidation::InvalidationListener;
26 26
27 // Manages the details of registering types for invalidation. 27 // Manages the details of registering types for invalidation.
28 // Implements exponential backoff for repeated registration attempts 28 // Implements exponential backoff for repeated registration attempts
29 // to the invalidation client. 29 // to the invalidation client.
30 // 30 //
31 // TODO(akalin): Consolidate exponential backoff code. Other 31 // TODO(akalin): Consolidate exponential backoff code. Other
32 // implementations include the syncer thread (both versions) and XMPP 32 // implementations include the syncer thread (both versions) and XMPP
33 // retries. The most sophisticated one is URLRequestThrottler; making 33 // retries. The most sophisticated one is URLRequestThrottler; making
34 // that generic should work for everyone. 34 // that generic should work for everyone.
35 class INVALIDATION_EXPORT_PRIVATE RegistrationManager 35 class INVALIDATION_EXPORT RegistrationManager : public base::NonThreadSafe {
36 : public base::NonThreadSafe {
37 public: 36 public:
38 // Constants for exponential backoff (used by tests). 37 // Constants for exponential backoff (used by tests).
39 static const int kInitialRegistrationDelaySeconds; 38 static const int kInitialRegistrationDelaySeconds;
40 static const int kRegistrationDelayExponent; 39 static const int kRegistrationDelayExponent;
41 static const double kRegistrationDelayMaxJitter; 40 static const double kRegistrationDelayMaxJitter;
42 static const int kMinRegistrationDelaySeconds; 41 static const int kMinRegistrationDelaySeconds;
43 static const int kMaxRegistrationDelaySeconds; 42 static const int kMaxRegistrationDelaySeconds;
44 43
45 // Types used by testing functions. 44 // Types used by testing functions.
46 struct PendingRegistrationInfo { 45 struct PendingRegistrationInfo {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 RegistrationStatusMap registration_statuses_; 178 RegistrationStatusMap registration_statuses_;
180 // Weak pointer. 179 // Weak pointer.
181 invalidation::InvalidationClient* invalidation_client_; 180 invalidation::InvalidationClient* invalidation_client_;
182 181
183 DISALLOW_COPY_AND_ASSIGN(RegistrationManager); 182 DISALLOW_COPY_AND_ASSIGN(RegistrationManager);
184 }; 183 };
185 184
186 } // namespace syncer 185 } // namespace syncer
187 186
188 #endif // COMPONENTS_INVALIDATION_IMPL_REGISTRATION_MANAGER_H_ 187 #endif // COMPONENTS_INVALIDATION_IMPL_REGISTRATION_MANAGER_H_
OLDNEW
« no previous file with comments | « components/invalidation/impl/push_client_channel.h ('k') | components/invalidation/impl/state_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698