Index: mojo/loader/loader.h |
diff --git a/mojo/loader/loader.h b/mojo/loader/loader.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e401c7c72e680422f1751108200a49769446856f |
--- /dev/null |
+++ b/mojo/loader/loader.h |
@@ -0,0 +1,41 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef MOJO_LOADER_LOADER_H_ |
+#define MOJO_LOADER_LOADER_H_ |
+ |
+#include "base/files/file_path.h" |
+#include "url/gurl.h" |
+ |
+namespace mojo { |
+namespace loader { |
+ |
+class Loader { |
+ public: |
+ class Delegate { |
+ public: |
+ virtual void DidCompleteLoad(const GURL& app_url) = 0; |
+ |
+ protected: |
+ virtual ~Delegate(); |
+ }; |
+ |
+ Loader(base::SingleThreadTaskRunner* network_runner, |
+ base::FilePath base_path); |
+ ~Loader(); |
+ |
+ void Load(const GURL& app_url, Delegate* delegate); |
+ |
+ private: |
+ class Data; |
+ |
+ scoped_ptr<Data> data_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(Loader); |
+}; |
+ |
+} // namespace loader |
+} // namespace mojo |
+ |
+#endif // MOJO_LOADER_LOADER_H_ |