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

Side by Side Diff: chrome/browser/invalidation/device_invalidation_auth_provider_chromeos.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_DEVICE_INVALIDATION_AUTH_PROVIDER_CHROMEOS_H _
6 #define CHROME_BROWSER_INVALIDATION_DEVICE_INVALIDATION_AUTH_PROVIDER_CHROMEOS_H _
7
8 #include "base/macros.h"
9 #include "chrome/browser/invalidation/invalidation_auth_provider.h"
10
11 namespace chromeos {
12 class DeviceOAuth2TokenService;
13 }
14
15 namespace invalidation {
16
17 // Authentication provider implementation backed by DeviceOAuth2TokenService.
18 class DeviceInvalidationAuthProvider : public InvalidationAuthProvider {
19 public:
20 DeviceInvalidationAuthProvider(
21 chromeos::DeviceOAuth2TokenService* token_service);
22 virtual ~DeviceInvalidationAuthProvider();
23
24 // InvalidationAuthProvider:
25 virtual std::string GetAccountId() OVERRIDE;
26 virtual OAuth2TokenService* GetTokenService() OVERRIDE;
27 virtual bool ShowLoginUI() OVERRIDE;
28
29 private:
30 chromeos::DeviceOAuth2TokenService* token_service_;
31
32 DISALLOW_COPY_AND_ASSIGN(DeviceInvalidationAuthProvider);
33 };
34
35 } // namespace invalidation
36
37 #endif // CHROME_BROWSER_INVALIDATION_DEVICE_INVALIDATION_AUTH_PROVIDER_CHROMEO S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698