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_
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
{
22 InstanceIDAndroid(const std::string
& app_id
);
23 ~InstanceIDAndroid() override
;
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
;
38 DISALLOW_COPY_AND_ASSIGN(InstanceIDAndroid
);
41 } // namespace instance_id
43 #endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_