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

Unified Diff: content/public/common/mojo_application_info.h

Issue 1947313002: Enable content embedders to specify mojo application task runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restores mojo:media in browser 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
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/common/mojo_application_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/mojo_application_info.h
diff --git a/content/public/common/mojo_application_info.h b/content/public/common/mojo_application_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..72513bdfd8362aeaf6e1ac6121b974a1ab8eacc8
--- /dev/null
+++ b/content/public/common/mojo_application_info.h
@@ -0,0 +1,35 @@
+// Copyright 2015 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 CONTENT_PUBLIC_COMMON_MOJO_APPLICATION_INFO_H_
+#define CONTENT_PUBLIC_COMMON_MOJO_APPLICATION_INFO_H_
+
+#include <memory>
+
+#include "base/callback_forward.h"
+#include "base/memory/ref_counted.h"
+#include "content/common/content_export.h"
+#include "services/shell/public/cpp/shell_client.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+} // namespace base
+
+namespace content {
+
+struct CONTENT_EXPORT MojoApplicationInfo {
+ using ApplicationFactory = base::Callback<std::unique_ptr<shell::ShellClient>(
+ const base::Closure& quit_closure)>;
+
+ MojoApplicationInfo();
+ MojoApplicationInfo(const MojoApplicationInfo& other);
+ ~MojoApplicationInfo();
+
+ ApplicationFactory application_factory;
+ scoped_refptr<base::SingleThreadTaskRunner> application_task_runner;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_MOJO_APPLICATION_INFO_H_
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/common/mojo_application_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698