Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Unified Diff: mojo/loader/loader.h

Issue 27943002: Teach mojo_shell how to load http URLs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix lifetime Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/loader/loader.h
diff --git a/mojo/loader/loader.h b/mojo/loader/loader.h
new file mode 100644
index 0000000000000000000000000000000000000000..3f7b9cb207ecaaadd42205aba13ce2ab9943842b
--- /dev/null
+++ b/mojo/loader/loader.h
@@ -0,0 +1,36 @@
+// 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 "base/memory/scoped_ptr.h"
+#include "base/single_thread_task_runner.h"
+#include "mojo/loader/job.h"
+#include "url/gurl.h"
+
+namespace mojo {
+namespace loader {
+
+class Loader {
+ public:
+ Loader(base::SingleThreadTaskRunner* network_runner,
+ base::FilePath base_path);
+ ~Loader();
+
+ scoped_ptr<Job> Load(const GURL& app_url, Job::Delegate* delegate);
+
+ private:
+ class Data;
+
+ scoped_ptr<Data> data_;
+
+ DISALLOW_COPY_AND_ASSIGN(Loader);
+};
+
+} // namespace loader
+} // namespace mojo
+
+#endif // MOJO_LOADER_LOADER_H_

Powered by Google App Engine
This is Rietveld 408576698