Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / components / gcm_driver / instance_id / instance_id_android.h
blob7a6babf647db9461da16addaf713c7dbd5d650bd
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_
6 #define COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_
8 #include <map>
9 #include <string>
11 #include "base/callback.h"
12 #include "base/compiler_specific.h"
13 #include "base/macros.h"
14 #include "base/time/time.h"
15 #include "components/gcm_driver/instance_id/instance_id.h"
17 namespace instance_id {
19 // InstanceID implementation for Android.
20 class InstanceIDAndroid : public InstanceID {
21 public:
22 InstanceIDAndroid(const std::string& app_id);
23 ~InstanceIDAndroid() override;
25 // InstanceID:
26 void GetID(const GetIDCallback& callback) override;
27 void GetCreationTime(const GetCreationTimeCallback& callback) override;
28 void GetToken(const std::string& audience,
29 const std::string& scope,
30 const std::map<std::string, std::string>& options,
31 const GetTokenCallback& callback) override;
32 void DeleteToken(const std::string& audience,
33 const std::string& scope,
34 const DeleteTokenCallback& callback) override;
35 void DeleteID(const DeleteIDCallback& callback) override;
37 private:
38 DISALLOW_COPY_AND_ASSIGN(InstanceIDAndroid);
41 } // namespace instance_id
43 #endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_