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

Unified Diff: content/utility/utility_thread_impl.h

Issue 1149833007: Embed a mojo ApplicationManager in content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: content/utility/utility_thread_impl.h
diff --git a/content/utility/utility_thread_impl.h b/content/utility/utility_thread_impl.h
index 3b1d66d65d4407269c4de80f3a6b0559e74199a9..74908cac51eaeaa9b01e7fe3929f2149d6b1fc68 100644
--- a/content/utility/utility_thread_impl.h
+++ b/content/utility/utility_thread_impl.h
@@ -10,9 +10,12 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "content/child/child_thread_impl.h"
#include "content/common/content_export.h"
+#include "content/common/process_control.mojom.h"
#include "content/public/utility/utility_thread.h"
+#include "mojo/common/weak_binding_set.h"
namespace base {
class FilePath;
@@ -21,6 +24,7 @@ class FilePath;
namespace content {
class BlinkPlatformImpl;
class UtilityBlinkPlatformImpl;
+class UtilityProcessControlImpl;
#if defined(COMPILER_MSVC)
// See explanation for other RenderViewHostImpl which is the same issue.
@@ -54,11 +58,20 @@ class UtilityThreadImpl : public UtilityThread,
void OnLoadPlugins(const std::vector<base::FilePath>& plugin_paths);
#endif
+ void BindProcessControlRequest(
+ mojo::InterfaceRequest<content::ProcessControl> request);
+
// True when we're running in batch mode.
bool batch_mode_;
scoped_ptr<UtilityBlinkPlatformImpl> blink_platform_impl_;
+ // Process control for Mojo application hosting.
+ scoped_ptr<UtilityProcessControlImpl> process_control_;
+
+ // Bindings to the ProcessControl impl.
+ mojo::WeakBindingSet<ProcessControl> process_control_bindings_;
+
DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl);
};

Powered by Google App Engine
This is Rietveld 408576698