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

Unified Diff: chrome/browser/android/webapps/webapp_registry.h

Issue 1329083002: Clear webapp storage when site data is cleared (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix silly test mistake Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/android/webapps/webapp_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/webapps/webapp_registry.h
diff --git a/chrome/browser/android/webapps/webapp_registry.h b/chrome/browser/android/webapps/webapp_registry.h
new file mode 100644
index 0000000000000000000000000000000000000000..c54c2b9db861be2d51d97b5a05dd2a36989d7f70
--- /dev/null
+++ b/chrome/browser/android/webapps/webapp_registry.h
@@ -0,0 +1,28 @@
+// Copyright 2015 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_WEBAPPS_WEBAPP_REGISTRY_H_
+#define CHROME_BROWSER_ANDROID_WEBAPPS_WEBAPP_REGISTRY_H_
+
+#include "base/android/jni_android.h"
+#include "base/android/scoped_java_ref.h"
+#include "base/callback_forward.h"
+
+// WebappRegistry is the C++ counterpart of
+// org.chromium.chrome.browser.webapp's WebappRegistry in Java.
+class WebappRegistry {
+ public:
+ // Registers JNI hooks.
+ static bool RegisterWebappRegistry(JNIEnv* env);
+
+ // Cleans up data stored by web apps.
+ static void UnregisterWebapps(const base::Closure& callback);
+
+ private:
+ ~WebappRegistry() = delete;
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(WebappRegistry);
+};
+
+#endif // CHROME_BROWSER_ANDROID_WEBAPPS_WEBAPP_REGISTRY_H_
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/android/webapps/webapp_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698