OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MOJO_LOADER_LOADER_H_ |
| 6 #define MOJO_LOADER_LOADER_H_ |
| 7 |
| 8 #include "base/files/file_path.h" |
| 9 #include "url/gurl.h" |
| 10 |
| 11 namespace mojo { |
| 12 namespace loader { |
| 13 |
| 14 class Loader { |
| 15 public: |
| 16 class Delegate { |
| 17 public: |
| 18 virtual void DidCompleteLoad(const GURL& app_url) = 0; |
| 19 |
| 20 protected: |
| 21 virtual ~Delegate(); |
| 22 }; |
| 23 |
| 24 Loader(base::SingleThreadTaskRunner* network_runner, |
| 25 base::FilePath base_path); |
| 26 ~Loader(); |
| 27 |
| 28 void Load(const GURL& app_url, Delegate* delegate); |
| 29 |
| 30 private: |
| 31 class Data; |
| 32 |
| 33 scoped_ptr<Data> data_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(Loader); |
| 36 }; |
| 37 |
| 38 } // namespace loader |
| 39 } // namespace mojo |
| 40 |
| 41 #endif // MOJO_LOADER_LOADER_H_ |
OLD | NEW |