Chromium Code Reviews| 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..d5c65088c3680e23ca0a45675e7629fbc707aa16 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/service_cache/public/interfaces/service_cache.mojom.h" |
| #include "url/gurl.h" |
| namespace mojo { |
| @@ -24,6 +25,7 @@ class NetworkFetcher : public Fetcher { |
| NetworkFetcher(bool disable_cache, |
| const GURL& url, |
| mojo::NetworkService* network_service, |
| + mojo::service_cache::ServiceCache* service_cache, |
| const FetchCallback& loader_callback); |
| ~NetworkFetcher() override; |
| @@ -50,8 +52,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 CacheFileRetrieved( |
|
blundell
2015/05/07 11:29:22
nit: I would call this |OnFileRetrievedFromCache|
qsr
2015/05/07 12:49:02
Done.
|
| + 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 +74,7 @@ class NetworkFetcher : public Fetcher { |
| bool disable_cache_; |
| const GURL url_; |
| + mojo::service_cache::ServiceCache* service_cache_; |
| mojo::URLLoaderPtr url_loader_; |
| mojo::URLResponsePtr response_; |
| base::FilePath path_; |