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

Side by Side Diff: chrome/browser/android/webapk/webapk_update_manager.h

Issue 2933783002: [Android WebAPK] Change WebAPK update into two phases (Closed)
Patch Set: Merge branch 'master' into background_updates0 Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_
6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_ 6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
11 enum class WebApkInstallResult; 11 enum class WebApkInstallResult;
12 12
13 // WebApkUpdateManager is the C++ counterpart of org.chromium.chrome.browser's 13 // WebApkUpdateManager is the C++ counterpart of org.chromium.chrome.browser's
14 // WebApkUpdateManager in Java. It calls WebApkInstaller to send an update 14 // WebApkUpdateManager in Java. It calls WebApkInstaller to send an update
15 // request to WebAPK Server. 15 // request to WebAPK Server.
16 class WebApkUpdateManager { 16 class WebApkUpdateManager {
17 public: 17 public:
18 // Registers JNI hooks. 18 // Registers JNI hooks.
19 static bool Register(JNIEnv* env); 19 static bool Register(JNIEnv* env);
20 20
21 // Called after either a request to update the WebAPK has been sent, or the
22 // update process fails. |success| indicates whether the request was issued
23 // to the server. A "true" value of |success| does not guarantee that the
24 // WebAPK will be successfully updated.
25 static void OnBuiltWebApk(const std::string& id,
26 WebApkInstallResult result,
27 bool relax_updates,
28 const std::string& webapk_package);
29
30 private: 21 private:
31 DISALLOW_IMPLICIT_CONSTRUCTORS(WebApkUpdateManager); 22 DISALLOW_IMPLICIT_CONSTRUCTORS(WebApkUpdateManager);
32 }; 23 };
33 24
34 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_ 25 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_UPDATE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/webapk/webapk_installer_unittest.cc ('k') | chrome/browser/android/webapk/webapk_update_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698