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

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

Issue 320993003: [GCM] Add app handler support for connection events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add basic tests Created 6 years, 6 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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/gcm_driver_android.h" 5 #include "components/gcm_driver/gcm_driver_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 bool GCMDriverAndroid::IsStarted() const { 106 bool GCMDriverAndroid::IsStarted() const {
107 return true; 107 return true;
108 } 108 }
109 109
110 bool GCMDriverAndroid::IsGCMClientReady() const { 110 bool GCMDriverAndroid::IsGCMClientReady() const {
111 return true; 111 return true;
112 } 112 }
113 113
114 bool GCMDriverAndroid::IsConnected() const {
115 // TODO(gcm): hook up to GCM connected status
116 return true;
117 }
118
114 void GCMDriverAndroid::GetGCMStatistics( 119 void GCMDriverAndroid::GetGCMStatistics(
115 const GetGCMStatisticsCallback& callback, 120 const GetGCMStatisticsCallback& callback,
116 bool clear_logs) { 121 bool clear_logs) {
117 NOTIMPLEMENTED(); 122 NOTIMPLEMENTED();
118 } 123 }
119 124
120 void GCMDriverAndroid::SetGCMRecording(const GetGCMStatisticsCallback& callback, 125 void GCMDriverAndroid::SetGCMRecording(const GetGCMStatisticsCallback& callback,
121 bool recording) { 126 bool recording) {
122 NOTIMPLEMENTED(); 127 NOTIMPLEMENTED();
123 } 128 }
(...skipping 24 matching lines...) Expand all
148 ConvertUTF8ToJavaString(env, app_id).Release()); 153 ConvertUTF8ToJavaString(env, app_id).Release());
149 } 154 }
150 155
151 void GCMDriverAndroid::SendImpl(const std::string& app_id, 156 void GCMDriverAndroid::SendImpl(const std::string& app_id,
152 const std::string& receiver_id, 157 const std::string& receiver_id,
153 const GCMClient::OutgoingMessage& message) { 158 const GCMClient::OutgoingMessage& message) {
154 NOTIMPLEMENTED(); 159 NOTIMPLEMENTED();
155 } 160 }
156 161
157 } // namespace gcm 162 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698