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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/android/context_utils.h" | 10 #include "base/android/context_utils.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 message_byte_size += message.raw_data.size(); | 105 message_byte_size += message.raw_data.size(); |
106 } | 106 } |
107 | 107 |
108 recorder_.RecordDataMessageReceived(app_id, message_byte_size); | 108 recorder_.RecordDataMessageReceived(app_id, message_byte_size); |
109 | 109 |
110 DispatchMessage(app_id, message); | 110 DispatchMessage(app_id, message); |
111 } | 111 } |
112 | 112 |
113 // static | 113 // static |
114 bool GCMDriverAndroid::RegisterBindings(JNIEnv* env) { | 114 bool GCMDriverAndroid::RegisterJni(JNIEnv* env) { |
115 return RegisterNativesImpl(env); | 115 return RegisterNativesImpl(env); |
116 } | 116 } |
117 | 117 |
118 void GCMDriverAndroid::OnSignedIn() { | 118 void GCMDriverAndroid::OnSignedIn() { |
119 } | 119 } |
120 | 120 |
121 void GCMDriverAndroid::OnSignedOut() { | 121 void GCMDriverAndroid::OnSignedOut() { |
122 } | 122 } |
123 | 123 |
124 void GCMDriverAndroid::AddConnectionObserver(GCMConnectionObserver* observer) { | 124 void GCMDriverAndroid::AddConnectionObserver(GCMConnectionObserver* observer) { |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 NOTIMPLEMENTED(); | 259 NOTIMPLEMENTED(); |
260 } | 260 } |
261 | 261 |
262 void GCMDriverAndroid::RecordDecryptionFailure( | 262 void GCMDriverAndroid::RecordDecryptionFailure( |
263 const std::string& app_id, | 263 const std::string& app_id, |
264 GCMEncryptionProvider::DecryptionResult result) { | 264 GCMEncryptionProvider::DecryptionResult result) { |
265 recorder_.RecordDecryptionFailure(app_id, result); | 265 recorder_.RecordDecryptionFailure(app_id, result); |
266 } | 266 } |
267 | 267 |
268 } // namespace gcm | 268 } // namespace gcm |
OLD | NEW |