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

Unified Diff: content/public/browser/mojo_shell_context.h

Issue 1149833007: Embed a mojo ApplicationManager in content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some missing docs and removed some cruft 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: content/public/browser/mojo_shell_context.h
diff --git a/content/public/browser/mojo_shell_context.h b/content/public/browser/mojo_shell_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb0922221772a1cb5296bca2a93a2094b9f433d9
--- /dev/null
+++ b/content/public/browser/mojo_shell_context.h
@@ -0,0 +1,34 @@
+// 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_BROWSER_MOJO_SHELL_CONTEXT_H_
+#define CONTENT_PUBLIC_BROWSER_MOJO_SHELL_CONTEXT_H_
+
+#include "base/callback_forward.h"
+#include "base/macros.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+class ApplicationRegistry;
+
+// The global Mojo shell context for content embedders. By default this will
+// load new application instances in a utility process.
+class CONTENT_EXPORT MojoShellContext {
jam 2015/05/27 16:05:36 why is this interface in public? i can't tell what
Ken Rockot(use gerrit already) 2015/05/27 19:36:16 Doh. This is public because the first iteration of
+ public:
+ MojoShellContext() {}
+ virtual ~MojoShellContext() {}
+
+ static scoped_ptr<MojoShellContext> Create();
+
+ static void SetApplicationRegistryInitializerForTesting(
+ const base::Callback<void(ApplicationRegistry*)>& callback);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MojoShellContext);
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_MOJO_SHELL_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698