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

Side by Side Diff: components/gcm_driver/instance_id/instance_id_android.h

Issue 1126233004: Persist Instance ID data to GCM store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac Created 5 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_
6 #define COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_ 6 #define COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "components/gcm_driver/instance_id/instance_id.h" 15 #include "components/gcm_driver/instance_id/instance_id.h"
16 16
17 namespace instance_id { 17 namespace instance_id {
18 18
19 // InstanceID implementation for Android. 19 // InstanceID implementation for Android.
20 class InstanceIDAndroid : public InstanceID { 20 class InstanceIDAndroid : public InstanceID {
21 public: 21 public:
22 explicit InstanceIDAndroid(const std::string& app_id); 22 InstanceIDAndroid(const std::string& app_id);
23 ~InstanceIDAndroid() override; 23 ~InstanceIDAndroid() override;
24 24
25 // InstanceID: 25 // InstanceID:
26 std::string GetID() override; 26 void GetID(const GetIDCallback& callback) override;
27 base::Time GetCreationTime() override; 27 void GetCreationTime(const GetCreationTimeCallback& callback) override;
28 void GetToken(const std::string& audience, 28 void GetToken(const std::string& audience,
29 const std::string& scope, 29 const std::string& scope,
30 const std::map<std::string, std::string>& options, 30 const std::map<std::string, std::string>& options,
31 const GetTokenCallback& callback) override; 31 const GetTokenCallback& callback) override;
32 void DeleteToken(const std::string& audience, 32 void DeleteToken(const std::string& audience,
33 const std::string& scope, 33 const std::string& scope,
34 const DeleteTokenCallback& callback) override; 34 const DeleteTokenCallback& callback) override;
35 void DeleteID(const DeleteIDCallback& callback) override; 35 void DeleteID(const DeleteIDCallback& callback) override;
36 36
37 private: 37 private:
38 DISALLOW_COPY_AND_ASSIGN(InstanceIDAndroid); 38 DISALLOW_COPY_AND_ASSIGN(InstanceIDAndroid);
39 }; 39 };
40 40
41 } // namespace instance_id 41 } // namespace instance_id
42 42
43 #endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_ 43 #endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/instance_id/instance_id.h ('k') | components/gcm_driver/instance_id/instance_id_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698