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

Side by Side Diff: chrome/browser/invalidation/invalidation_controller_android.h

Issue 23643002: Enable invalidations for arbitrary objects on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_INVALIDATION_INVALIDATION_CONTROLLER_ANDROID_H_
6 #define CHROME_BROWSER_INVALIDATION_INVALIDATION_CONTROLLER_ANDROID_H_
7
8 #include "base/android/jni_android.h"
9 #include "base/android/jni_helper.h"
10 #include "sync/notifier/invalidation_util.h"
11
12 namespace invalidation {
13
14 // Controls invalidation registration on Android. This class is a wrapper for
15 // the Java class org.chromium.sync.notifier.InvalidationController.
16 class InvalidationControllerAndroid {
17 public:
18 InvalidationControllerAndroid();
19 virtual ~InvalidationControllerAndroid();
20
21 // Sets object ids for which the invalidation client should register for
22 // notification.
23 virtual void SetRegisteredObjectIds(const syncer::ObjectIdSet& ids);
24
25 private:
26 // The Java invalidation controller.
27 base::android::ScopedJavaGlobalRef<jobject> invalidation_controller_;
28
29 DISALLOW_COPY_AND_ASSIGN(InvalidationControllerAndroid);
30 };
31
32 bool RegisterInvalidationController(JNIEnv* env);
33
34 } // namespace invalidation
35
36 #endif // CHROME_BROWSER_INVALIDATION_INVALIDATION_CONTROLLER_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/DEPS ('k') | chrome/browser/invalidation/invalidation_controller_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698