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

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: Adding MCS client tests for storing heartbeat interval 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
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 return base::Time(); 155 return base::Time();
156 } 156 }
157 157
158 void GCMDriverAndroid::SetLastTokenFetchTime(const base::Time& time) { 158 void GCMDriverAndroid::SetLastTokenFetchTime(const base::Time& time) {
159 NOTIMPLEMENTED(); 159 NOTIMPLEMENTED();
160 } 160 }
161 161
162 void GCMDriverAndroid::WakeFromSuspendForHeartbeat(bool wake) { 162 void GCMDriverAndroid::WakeFromSuspendForHeartbeat(bool wake) {
163 } 163 }
164 164
165 void GCMDriverAndroid::AddHeartbeatInterval(const std::string& scope,
166 int interval_ms) {
167 }
168
169 void GCMDriverAndroid::RemoveHeartbeatInterval(const std::string& scope) {
170 }
171
165 GCMClient::Result GCMDriverAndroid::EnsureStarted( 172 GCMClient::Result GCMDriverAndroid::EnsureStarted(
166 GCMClient::StartMode start_mode) { 173 GCMClient::StartMode start_mode) {
167 // TODO(johnme): Maybe we should check if GMS is available? 174 // TODO(johnme): Maybe we should check if GMS is available?
168 return GCMClient::SUCCESS; 175 return GCMClient::SUCCESS;
169 } 176 }
170 177
171 void GCMDriverAndroid::RegisterImpl( 178 void GCMDriverAndroid::RegisterImpl(
172 const std::string& app_id, const std::vector<std::string>& sender_ids) { 179 const std::string& app_id, const std::vector<std::string>& sender_ids) {
173 DCHECK_EQ(1u, sender_ids.size()); 180 DCHECK_EQ(1u, sender_ids.size());
174 JNIEnv* env = AttachCurrentThread(); 181 JNIEnv* env = AttachCurrentThread();
(...skipping 16 matching lines...) Expand all
191 ConvertUTF8ToJavaString(env, sender_id).Release()); 198 ConvertUTF8ToJavaString(env, sender_id).Release());
192 } 199 }
193 200
194 void GCMDriverAndroid::SendImpl(const std::string& app_id, 201 void GCMDriverAndroid::SendImpl(const std::string& app_id,
195 const std::string& receiver_id, 202 const std::string& receiver_id,
196 const GCMClient::OutgoingMessage& message) { 203 const GCMClient::OutgoingMessage& message) {
197 NOTIMPLEMENTED(); 204 NOTIMPLEMENTED();
198 } 205 }
199 206
200 } // namespace gcm 207 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698