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

Unified Diff: mojo/application/run_application_options_chromium.h

Issue 2015643002: Add (optional) options to Run[Main]Application(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 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: mojo/application/run_application_options_chromium.h
diff --git a/mojo/application/run_application_options_chromium.h b/mojo/application/run_application_options_chromium.h
new file mode 100644
index 0000000000000000000000000000000000000000..54a5578a9090d1b749df3189a4c0066bb0ee0b05
--- /dev/null
+++ b/mojo/application/run_application_options_chromium.h
@@ -0,0 +1,27 @@
+// Copyright 2016 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_APPLICATION_RUN_APPLICATION_OPTIONS_CHROMIUM_H_
+#define MOJO_APPLICATION_RUN_APPLICATION_OPTIONS_CHROMIUM_H_
+
+#include "base/message_loop/message_loop.h"
+#include "mojo/public/cpp/application/run_application.h"
+
+namespace mojo {
+
+// Options for the "chromium" implementation of |RunMainApplication()| and
+// |RunApplication()|.
+class RunApplicationOptionsChromium : public RunApplicationOptions {
+ public:
+ explicit RunApplicationOptionsChromium(
+ base::MessageLoop::Type message_loop_type)
+ : message_loop_type(message_loop_type) {}
+ ~RunApplicationOptionsChromium() {}
+
+ base::MessageLoop::Type message_loop_type;
+};
+
+} // namespace mojo
+
+#endif // MOJO_APPLICATION_RUN_APPLICATION_OPTIONS_CHROMIUM_H_

Powered by Google App Engine
This is Rietveld 408576698