OLD | NEW |
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 Loading... |
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 InstanceIDStore* GCMDriverAndroid::GetInstanceIDStore() { | 165 InstanceIDHandler* GCMDriverAndroid::GetInstanceIDHandler() { |
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, | 170 void GCMDriverAndroid::AddHeartbeatInterval(const std::string& scope, |
171 int interval_ms) { | 171 int interval_ms) { |
172 } | 172 } |
173 | 173 |
174 void GCMDriverAndroid::RemoveHeartbeatInterval(const std::string& scope) { | 174 void GCMDriverAndroid::RemoveHeartbeatInterval(const std::string& scope) { |
175 } | 175 } |
(...skipping 27 matching lines...) Expand all Loading... |
203 ConvertUTF8ToJavaString(env, sender_id).Release()); | 203 ConvertUTF8ToJavaString(env, sender_id).Release()); |
204 } | 204 } |
205 | 205 |
206 void GCMDriverAndroid::SendImpl(const std::string& app_id, | 206 void GCMDriverAndroid::SendImpl(const std::string& app_id, |
207 const std::string& receiver_id, | 207 const std::string& receiver_id, |
208 const GCMClient::OutgoingMessage& message) { | 208 const GCMClient::OutgoingMessage& message) { |
209 NOTIMPLEMENTED(); | 209 NOTIMPLEMENTED(); |
210 } | 210 } |
211 | 211 |
212 } // namespace gcm | 212 } // namespace gcm |
OLD | NEW |