| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "base/android/jni_weak_ref.h" | 11 #include "base/android/jni_weak_ref.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "components/invalidation/invalidation_util.h" | 15 #include "components/invalidation/base/invalidation_util.h" |
| 16 #include "components/sync_driver/sync_prefs.h" | 16 #include "components/sync_driver/sync_prefs.h" |
| 17 #include "components/sync_driver/sync_service_observer.h" | 17 #include "components/sync_driver/sync_service_observer.h" |
| 18 #include "google/cacheinvalidation/include/types.h" | 18 #include "google/cacheinvalidation/include/types.h" |
| 19 #include "google_apis/gaia/google_service_auth_error.h" | 19 #include "google_apis/gaia/google_service_auth_error.h" |
| 20 | 20 |
| 21 class Profile; | 21 class Profile; |
| 22 class ProfileSyncService; | 22 class ProfileSyncService; |
| 23 | 23 |
| 24 // Android wrapper of the ProfileSyncService which provides access from the Java | 24 // Android wrapper of the ProfileSyncService which provides access from the Java |
| 25 // layer. Note that on Android, there's only a single profile, and therefore | 25 // layer. Note that on Android, there's only a single profile, and therefore |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // preferences. | 244 // preferences. |
| 245 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_; | 245 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_; |
| 246 | 246 |
| 247 // Java-side ProfileSyncService object. | 247 // Java-side ProfileSyncService object. |
| 248 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; | 248 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; |
| 249 | 249 |
| 250 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); | 250 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ | 253 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ |
| OLD | NEW |