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 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 bool IsSyncAllowedByAndroid() const; | 186 bool IsSyncAllowedByAndroid() const; |
187 | 187 |
188 // A reference to the Chrome profile object. | 188 // A reference to the Chrome profile object. |
189 Profile* profile_; | 189 Profile* profile_; |
190 | 190 |
191 // A reference to the sync service for this profile. | 191 // A reference to the sync service for this profile. |
192 ProfileSyncService* sync_service_; | 192 ProfileSyncService* sync_service_; |
193 | 193 |
194 // The class that handles getting, setting, and persisting sync | 194 // The class that handles getting, setting, and persisting sync |
195 // preferences. | 195 // preferences. |
196 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_; | 196 std::unique_ptr<sync_driver::SyncPrefs> sync_prefs_; |
197 | 197 |
198 // Java-side ProfileSyncService object. | 198 // Java-side ProfileSyncService object. |
199 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; | 199 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; |
200 | 200 |
201 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); | 201 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); |
202 }; | 202 }; |
203 | 203 |
204 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ | 204 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ |
OLD | NEW |