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

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

Issue 1124783002: [GCM] Wiring heartbeat interval calls to GCMDriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@store-heartbeat-gcm
Patch Set: Addressing final feedback and fixing formatting Created 5 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
« no previous file with comments | « components/gcm_driver/gcm_driver_android.h ('k') | components/gcm_driver/gcm_driver_desktop.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 160 }
161 161
162 void GCMDriverAndroid::WakeFromSuspendForHeartbeat(bool wake) { 162 void GCMDriverAndroid::WakeFromSuspendForHeartbeat(bool wake) {
163 } 163 }
164 164
165 InstanceIDStore* GCMDriverAndroid::GetInstanceIDStore() { 165 InstanceIDStore* GCMDriverAndroid::GetInstanceIDStore() {
166 // Not supported for Android. 166 // Not supported for Android.
167 return NULL; 167 return NULL;
168 } 168 }
169 169
170 void GCMDriverAndroid::AddHeartbeatInterval(const std::string& scope,
171 int interval_ms) {
172 }
173
174 void GCMDriverAndroid::RemoveHeartbeatInterval(const std::string& scope) {
175 }
176
170 GCMClient::Result GCMDriverAndroid::EnsureStarted( 177 GCMClient::Result GCMDriverAndroid::EnsureStarted(
171 GCMClient::StartMode start_mode) { 178 GCMClient::StartMode start_mode) {
172 // TODO(johnme): Maybe we should check if GMS is available? 179 // TODO(johnme): Maybe we should check if GMS is available?
173 return GCMClient::SUCCESS; 180 return GCMClient::SUCCESS;
174 } 181 }
175 182
176 void GCMDriverAndroid::RegisterImpl( 183 void GCMDriverAndroid::RegisterImpl(
177 const std::string& app_id, const std::vector<std::string>& sender_ids) { 184 const std::string& app_id, const std::vector<std::string>& sender_ids) {
178 DCHECK_EQ(1u, sender_ids.size()); 185 DCHECK_EQ(1u, sender_ids.size());
179 JNIEnv* env = AttachCurrentThread(); 186 JNIEnv* env = AttachCurrentThread();
(...skipping 16 matching lines...) Expand all
196 ConvertUTF8ToJavaString(env, sender_id).Release()); 203 ConvertUTF8ToJavaString(env, sender_id).Release());
197 } 204 }
198 205
199 void GCMDriverAndroid::SendImpl(const std::string& app_id, 206 void GCMDriverAndroid::SendImpl(const std::string& app_id,
200 const std::string& receiver_id, 207 const std::string& receiver_id,
201 const GCMClient::OutgoingMessage& message) { 208 const GCMClient::OutgoingMessage& message) {
202 NOTIMPLEMENTED(); 209 NOTIMPLEMENTED();
203 } 210 }
204 211
205 } // namespace gcm 212 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_driver_android.h ('k') | components/gcm_driver/gcm_driver_desktop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698