OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SHELL_APPLICATION_MANAGER_NETWORK_FETCHER_H_ | 5 #ifndef SHELL_APPLICATION_MANAGER_NETWORK_FETCHER_H_ |
6 #define SHELL_APPLICATION_MANAGER_NETWORK_FETCHER_H_ | 6 #define SHELL_APPLICATION_MANAGER_NETWORK_FETCHER_H_ |
7 | 7 |
8 #include "shell/application_manager/fetcher.h" | 8 #include "shell/application_manager/fetcher.h" |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | 12 #include "mojo/services/network/public/interfaces/network_service.mojom.h" |
13 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 13 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
14 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d
isk_cache.mojom.h" | 14 #include "mojo/services/url_response_disk_cache/interfaces/url_response_disk_cac
he.mojom.h" |
15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
16 | 16 |
17 namespace shell { | 17 namespace shell { |
18 | 18 |
19 // Implements Fetcher for http[s] files. | 19 // Implements Fetcher for http[s] files. |
20 class NetworkFetcher : public Fetcher { | 20 class NetworkFetcher : public Fetcher { |
21 public: | 21 public: |
22 NetworkFetcher(bool disable_cache, | 22 NetworkFetcher(bool disable_cache, |
23 bool force_offline_by_default, | 23 bool force_offline_by_default, |
24 const GURL& url, | 24 const GURL& url, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 mojo::URLResponsePtr response_; | 82 mojo::URLResponsePtr response_; |
83 base::FilePath path_; | 83 base::FilePath path_; |
84 base::WeakPtrFactory<NetworkFetcher> weak_ptr_factory_; | 84 base::WeakPtrFactory<NetworkFetcher> weak_ptr_factory_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(NetworkFetcher); | 86 DISALLOW_COPY_AND_ASSIGN(NetworkFetcher); |
87 }; | 87 }; |
88 | 88 |
89 } // namespace shell | 89 } // namespace shell |
90 | 90 |
91 #endif // SHELL_APPLICATION_MANAGER_NETWORK_FETCHER_H_ | 91 #endif // SHELL_APPLICATION_MANAGER_NETWORK_FETCHER_H_ |
OLD | NEW |