| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_TOOLS_PACKAGE_MANAGER_FETCHER_H_ | 5 #ifndef MOJO_TOOLS_PACKAGE_MANAGER_FETCHER_H_ |
| 6 #define MOJO_TOOLS_PACKAGE_MANAGER_FETCHER_H_ | 6 #define MOJO_TOOLS_PACKAGE_MANAGER_FETCHER_H_ |
| 7 | 7 |
| 8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "mojo/common/handle_watcher.h" | 10 #include "mojo/common/handle_watcher.h" |
| 11 #include "mojo/public/cpp/system/macros.h" | 11 #include "mojo/public/cpp/system/macros.h" |
| 12 #include "mojo/services/public/interfaces/network/network_service.mojom.h" | 12 #include "mojo/services/network/public/interfaces/network_service.mojom.h" |
| 13 #include "mojo/services/public/interfaces/network/url_loader.mojom.h" | 13 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class FilePath; | 17 class FilePath; |
| 18 } // namespace base | 18 } // namespace base |
| 19 | 19 |
| 20 namespace mojo { | 20 namespace mojo { |
| 21 | 21 |
| 22 class PackageFetcherDelegate; | 22 class PackageFetcherDelegate; |
| 23 | 23 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 54 class PackageFetcherDelegate { | 54 class PackageFetcherDelegate { |
| 55 public: | 55 public: |
| 56 virtual void FetchSucceeded(const GURL& url, const base::FilePath& name) = 0; | 56 virtual void FetchSucceeded(const GURL& url, const base::FilePath& name) = 0; |
| 57 | 57 |
| 58 virtual void FetchFailed(const GURL& url) = 0; | 58 virtual void FetchFailed(const GURL& url) = 0; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace mojo | 61 } // namespace mojo |
| 62 | 62 |
| 63 #endif // MOJO_TOOLS_PACKAGE_MANAGER_FETCHER_H_ | 63 #endif // MOJO_TOOLS_PACKAGE_MANAGER_FETCHER_H_ |
| OLD | NEW |