| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 GCMClient* GCMDriverAndroid::GetGCMClientForTesting() const { | 107 GCMClient* GCMDriverAndroid::GetGCMClientForTesting() const { |
| 108 NOTIMPLEMENTED(); | 108 NOTIMPLEMENTED(); |
| 109 return NULL; | 109 return NULL; |
| 110 } | 110 } |
| 111 | 111 |
| 112 bool GCMDriverAndroid::IsStarted() const { | 112 bool GCMDriverAndroid::IsStarted() const { |
| 113 return true; | 113 return true; |
| 114 } | 114 } |
| 115 | 115 |
| 116 bool GCMDriverAndroid::IsGCMClientReady() const { | |
| 117 return true; | |
| 118 } | |
| 119 | |
| 120 bool GCMDriverAndroid::IsConnected() const { | 116 bool GCMDriverAndroid::IsConnected() const { |
| 121 // TODO(gcm): hook up to GCM connected status | 117 // TODO(gcm): hook up to GCM connected status |
| 122 return true; | 118 return true; |
| 123 } | 119 } |
| 124 | 120 |
| 125 void GCMDriverAndroid::GetGCMStatistics( | 121 void GCMDriverAndroid::GetGCMStatistics( |
| 126 const GetGCMStatisticsCallback& callback, | 122 const GetGCMStatisticsCallback& callback, |
| 127 bool clear_logs) { | 123 bool clear_logs) { |
| 128 NOTIMPLEMENTED(); | 124 NOTIMPLEMENTED(); |
| 129 } | 125 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 155 ConvertUTF8ToJavaString(env, app_id).Release()); | 151 ConvertUTF8ToJavaString(env, app_id).Release()); |
| 156 } | 152 } |
| 157 | 153 |
| 158 void GCMDriverAndroid::SendImpl(const std::string& app_id, | 154 void GCMDriverAndroid::SendImpl(const std::string& app_id, |
| 159 const std::string& receiver_id, | 155 const std::string& receiver_id, |
| 160 const GCMClient::OutgoingMessage& message) { | 156 const GCMClient::OutgoingMessage& message) { |
| 161 NOTIMPLEMENTED(); | 157 NOTIMPLEMENTED(); |
| 162 } | 158 } |
| 163 | 159 |
| 164 } // namespace gcm | 160 } // namespace gcm |
| OLD | NEW |