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/macros.h" |
14 #include "base/time/time.h" | 15 #include "base/time/time.h" |
15 #include "components/invalidation/public/invalidation_util.h" | 16 #include "components/invalidation/public/invalidation_util.h" |
16 #include "components/sync_driver/sync_prefs.h" | 17 #include "components/sync_driver/sync_prefs.h" |
17 #include "components/sync_driver/sync_service_observer.h" | 18 #include "components/sync_driver/sync_service_observer.h" |
18 #include "google/cacheinvalidation/include/types.h" | 19 #include "google/cacheinvalidation/include/types.h" |
19 #include "google_apis/gaia/google_service_auth_error.h" | 20 #include "google_apis/gaia/google_service_auth_error.h" |
20 | 21 |
21 class Profile; | 22 class Profile; |
22 class ProfileSyncService; | 23 class ProfileSyncService; |
23 | 24 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // preferences. | 195 // preferences. |
195 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_; | 196 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_; |
196 | 197 |
197 // Java-side ProfileSyncService object. | 198 // Java-side ProfileSyncService object. |
198 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; | 199 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; |
199 | 200 |
200 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); | 201 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); |
201 }; | 202 }; |
202 | 203 |
203 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ | 204 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ |
OLD | NEW |