| 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 {
|
| + 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_
|
|
|