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

Unified Diff: mojo/loader/job.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
« no previous file with comments | « mojo/loader/DEPS ('k') | mojo/loader/job.cc » ('j') | mojo/loader/loader.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/loader/job.h
diff --git a/mojo/loader/job.h b/mojo/loader/job.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee36389fb512b7c20726bdc43ac53184a1c8279d
--- /dev/null
+++ b/mojo/loader/job.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_JOB_H_
+#define MOJO_LOADER_JOB_H_
+
+#include "url/gurl.h"
+
+namespace mojo {
+namespace loader {
+
+class Job {
Aaron Boodman 2013/10/18 17:59:42 I think a class-header comment is warranted here e
+ public:
+ class Delegate {
+ public:
+ virtual void DidCompleteLoad(const GURL& app_url) = 0;
+
+ protected:
+ virtual ~Delegate();
+ };
+
+ // You can cancel a job by deleting it.
+ virtual ~Job();
+
+ protected:
+ // You can create a job using Loader.
+ Job();
+
+ DISALLOW_COPY_AND_ASSIGN(Job);
+};
+
+} // namespace loader
+} // namespace mojo
+
+#endif // MOJO_LOADER_JOB_H_
« no previous file with comments | « mojo/loader/DEPS ('k') | mojo/loader/job.cc » ('j') | mojo/loader/loader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698