Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: chrome/browser/sync/profile_sync_service_android.h

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (GN) Comment out dependency on internal target Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/sync/profile_sync_service_observer.h" 15 #include "chrome/browser/sync/profile_sync_service_observer.h"
16 #include "components/sync_driver/sync_prefs.h" 16 #include "components/sync_driver/sync_prefs.h"
17 #include "google/cacheinvalidation/include/types.h" 17 #include "google/cacheinvalidation/include/types.h"
18 #include "google_apis/gaia/google_service_auth_error.h" 18 #include "google_apis/gaia/google_service_auth_error.h"
19 #include "sync/internal_api/public/base/invalidation_util.h"
19 20
20 class Profile; 21 class Profile;
21 class ProfileSyncService; 22 class ProfileSyncService;
22 23
23 // Android wrapper of the ProfileSyncService which provides access from the Java 24 // Android wrapper of the ProfileSyncService which provides access from the Java
24 // 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
25 // a single instance of this wrapper. The name of the Java class is 26 // a single instance of this wrapper. The name of the Java class is
26 // ProfileSyncService. 27 // ProfileSyncService.
27 // This class should only be accessed from the UI thread. 28 // This class should only be accessed from the UI thread.
28 class ProfileSyncServiceAndroid : public ProfileSyncServiceObserver { 29 class ProfileSyncServiceAndroid : public ProfileSyncServiceObserver {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 230
230 // The invalidation API spec allows for the possibility of redundant 231 // The invalidation API spec allows for the possibility of redundant
231 // invalidations, so keep track of the max versions and drop 232 // invalidations, so keep track of the max versions and drop
232 // invalidations with old versions. 233 // invalidations with old versions.
233 ObjectIdVersionMap max_invalidation_versions_; 234 ObjectIdVersionMap max_invalidation_versions_;
234 235
235 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); 236 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid);
236 }; 237 };
237 238
238 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ 239 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.cc ('k') | chrome/browser/sync/profile_sync_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698