| Index: shell/application_manager/network_fetcher.h
|
| diff --git a/shell/application_manager/network_fetcher.h b/shell/application_manager/network_fetcher.h
|
| index f8632ad9f649b235f472d36bff9baeb6dfffa66a..703d17cf7cd4e925de794515b9df7b983cec3a33 100644
|
| --- a/shell/application_manager/network_fetcher.h
|
| +++ b/shell/application_manager/network_fetcher.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/files/file_path.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
|
| +#include "mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom.h"
|
| #include "url/gurl.h"
|
|
|
| namespace mojo {
|
| @@ -24,6 +25,8 @@ class NetworkFetcher : public Fetcher {
|
| NetworkFetcher(bool disable_cache,
|
| const GURL& url,
|
| mojo::NetworkService* network_service,
|
| + mojo::url_response_disk_cache::URLResponseDiskCache*
|
| + url_response_disk_cache,
|
| const FetchCallback& loader_callback);
|
|
|
| ~NetworkFetcher() override;
|
| @@ -50,8 +53,10 @@ class NetworkFetcher : public Fetcher {
|
| const base::FilePath& old_path,
|
| base::FilePath* new_path);
|
|
|
| - void CopyCompleted(base::Callback<void(const base::FilePath&, bool)> callback,
|
| - bool success);
|
| + void OnFileRetrievedFromCache(
|
| + base::Callback<void(const base::FilePath&, bool)> callback,
|
| + mojo::Array<uint8_t> path_as_array,
|
| + mojo::Array<uint8_t> cache_dir);
|
|
|
| void AsPath(
|
| base::TaskRunner* task_runner,
|
| @@ -70,6 +75,7 @@ class NetworkFetcher : public Fetcher {
|
|
|
| bool disable_cache_;
|
| const GURL url_;
|
| + mojo::url_response_disk_cache::URLResponseDiskCache* url_response_disk_cache_;
|
| mojo::URLLoaderPtr url_loader_;
|
| mojo::URLResponsePtr response_;
|
| base::FilePath path_;
|
|
|