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

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: Rework to use AsyncTask rather than IO thread 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
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..6f7eac01892bc241791263d27f6188679660b602
--- /dev/null
+++ b/chrome/browser/android/webapps/webapp_registry.h
@@ -0,0 +1,29 @@
+// 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 webapps.
gone 2015/09/09 23:30:40 nit: webapps web app yadda yadda
Lalit Maganti 2015/09/10 09:41:58 Done.
+ static void UnregisterWebapps(const base::Closure& callback);
+
+ private:
+ WebappRegistry() = delete;
Bernhard Bauer 2015/09/10 09:46:24 DISALLOW_IMPLICIT_CONSTRUCTORS will do this (inclu
Lalit Maganti 2015/09/10 10:01:38 Done.
+ ~WebappRegistry() = delete;
+
+ DISALLOW_COPY_AND_ASSIGN(WebappRegistry);
+};
+
+#endif // CHROME_BROWSER_ANDROID_WEBAPPS_WEBAPP_REGISTRY_H_

Powered by Google App Engine
This is Rietveld 408576698