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

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

Issue 1785613006: Make GCMDriver::GetInstanceIDHandler protected, to avoid misuse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address peter's nits Created 4 years, 9 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 #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 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 9
10 namespace instance_id { 10 namespace instance_id {
11 11
12 // static 12 // static
13 scoped_ptr<InstanceID> InstanceID::Create(const std::string& app_id, 13 scoped_ptr<InstanceID> InstanceID::Create(const std::string& app_id,
14 gcm::GCMDriver* gcm_driver) { 14 gcm::InstanceIDHandler* handler) {
15 return make_scoped_ptr(new InstanceIDAndroid(app_id)); 15 return make_scoped_ptr(new InstanceIDAndroid(app_id, handler));
16 } 16 }
17 17
18 InstanceIDAndroid::InstanceIDAndroid(const std::string& app_id) 18 InstanceIDAndroid::InstanceIDAndroid(const std::string& app_id,
19 : InstanceID(app_id) { 19 gcm::InstanceIDHandler* handler)
20 } 20 : InstanceID(app_id, handler) {}
21 21
22 InstanceIDAndroid::~InstanceIDAndroid() { 22 InstanceIDAndroid::~InstanceIDAndroid() {
23 } 23 }
24 24
25 void InstanceIDAndroid::GetID(const GetIDCallback& callback) { 25 void InstanceIDAndroid::GetID(const GetIDCallback& callback) {
26 NOTIMPLEMENTED(); 26 NOTIMPLEMENTED();
27 } 27 }
28 28
29 void InstanceIDAndroid::GetCreationTime( 29 void InstanceIDAndroid::GetCreationTime(
30 const GetCreationTimeCallback& callback) { 30 const GetCreationTimeCallback& callback) {
(...skipping 12 matching lines...) Expand all
43 const std::string& scope, 43 const std::string& scope,
44 const DeleteTokenCallback& callback) { 44 const DeleteTokenCallback& callback) {
45 NOTIMPLEMENTED(); 45 NOTIMPLEMENTED();
46 } 46 }
47 47
48 void InstanceIDAndroid::DeleteID(const DeleteIDCallback& callback) { 48 void InstanceIDAndroid::DeleteID(const DeleteIDCallback& callback) {
49 NOTIMPLEMENTED(); 49 NOTIMPLEMENTED();
50 } 50 }
51 51
52 } // namespace instance_id 52 } // namespace instance_id
OLDNEW
« no previous file with comments | « components/gcm_driver/instance_id/instance_id_android.h ('k') | components/gcm_driver/instance_id/instance_id_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698