Chromium Code Reviews| 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_ |