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

Side by Side Diff: chrome/browser/android/chrome_backup_watcher.h

Issue 2496693002: Implement Android key/value backup (Closed)
Patch Set: Created 4 years, 1 month 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 2016 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_ANDROID_CHROME_BACKUP_WATCHER_H_
6 #define CHROME_BROWSER_ANDROID_CHROME_BACKUP_WATCHER_H_
7
8 #include <jni.h>
9
10 #include <memory>
11
12 #include "base/android/scoped_java_ref.h"
13 #include "base/macros.h"
14 #include "components/prefs/pref_change_registrar.h"
15
16 class Profile;
17
18 namespace chrome {
19 namespace android {
20
21 // Watch the preferences that we backup using Android Backup, so that we can
Bernhard Bauer 2016/11/14 10:05:39 Nit: the verb is "back up", only the noun is "back
aberent 2016/11/14 17:23:40 Done.
Bernhard Bauer 2016/11/14 18:02:03 Thanks. The correct use of the three forms "back u
22 // create a new backup whenever any of them change.
23 class ChromeBackupWatcher {
24 public:
25 explicit ChromeBackupWatcher(Profile* profile);
Bernhard Bauer 2016/11/14 10:05:39 Add an empty destructor?
aberent 2016/11/14 17:23:40 Done.
26
27 private:
28 std::unique_ptr<PrefChangeRegistrar> registrar_;
Bernhard Bauer 2016/11/14 10:05:39 Make this a direct member?
aberent 2016/11/14 17:23:40 Done.
29 base::android::ScopedJavaGlobalRef<jobject> java_watcher_;
30 DISALLOW_COPY_AND_ASSIGN(ChromeBackupWatcher);
31 };
32
33 } // namespace android
34 } // namespace chrome
35 #endif // CHROME_BROWSER_ANDROID_CHROME_BACKUP_WATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698