| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef BLIMP_CLIENT_CORE_SETTINGS_ANDROID_BLIMP_SETTINGS_ANDROID_H_ | 5 #ifndef BLIMP_CLIENT_CORE_SETTINGS_ANDROID_BLIMP_SETTINGS_ANDROID_H_ |
| 6 #define BLIMP_CLIENT_CORE_SETTINGS_ANDROID_BLIMP_SETTINGS_ANDROID_H_ | 6 #define BLIMP_CLIENT_CORE_SETTINGS_ANDROID_BLIMP_SETTINGS_ANDROID_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| 11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "blimp/client/core/session/identity_source.h" | 13 #include "blimp/client/core/session/identity_source.h" |
| 14 #include "blimp/client/core/session/network_event_observer.h" | 14 #include "blimp/client/core/session/network_event_observer.h" |
| 15 | 15 |
| 16 namespace blimp { | 16 namespace blimp { |
| 17 namespace client { | 17 namespace client { |
| 18 | 18 |
| 19 class BlimpClientContextImplAndroid; | |
| 20 class BlimpSettingsDelegate; | 19 class BlimpSettingsDelegate; |
| 21 | 20 |
| 22 // JNI bridge between AboutBlimpPreferences.java and native code. | 21 // JNI bridge between AboutBlimpPreferences.java and native code. |
| 23 class BlimpSettingsAndroid : public IdentityProvider::Observer, | 22 class BlimpSettingsAndroid : public IdentityProvider::Observer, |
| 24 public NetworkEventObserver { | 23 public NetworkEventObserver { |
| 25 public: | 24 public: |
| 26 static bool RegisterJni(JNIEnv* env); | 25 static bool RegisterJni(JNIEnv* env); |
| 27 static BlimpSettingsAndroid* FromJavaObject( | 26 static BlimpSettingsAndroid* FromJavaObject( |
| 28 JNIEnv* env, | 27 JNIEnv* env, |
| 29 const base::android::JavaRef<jobject>& jobj); | 28 const base::android::JavaRef<jobject>& jobj); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 57 // Delegate that provides functions needed by settings. | 56 // Delegate that provides functions needed by settings. |
| 58 BlimpSettingsDelegate* delegate_; | 57 BlimpSettingsDelegate* delegate_; |
| 59 | 58 |
| 60 DISALLOW_COPY_AND_ASSIGN(BlimpSettingsAndroid); | 59 DISALLOW_COPY_AND_ASSIGN(BlimpSettingsAndroid); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace client | 62 } // namespace client |
| 64 } // namespace blimp | 63 } // namespace blimp |
| 65 | 64 |
| 66 #endif // BLIMP_CLIENT_CORE_SETTINGS_ANDROID_BLIMP_SETTINGS_ANDROID_H_ | 65 #endif // BLIMP_CLIENT_CORE_SETTINGS_ANDROID_BLIMP_SETTINGS_ANDROID_H_ |
| OLD | NEW |