| Index: chrome/browser/android/webapk/webapk_installer.h
|
| diff --git a/chrome/browser/android/webapk/webapk_installer.h b/chrome/browser/android/webapk/webapk_installer.h
|
| index 0aac26e96a522b7b08c106179e9d5f8f8a42e361..6d386ba204950c7658f86c9dcba370dbfd26a821 100644
|
| --- a/chrome/browser/android/webapk/webapk_installer.h
|
| +++ b/chrome/browser/android/webapk/webapk_installer.h
|
| @@ -79,7 +79,8 @@ class WebApkInstaller : public net::URLFetcherDelegate {
|
|
|
| // Sends request to WebAPK server to create WebAPK. During a successful
|
| // request the WebAPK server responds with the URL of the generated WebAPK.
|
| - void SendCreateWebApkRequest();
|
| + // |webapk| is the proto to send to the WebAPK server.
|
| + void SendCreateWebApkRequest(std::unique_ptr<webapk::WebApk> webapk_proto);
|
|
|
| // Called with the URL of generated WebAPK and the package name that the
|
| // WebAPK should be installed at.
|
| @@ -95,7 +96,8 @@ class WebApkInstaller : public net::URLFetcherDelegate {
|
| FileDownloader::Result result);
|
|
|
| // Populates webapk::WebApk and returns it.
|
| - std::unique_ptr<webapk::WebApk> BuildWebApkProto();
|
| + // Must be called on a worker thread.
|
| + std::unique_ptr<webapk::WebApk> BuildWebApkProtoInBackground();
|
|
|
| // Called when the request to the WebAPK server times out or when the WebAPK
|
| // download times out.
|
| @@ -141,8 +143,8 @@ class WebApkInstaller : public net::URLFetcherDelegate {
|
| // The number of milliseconds to wait for the WebAPK download to complete.
|
| int download_timeout_ms_;
|
|
|
| - // Used to get |weak_ptr_| on the IO thread.
|
| - base::WeakPtrFactory<WebApkInstaller> io_weak_ptr_factory_;
|
| + // Used to get |weak_ptr_|.
|
| + base::WeakPtrFactory<WebApkInstaller> weak_ptr_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(WebApkInstaller);
|
| };
|
|
|