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

Side by Side Diff: components/gcm/gcm_driver_android.cc

Issue 278493002: Split GCMDriver into platform-specific implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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.
4
5 #include "components/gcm/gcm_driver_android.h"
6
7 #include "base/logging.h"
8 #include "base/message_loop/message_loop_proxy.h"
9
10 namespace gcm {
11
12 GCMDriverAndroid::GCMDriverAndroid(
13 const scoped_refptr<base::MessageLoopProxy>& ui_thread)
14 : GCMDriver(ui_thread) {
15 }
16
17 GCMDriverAndroid::~GCMDriverAndroid() {
18 }
19
20 void GCMDriverAndroid::Enable() {
21 }
22
23 void GCMDriverAndroid::Disable() {
24 }
25
26 void GCMDriverAndroid::Register(const std::string& app_id,
27 const std::vector<std::string>& sender_ids,
28 const RegisterCallback& callback) {
29 DCHECK(ui_thread_->BelongsToCurrentThread());
30
31 // TODO(johnme): Hook up to Android GCM API via JNI.
32 NOTIMPLEMENTED();
33 }
34
35 void GCMDriverAndroid::Unregister(const std::string& app_id,
36 const UnregisterCallback& callback) {
37 DCHECK(ui_thread_->BelongsToCurrentThread());
38
39 // TODO(johnme): Hook up to Android GCM API via JNI.
40 NOTIMPLEMENTED();
41 }
42
43 void GCMDriverAndroid::Send(const std::string& app_id,
44 const std::string& receiver_id,
45 const GCMClient::OutgoingMessage& message,
46 const SendCallback& callback) {
47 NOTIMPLEMENTED();
48 }
49
50 GCMClient* GCMDriverAndroid::GetGCMClientForTesting() const {
51 return NULL;
52 }
53
54 bool GCMDriverAndroid::IsStarted() const {
55 return true;
56 }
57
58 bool GCMDriverAndroid::IsGCMClientReady() const {
59 return true;
60 }
61
62 std::string GCMDriverAndroid::SignedInUserName() const {
63 return "";
64 }
65
66 void GCMDriverAndroid::GetGCMStatistics(GetGCMStatisticsCallback callback,
67 bool clear_logs) {
68 NOTIMPLEMENTED();
69 }
70
71 void GCMDriverAndroid::SetGCMRecording(GetGCMStatisticsCallback callback,
72 bool recording) {
73 NOTIMPLEMENTED();
74 }
75
76 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698