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

Side by Side Diff: chrome/browser/invalidation/profile_invalidation_auth_provider.h

Issue 179843002: Make invalidations work for Chrome OS Kiosk Apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge error leading to uninitialized memory access. Created 6 years, 9 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
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_AUTH_PROVIDER_H_
6 #define CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_AUTH_PROVIDER_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/invalidation/invalidation_auth_provider.h"
10 #include "chrome/browser/signin/signin_manager_base.h"
11
12 class LoginUIService;
13 class ProfileOAuth2TokenService;
14
15 namespace invalidation {
16
17 // An authentication provider implementation that's backed by
18 // ProfileOAuth2TokenService and SigninManager.
19 class ProfileInvalidationAuthProvider : public InvalidationAuthProvider,
20 public SigninManagerBase::Observer {
21 public:
22 ProfileInvalidationAuthProvider(SigninManagerBase* signin_manager,
23 ProfileOAuth2TokenService* token_service,
24 LoginUIService* login_ui_service);
25 virtual ~ProfileInvalidationAuthProvider();
26
27 // InvalidationAuthProvider:
28 virtual std::string GetAccountId() OVERRIDE;
29 virtual OAuth2TokenService* GetTokenService() OVERRIDE;
30 virtual bool ShowLoginUI() OVERRIDE;
31
32 // SigninManagerBase::Observer:
33 virtual void GoogleSignedOut(const std::string& username) OVERRIDE;
34
35 private:
36 SigninManagerBase* const signin_manager_;
37 ProfileOAuth2TokenService* const token_service_;
38 LoginUIService* const login_ui_service_;
39
40 DISALLOW_COPY_AND_ASSIGN(ProfileInvalidationAuthProvider);
41 };
42
43 } // namespace invalidation
44
45 #endif // CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_AUTH_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698