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

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

Issue 2511713002: 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/chrome_backup_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AGENT_H_
6 #define CHROME_BROWSER_ANDROID_CHROME_BACKUP_AGENT_H_
7
8 #include <jni.h>
9
10 #include <string>
11 #include <vector>
12
13 #include "base/android/jni_android.h"
14
15 namespace chrome {
16 namespace android {
17
18 std::vector<std::string> GetBackupPrefNames();
19
20 bool RegisterBackupAgent(JNIEnv* env);
21
22 // Test interface wrapping the static functions that are only called from Java.
23 base::android::ScopedJavaLocalRef<jobjectArray> GetBoolBackupNamesForTesting(
24 JNIEnv* env,
25 const base::android::JavaParamRef<jobject>& jcaller);
26 base::android::ScopedJavaLocalRef<jbooleanArray> GetBoolBackupValuesForTesting(
27 JNIEnv* env,
28 const base::android::JavaParamRef<jobject>& jcaller);
29 void SetBoolBackupPrefsForTesting(
30 JNIEnv* env,
31 const base::android::JavaParamRef<jobject>& jcaller,
32 const base::android::JavaParamRef<jobjectArray>& names,
33 const base::android::JavaParamRef<jbooleanArray>& values);
34
35 } // namespace android
36 } // namespace chrome
37
38 #endif // CHROME_BROWSER_ANDROID_CHROME_BACKUP_AGENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/chrome_backup_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698