Chromium Code Reviews| Index: chrome/browser/android/webapk/webapk_update_manager.h |
| diff --git a/chrome/browser/android/webapk/webapk_update_manager.h b/chrome/browser/android/webapk/webapk_update_manager.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2dfda23e110e502d8107eb4073b82c567d52cf89 |
| --- /dev/null |
| +++ b/chrome/browser/android/webapk/webapk_update_manager.h |
| @@ -0,0 +1,30 @@ |
| +// 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_WEBAPK_WEBAPK_UPDATE_MANAGER_H_ |
| +#define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_ |
| + |
| +#include "base/android/jni_android.h" |
| +#include "base/macros.h" |
| + |
| +// WebApkUpdateManager is the C++ counterpart of org.chromium.chrome.browser's |
| +// WebApkUpdateManager in Java. It calls WebApkInstaller to send update request |
| +// to WebAPK Minting Server. |
| +class WebApkUpdateManager { |
| + public: |
| + // Registers JNI hooks. |
| + static bool Register(JNIEnv* env); |
| + |
| + // Called after either a request to update the WebAPK has been sent, or the |
| + // creation process of the new WebAPK fails. |
| + // |success| indicates whether the request was issued to the server. A "true" |
| + // value of |success| does not guarantee that the WebAPK will be successfully |
| + // installed. |
| + static void OnBuiltWebApk(const std::string& webapk_package, bool sucess); |
|
pkotwicz
2016/08/08 18:59:16
Nit: sucess -> success
Xi Han
2016/08/08 21:25:06
Done.
|
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(WebApkUpdateManager); |
|
pkotwicz
2016/08/08 18:59:16
We use DISALLOW_IMPLICIT_CONSTRUCTORS() for static
Xi Han
2016/08/08 21:25:06
Done.
|
| +}; |
| + |
| +#endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_ |