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

Unified Diff: components/invalidation/registration_manager.h

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (GN) Comment out dependency on internal target Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/invalidation/p2p_invalidator.cc ('k') | components/invalidation/registration_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/invalidation/registration_manager.h
diff --git a/sync/notifier/registration_manager.h b/components/invalidation/registration_manager.h
similarity index 94%
rename from sync/notifier/registration_manager.h
rename to components/invalidation/registration_manager.h
index e190a7fad55caeb38e947981190524ca074f3c42..42bc18fa09af518007a1d751da67f6ce943dbe1c 100644
--- a/sync/notifier/registration_manager.h
+++ b/components/invalidation/registration_manager.h
@@ -5,8 +5,8 @@
// A class that manages the registration of types for server-issued
// notifications.
-#ifndef SYNC_NOTIFIER_REGISTRATION_MANAGER_H_
-#define SYNC_NOTIFIER_REGISTRATION_MANAGER_H_
+#ifndef COMPONENTS_INVALIDATION_REGISTRATION_MANAGER_H_
+#define COMPONENTS_INVALIDATION_REGISTRATION_MANAGER_H_
#include <map>
@@ -15,10 +15,10 @@
#include "base/time/time.h"
#include "base/timer/timer.h"
// For invalidation::InvalidationListener::RegistrationState.
+#include "components/invalidation/invalidation_export.h"
#include "google/cacheinvalidation/include/invalidation-listener.h"
#include "google/cacheinvalidation/include/types.h"
-#include "sync/base/sync_export.h"
-#include "sync/notifier/invalidation_util.h"
+#include "sync/internal_api/public/base/invalidation_util.h"
namespace syncer {
@@ -32,7 +32,8 @@ using ::invalidation::InvalidationListener;
// implementations include the syncer thread (both versions) and XMPP
// retries. The most sophisticated one is URLRequestThrottler; making
// that generic should work for everyone.
-class SYNC_EXPORT_PRIVATE RegistrationManager : public base::NonThreadSafe {
+class INVALIDATION_EXPORT_PRIVATE RegistrationManager
+ : public base::NonThreadSafe {
public:
// Constants for exponential backoff (used by tests).
static const int kInitialRegistrationDelaySeconds;
@@ -184,4 +185,4 @@ class SYNC_EXPORT_PRIVATE RegistrationManager : public base::NonThreadSafe {
} // namespace syncer
-#endif // SYNC_NOTIFIER_REGISTRATION_MANAGER_H_
+#endif // COMPONENTS_INVALIDATION_REGISTRATION_MANAGER_H_
« no previous file with comments | « components/invalidation/p2p_invalidator.cc ('k') | components/invalidation/registration_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698