| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 const GetGCMStatisticsCallback& callback, | 132 const GetGCMStatisticsCallback& callback, |
| 133 bool clear_logs) { | 133 bool clear_logs) { |
| 134 NOTIMPLEMENTED(); | 134 NOTIMPLEMENTED(); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void GCMDriverAndroid::SetGCMRecording(const GetGCMStatisticsCallback& callback, | 137 void GCMDriverAndroid::SetGCMRecording(const GetGCMStatisticsCallback& callback, |
| 138 bool recording) { | 138 bool recording) { |
| 139 NOTIMPLEMENTED(); | 139 NOTIMPLEMENTED(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void GCMDriverAndroid::SetAccountTokens( |
| 143 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) { |
| 144 NOTIMPLEMENTED(); |
| 145 } |
| 146 |
| 142 void GCMDriverAndroid::UpdateAccountMapping( | 147 void GCMDriverAndroid::UpdateAccountMapping( |
| 143 const AccountMapping& account_mapping) { | 148 const AccountMapping& account_mapping) { |
| 149 NOTIMPLEMENTED(); |
| 144 } | 150 } |
| 145 | 151 |
| 146 void GCMDriverAndroid::RemoveAccountMapping(const std::string& account_id) { | 152 void GCMDriverAndroid::RemoveAccountMapping(const std::string& account_id) { |
| 153 NOTIMPLEMENTED(); |
| 147 } | 154 } |
| 148 | 155 |
| 149 GCMClient::Result GCMDriverAndroid::EnsureStarted() { | 156 GCMClient::Result GCMDriverAndroid::EnsureStarted() { |
| 150 // TODO(johnme): Maybe we should check if GMS is available? | 157 // TODO(johnme): Maybe we should check if GMS is available? |
| 151 return GCMClient::SUCCESS; | 158 return GCMClient::SUCCESS; |
| 152 } | 159 } |
| 153 | 160 |
| 154 void GCMDriverAndroid::RegisterImpl( | 161 void GCMDriverAndroid::RegisterImpl( |
| 155 const std::string& app_id, | 162 const std::string& app_id, |
| 156 const std::vector<std::string>& sender_ids) { | 163 const std::vector<std::string>& sender_ids) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 168 ConvertUTF8ToJavaString(env, app_id).Release()); | 175 ConvertUTF8ToJavaString(env, app_id).Release()); |
| 169 } | 176 } |
| 170 | 177 |
| 171 void GCMDriverAndroid::SendImpl(const std::string& app_id, | 178 void GCMDriverAndroid::SendImpl(const std::string& app_id, |
| 172 const std::string& receiver_id, | 179 const std::string& receiver_id, |
| 173 const GCMClient::OutgoingMessage& message) { | 180 const GCMClient::OutgoingMessage& message) { |
| 174 NOTIMPLEMENTED(); | 181 NOTIMPLEMENTED(); |
| 175 } | 182 } |
| 176 | 183 |
| 177 } // namespace gcm | 184 } // namespace gcm |
| OLD | NEW |