summaryrefslogtreecommitdiffstats
path: root/chrome/browser/invalidation/p2p_invalidation_service.h
diff options
context:
space:
mode:
authorbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-23 19:46:53 +0000
committerbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-23 19:46:53 +0000
commita263ff59f18b9ab39601fafe4e60e44e9a20d20f (patch)
tree027c91e3e5811572d8d9bc111f962ca69a61d0e7 /chrome/browser/invalidation/p2p_invalidation_service.h
parent2442605058353f23d08db64f39cff92c48f7e8e6 (diff)
downloadchromium_src-a263ff59f18b9ab39601fafe4e60e44e9a20d20f.zip
chromium_src-a263ff59f18b9ab39601fafe4e60e44e9a20d20f.tar.gz
chromium_src-a263ff59f18b9ab39601fafe4e60e44e9a20d20f.tar.bz2
Rename InvalidationAuthProvider to IdentityProvider
The InvalidationAuthProvider is useful outside the area of invalidation: It provides an abstract interface for accessing the logged-in GAIA account and receiving notifications about login/logout events. This CL renames the InvalidationAuthProvider to IdentityProvider and places it in the gaia_apis component. This change is a prerequisite for CL 225403021, which will use the IdentityProvider in GCM. BUG=362083 TEST=Updated tests TBR=atwilson (for chrome/browser/sync/test/integration/sync_test.cc) Review URL: https://codereview.chromium.org/235273002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265706 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/invalidation/p2p_invalidation_service.h')
-rw-r--r--chrome/browser/invalidation/p2p_invalidation_service.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/invalidation/p2p_invalidation_service.h b/chrome/browser/invalidation/p2p_invalidation_service.h
index bd4c695..f19d059 100644
--- a/chrome/browser/invalidation/p2p_invalidation_service.h
+++ b/chrome/browser/invalidation/p2p_invalidation_service.h
@@ -32,7 +32,7 @@ class P2PInvalidationService
public InvalidationService {
public:
P2PInvalidationService(
- scoped_ptr<InvalidationAuthProvider> auth_provider,
+ scoped_ptr<IdentityProvider> identity_provider,
const scoped_refptr<net::URLRequestContextGetter>& request_context,
syncer::P2PNotificationTarget notification_target);
virtual ~P2PInvalidationService();
@@ -54,7 +54,7 @@ class P2PInvalidationService
virtual InvalidationLogger* GetInvalidationLogger() OVERRIDE;
virtual void RequestDetailedStatus(
base::Callback<void(const base::DictionaryValue&)> caller) const OVERRIDE;
- virtual InvalidationAuthProvider* GetInvalidationAuthProvider() OVERRIDE;
+ virtual IdentityProvider* GetIdentityProvider() OVERRIDE;
void UpdateCredentials(const std::string& username,
const std::string& password);
@@ -62,7 +62,7 @@ class P2PInvalidationService
void SendInvalidation(const syncer::ObjectIdSet& ids);
private:
- scoped_ptr<InvalidationAuthProvider> auth_provider_;
+ scoped_ptr<IdentityProvider> identity_provider_;
scoped_ptr<syncer::P2PInvalidator> invalidator_;
std::string invalidator_id_;