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 #include "components/gcm_driver/instance_id/instance_id_android.h"
7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h"
10 namespace instance_id
{
13 scoped_ptr
<InstanceID
> InstanceID::Create(const std::string
& app_id
,
14 gcm::GCMDriver
* gcm_driver
) {
15 return make_scoped_ptr(new InstanceIDAndroid(app_id
));
18 InstanceIDAndroid::InstanceIDAndroid(const std::string
& app_id
)
19 : InstanceID(app_id
) {
22 InstanceIDAndroid::~InstanceIDAndroid() {
25 void InstanceIDAndroid::GetID(const GetIDCallback
& callback
) {
29 void InstanceIDAndroid::GetCreationTime(
30 const GetCreationTimeCallback
& callback
) {
34 void InstanceIDAndroid::GetToken(
35 const std::string
& audience
,
36 const std::string
& scope
,
37 const std::map
<std::string
, std::string
>& options
,
38 const GetTokenCallback
& callback
) {
42 void InstanceIDAndroid::DeleteToken(const std::string
& audience
,
43 const std::string
& scope
,
44 const DeleteTokenCallback
& callback
) {
48 void InstanceIDAndroid::DeleteID(const DeleteIDCallback
& callback
) {
52 } // namespace instance_id