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

Unified Diff: components/invalidation/ticl_invalidation_service.h

Issue 319223002: Componentize TiclInvalidationService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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
Index: components/invalidation/ticl_invalidation_service.h
diff --git a/chrome/browser/invalidation/ticl_invalidation_service.h b/components/invalidation/ticl_invalidation_service.h
similarity index 96%
rename from chrome/browser/invalidation/ticl_invalidation_service.h
rename to components/invalidation/ticl_invalidation_service.h
index b1cbbd32b658378a06b00d267ea864ab563a61dc..332513415a7fff5e6e8c35224cea02545ffb3e13 100644
--- a/chrome/browser/invalidation/ticl_invalidation_service.h
+++ b/components/invalidation/ticl_invalidation_service.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_
-#define CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_
+#ifndef COMPONENTS_INVALIDATION_TICL_INVALIDATION_SERVICE_H_
+#define COMPONENTS_INVALIDATION_TICL_INVALIDATION_SERVICE_H_
#include <string>
@@ -60,6 +60,7 @@ class TiclInvalidationService : public base::NonThreadSafe,
};
TiclInvalidationService(
+ const std::string& user_agent,
scoped_ptr<IdentityProvider> identity_provider,
scoped_ptr<TiclSettingsProvider> settings_provider,
gcm::GCMDriver* gcm_driver,
@@ -131,6 +132,8 @@ class TiclInvalidationService : public base::NonThreadSafe,
void UpdateInvalidatorCredentials();
void StopInvalidator();
+ const std::string user_agent_;
+
scoped_ptr<IdentityProvider> identity_provider_;
scoped_ptr<TiclSettingsProvider> settings_provider_;
@@ -166,4 +169,4 @@ class TiclInvalidationService : public base::NonThreadSafe,
} // namespace invalidation
-#endif // CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_
+#endif // COMPONENTS_INVALIDATION_TICL_INVALIDATION_SERVICE_H_
« no previous file with comments | « components/invalidation/invalidation_service_test_template.cc ('k') | components/invalidation/ticl_invalidation_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698