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

Unified Diff: third_party/mojo/src/mojo/public/cpp/application/application_runner.h

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 7 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: third_party/mojo/src/mojo/public/cpp/application/application_runner.h
diff --git a/third_party/mojo/src/mojo/public/cpp/application/application_runner.h b/third_party/mojo/src/mojo/public/cpp/application/application_runner.h
deleted file mode 100644
index 3d3c868767c7ad1a8e0e0acf4e02226ad99206fc..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/public/cpp/application/application_runner.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2014 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_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_
-#define MOJO_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_
-
-#include "mojo/public/cpp/system/core.h"
-
-namespace mojo {
-
-class ApplicationDelegate;
-
-// A utility for running an Application. The typical use case is to use
-// when writing your MojoMain:
-//
-// MojoResult MojoMain(MojoHandle application_request) {
-// mojo::ApplicationRunner runner(new MyApplicationDelegate());
-// return runner.Run(application_request);
-// }
-//
-// ApplicationRunner takes care of mojo environment initialization and
-// shutdown, and starting a RunLoop from which your application can run and
-// ultimately Quit().
-class ApplicationRunner {
- public:
- // Takes ownership of |delegate|.
- explicit ApplicationRunner(ApplicationDelegate* delegate);
- ~ApplicationRunner();
-
- // Once the various parameters have been set above, use Run to initialize an
- // ApplicationImpl wired to the provided delegate, and run a RunLoop until
- // the application exits.
- MojoResult Run(MojoHandle application_request);
-
- private:
- ApplicationDelegate* delegate_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationRunner);
-};
-
-} // namespace mojo
-
-#endif // MOJO_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_

Powered by Google App Engine
This is Rietveld 408576698