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

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: Add initial tests and fix compile 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..ad840ca45cda697dd183f9be6a297e20be1028a0
--- /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/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);
+
gone 2015/09/08 20:38:13 DB thread or IO thread? Take your pick and rename
Lalit Maganti 2015/09/09 15:27:46 This has been redone to make use of AsyncTask so n
+ // Cleans up data stored by webapps. Must be called from the DB thread.
+ static void UnregisterWebappsOnIOThread(const base::Closure& callback);
+
+ private:
+ WebappRegistry() = delete;
+ ~WebappRegistry() = delete;
+
+ DISALLOW_COPY_AND_ASSIGN(WebappRegistry);
+};
+
+#endif // CHROME_BROWSER_ANDROID_WEBAPPS_WEBAPP_REGISTRY_H_

Powered by Google App Engine
This is Rietveld 408576698