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 "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::FilePath base_path); |
| 21 ~Loader(); |
| 22 |
| 23 scoped_ptr<Job> Load(const GURL& app_url, Job::Delegate* delegate); |
| 24 |
| 25 private: |
| 26 class Data; |
| 27 |
| 28 scoped_ptr<Data> data_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(Loader); |
| 31 }; |
| 32 |
| 33 } // namespace loader |
| 34 } // namespace mojo |
| 35 |
| 36 #endif // MOJO_LOADER_LOADER_H_ |
OLD | NEW |