| 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 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "base/android/jni_weak_ref.h" | 13 #include "base/android/jni_weak_ref.h" |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "components/invalidation/public/invalidation_util.h" | 18 #include "components/invalidation/public/invalidation_util.h" |
| 19 #include "components/sync/driver/sync_prefs.h" | 19 #include "components/sync/base/sync_prefs.h" |
| 20 #include "components/sync/driver/sync_service_observer.h" | 20 #include "components/sync/driver/sync_service_observer.h" |
| 21 #include "google/cacheinvalidation/include/types.h" | 21 #include "google/cacheinvalidation/include/types.h" |
| 22 #include "google_apis/gaia/google_service_auth_error.h" | 22 #include "google_apis/gaia/google_service_auth_error.h" |
| 23 | 23 |
| 24 class Profile; | 24 class Profile; |
| 25 | 25 |
| 26 namespace browser_sync { | 26 namespace browser_sync { |
| 27 class ProfileSyncService; | 27 class ProfileSyncService; |
| 28 } | 28 } |
| 29 | 29 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // preferences. | 211 // preferences. |
| 212 std::unique_ptr<syncer::SyncPrefs> sync_prefs_; | 212 std::unique_ptr<syncer::SyncPrefs> sync_prefs_; |
| 213 | 213 |
| 214 // Java-side ProfileSyncService object. | 214 // Java-side ProfileSyncService object. |
| 215 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; | 215 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; |
| 216 | 216 |
| 217 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); | 217 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ | 220 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ |
| OLD | NEW |