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

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

Issue 2528073002: Add a flag in WebAPK's proto when the Web App Manifest is no longer available. (Closed)
Patch Set: Fix the compile error. Created 4 years 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_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALLER_H_
6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALLER_H_ 6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALLER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 net::URLRequestContextGetter* request_context_getter, 60 net::URLRequestContextGetter* request_context_getter,
61 const FinishCallback& finish_callback); 61 const FinishCallback& finish_callback);
62 62
63 // Talks to the Chrome WebAPK server to update a WebAPK on the server and to 63 // Talks to the Chrome WebAPK server to update a WebAPK on the server and to
64 // the Google Play server to install the downloaded WebAPK. Calls |callback| 64 // the Google Play server to install the downloaded WebAPK. Calls |callback|
65 // after the request to install the WebAPK is sent to the Google Play server. 65 // after the request to install the WebAPK is sent to the Google Play server.
66 void UpdateAsync(content::BrowserContext* browser_context, 66 void UpdateAsync(content::BrowserContext* browser_context,
67 const FinishCallback& callback, 67 const FinishCallback& callback,
68 const std::string& icon_murmur2_hash, 68 const std::string& icon_murmur2_hash,
69 const std::string& webapk_package, 69 const std::string& webapk_package,
70 int webapk_version); 70 int webapk_version,
71 bool stale_manifest,
72 const std::vector<std::string>& icon_hashs);
71 73
72 // Same as UpdateAsync() but uses the passed in |request_context_getter|. 74 // Same as UpdateAsync() but uses the passed in |request_context_getter|.
73 void UpdateAsyncWithURLRequestContextGetter( 75 void UpdateAsyncWithURLRequestContextGetter(
74 net::URLRequestContextGetter* request_context_getter, 76 net::URLRequestContextGetter* request_context_getter,
75 const FinishCallback& callback, 77 const FinishCallback& callback,
76 const std::string& icon_murmur2_hash, 78 const std::string& icon_murmur2_hash,
77 const std::string& webapk_package, 79 const std::string& webapk_package,
78 int webapk_version); 80 int webapk_version,
81 bool stale_manifest,
82 const std::vector<std::string>& icon_hashs);
79 83
80 // Sets the timeout for the server requests. 84 // Sets the timeout for the server requests.
81 void SetTimeoutMs(int timeout_ms); 85 void SetTimeoutMs(int timeout_ms);
82 86
83 // Called once the installation is complete or failed. 87 // Called once the installation is complete or failed.
84 void OnInstallFinished(JNIEnv* env, 88 void OnInstallFinished(JNIEnv* env,
85 const base::android::JavaParamRef<jobject>& obj, 89 const base::android::JavaParamRef<jobject>& obj,
86 jboolean success); 90 jboolean success);
87 91
88 // Registers JNI hooks. 92 // Registers JNI hooks.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // Points to the Java Object. 240 // Points to the Java Object.
237 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 241 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
238 242
239 // Used to get |weak_ptr_|. 243 // Used to get |weak_ptr_|.
240 base::WeakPtrFactory<WebApkInstaller> weak_ptr_factory_; 244 base::WeakPtrFactory<WebApkInstaller> weak_ptr_factory_;
241 245
242 DISALLOW_COPY_AND_ASSIGN(WebApkInstaller); 246 DISALLOW_COPY_AND_ASSIGN(WebApkInstaller);
243 }; 247 };
244 248
245 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALLER_H_ 249 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698