| OLD | NEW |
| (Empty) |
| 1 // Copyright 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 "base/memory/scoped_ptr.h" | |
| 10 #include "base/single_thread_task_runner.h" | |
| 11 #include "mojo/loader/job.h" | |
| 12 #include "url/gurl.h" | |
| 13 | |
| 14 namespace mojo { | |
| 15 namespace loader { | |
| 16 | |
| 17 class Loader { | |
| 18 public: | |
| 19 Loader(base::SingleThreadTaskRunner* network_runner, | |
| 20 base::SingleThreadTaskRunner* file_runner, | |
| 21 base::FilePath base_path); | |
| 22 ~Loader(); | |
| 23 | |
| 24 scoped_ptr<Job> Load(const GURL& app_url, Job::Delegate* delegate); | |
| 25 | |
| 26 private: | |
| 27 class Data; | |
| 28 | |
| 29 scoped_ptr<Data> data_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(Loader); | |
| 32 }; | |
| 33 | |
| 34 } // namespace loader | |
| 35 } // namespace mojo | |
| 36 | |
| 37 #endif // MOJO_LOADER_LOADER_H_ | |
| OLD | NEW |