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

Side by Side Diff: chrome/browser/invalidation/invalidation_controller_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_INVALIDATION_INVALIDATION_CONTROLLER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_INVALIDATION_INVALIDATION_CONTROLLER_ANDROID_H_
6 #define CHROME_BROWSER_INVALIDATION_INVALIDATION_CONTROLLER_ANDROID_H_ 6 #define CHROME_BROWSER_INVALIDATION_INVALIDATION_CONTROLLER_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
11 #include "base/android/jni_weak_ref.h" 11 #include "base/android/jni_weak_ref.h"
12 #include "sync/notifier/invalidation_util.h" 12 #include "sync/internal_api/public/base/invalidation_util.h"
13 13
14 namespace invalidation { 14 namespace invalidation {
15 15
16 // Controls invalidation registration on Android. This class is a wrapper for 16 // Controls invalidation registration on Android. This class is a wrapper for
17 // the Java class org.chromium.sync.notifier.InvalidationController. 17 // the Java class org.chromium.sync.notifier.InvalidationController.
18 class InvalidationControllerAndroid { 18 class InvalidationControllerAndroid {
19 public: 19 public:
20 InvalidationControllerAndroid(); 20 InvalidationControllerAndroid();
21 virtual ~InvalidationControllerAndroid(); 21 virtual ~InvalidationControllerAndroid();
22 22
23 // Sets object ids for which the invalidation client should register for 23 // Sets object ids for which the invalidation client should register for
24 // notification. 24 // notification.
25 virtual void SetRegisteredObjectIds(const syncer::ObjectIdSet& ids); 25 virtual void SetRegisteredObjectIds(const syncer::ObjectIdSet& ids);
26 26
27 // Asks the Java code to return the client ID it chose to use. 27 // Asks the Java code to return the client ID it chose to use.
28 std::string GetInvalidatorClientId(); 28 std::string GetInvalidatorClientId();
29 29
30 private: 30 private:
31 // The Java invalidation controller. 31 // The Java invalidation controller.
32 base::android::ScopedJavaGlobalRef<jobject> invalidation_controller_; 32 base::android::ScopedJavaGlobalRef<jobject> invalidation_controller_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(InvalidationControllerAndroid); 34 DISALLOW_COPY_AND_ASSIGN(InvalidationControllerAndroid);
35 }; 35 };
36 36
37 bool RegisterInvalidationController(JNIEnv* env); 37 bool RegisterInvalidationController(JNIEnv* env);
38 38
39 } // namespace invalidation 39 } // namespace invalidation
40 40
41 #endif // CHROME_BROWSER_INVALIDATION_INVALIDATION_CONTROLLER_ANDROID_H_ 41 #endif // CHROME_BROWSER_INVALIDATION_INVALIDATION_CONTROLLER_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/fake_invalidation_service.cc ('k') | chrome/browser/invalidation/invalidation_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698