OLD | NEW |
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 #include "components/gcm_driver/instance_id/instance_id_android.h" | 5 #include "components/gcm_driver/instance_id/instance_id_android.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace instance_id { | 9 namespace instance_id { |
10 | 10 |
11 // static | 11 // static |
12 InstanceID* InstanceID::Create(const std::string& app_id, | 12 InstanceID* InstanceID::Create(const std::string& app_id, |
13 gcm::GCMDriver* gcm_driver) { | 13 gcm::GCMDriver* gcm_driver) { |
14 return new InstanceIDAndroid(app_id); | 14 return new InstanceIDAndroid(app_id); |
15 } | 15 } |
16 | 16 |
17 InstanceIDAndroid::InstanceIDAndroid(const std::string& app_id) | 17 InstanceIDAndroid::InstanceIDAndroid(const std::string& app_id) |
18 : InstanceID(app_id) { | 18 : InstanceID(app_id) { |
19 } | 19 } |
20 | 20 |
21 InstanceIDAndroid::~InstanceIDAndroid() { | 21 InstanceIDAndroid::~InstanceIDAndroid() { |
22 } | 22 } |
23 | 23 |
24 std::string InstanceIDAndroid::GetID() { | 24 void InstanceIDAndroid::GetID(const GetIDCallback& callback) { |
25 NOTIMPLEMENTED(); | 25 NOTIMPLEMENTED(); |
26 return std::string(); | |
27 } | 26 } |
28 | 27 |
29 base::Time InstanceIDAndroid::GetCreationTime() { | 28 void InstanceIDAndroid::GetCreationTime( |
| 29 const GetCreationTimeCallback& callback) { |
30 NOTIMPLEMENTED(); | 30 NOTIMPLEMENTED(); |
31 return base::Time(); | |
32 } | 31 } |
33 | 32 |
34 void InstanceIDAndroid::GetToken( | 33 void InstanceIDAndroid::GetToken( |
35 const std::string& audience, | 34 const std::string& audience, |
36 const std::string& scope, | 35 const std::string& scope, |
37 const std::map<std::string, std::string>& options, | 36 const std::map<std::string, std::string>& options, |
38 const GetTokenCallback& callback) { | 37 const GetTokenCallback& callback) { |
39 NOTIMPLEMENTED(); | 38 NOTIMPLEMENTED(); |
40 } | 39 } |
41 | 40 |
42 void InstanceIDAndroid::DeleteToken(const std::string& audience, | 41 void InstanceIDAndroid::DeleteToken(const std::string& audience, |
43 const std::string& scope, | 42 const std::string& scope, |
44 const DeleteTokenCallback& callback) { | 43 const DeleteTokenCallback& callback) { |
45 NOTIMPLEMENTED(); | 44 NOTIMPLEMENTED(); |
46 } | 45 } |
47 | 46 |
48 void InstanceIDAndroid::DeleteID(const DeleteIDCallback& callback) { | 47 void InstanceIDAndroid::DeleteID(const DeleteIDCallback& callback) { |
49 NOTIMPLEMENTED(); | 48 NOTIMPLEMENTED(); |
50 } | 49 } |
51 | 50 |
52 } // namespace instance_id | 51 } // namespace instance_id |
OLD | NEW |