Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_ | |
| 6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_ | |
| 7 | |
| 8 #include "base/android/jni_android.h" | |
| 9 #include "base/macros.h" | |
| 10 | |
| 11 // WebApkUpdateManager is the C++ counterpart of org.chromium.chrome.browser's | |
| 12 // WebApkUpdateManager in Java. It calls WebApkInstaller to send update request | |
| 13 // to WebAPK Minting Server. | |
|
pkotwicz
2016/08/09 14:35:43
Nits:
- "send update request" -> "send an update r
Xi Han
2016/08/11 19:01:15
Done.
| |
| 14 class WebApkUpdateManager { | |
| 15 public: | |
| 16 // Registers JNI hooks. | |
| 17 static bool Register(JNIEnv* env); | |
| 18 | |
| 19 // Called after either a request to update the WebAPK has been sent, or the | |
| 20 // creation process of the new WebAPK fails. | |
|
pkotwicz
2016/08/09 14:35:43
How about: ", or the creation process of the new W
Xi Han
2016/08/11 19:01:15
Done.
| |
| 21 // |success| indicates whether the request was issued to the server. A "true" | |
| 22 // value of |success| does not guarantee that the WebAPK will be successfully | |
| 23 // installed. | |
|
pkotwicz
2016/08/09 14:35:43
Nit: "installed" -> "updated"
Xi Han
2016/08/11 19:01:15
Done.
| |
| 24 static void OnBuiltWebApk(const std::string& webapk_package, bool success); | |
| 25 | |
| 26 private: | |
| 27 DISALLOW_IMPLICIT_CONSTRUCTORS(WebApkUpdateManager); | |
| 28 }; | |
| 29 | |
| 30 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_ | |
| OLD | NEW |