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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/chrome_backup_agent.h
diff --git a/chrome/browser/android/chrome_backup_agent.h b/chrome/browser/android/chrome_backup_agent.h
new file mode 100644
index 0000000000000000000000000000000000000000..790f297a609b6723041ae574e0713d0af8f8a0c4
--- /dev/null
+++ b/chrome/browser/android/chrome_backup_agent.h
@@ -0,0 +1,38 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ANDROID_CHROME_BACKUP_AGENT_H_
+#define CHROME_BROWSER_ANDROID_CHROME_BACKUP_AGENT_H_
+
+#include <jni.h>
+
+#include <string>
+#include <vector>
+
+#include "base/android/jni_android.h"
+
+namespace chrome {
+namespace android {
+
+std::vector<std::string> GetBackupPrefNames();
+
+bool RegisterBackupAgent(JNIEnv* env);
+
+// Test interface wrapping the static functions that are only called from Java.
+base::android::ScopedJavaLocalRef<jobjectArray> GetBoolBackupNamesForTesting(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& jcaller);
+base::android::ScopedJavaLocalRef<jbooleanArray> GetBoolBackupValuesForTesting(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& jcaller);
+void SetBoolBackupPrefsForTesting(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& jcaller,
+ const base::android::JavaParamRef<jobjectArray>& names,
+ const base::android::JavaParamRef<jbooleanArray>& values);
+
+} // namespace android
+} // namespace chrome
+
+#endif // CHROME_BROWSER_ANDROID_CHROME_BACKUP_AGENT_H_
« 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