| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_ | 5 #ifndef CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_ |
| 6 #define CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_ | 6 #define CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "mojo/shell/public/interfaces/connector.mojom.h" | 16 #include "mojo/shell/public/interfaces/connector.mojom.h" |
| 17 #include "mojo/shell/shell.h" | 17 #include "mojo/shell/shell.h" |
| 18 | 18 |
| 19 namespace catalog { | 19 namespace catalog { |
| 20 class Owner; | 20 class Factory; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace mojo { | 23 namespace mojo { |
| 24 class ShellClient; | 24 class ShellClient; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 | 28 |
| 29 // MojoShellContext hosts the browser's ApplicationManager, coordinating | 29 // MojoShellContext hosts the browser's ApplicationManager, coordinating |
| 30 // app registration and interconnection. | 30 // app registration and interconnection. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 55 | 55 |
| 56 void ConnectToApplicationOnOwnThread( | 56 void ConnectToApplicationOnOwnThread( |
| 57 const std::string& name, | 57 const std::string& name, |
| 58 const std::string& requestor_name, | 58 const std::string& requestor_name, |
| 59 mojo::shell::mojom::InterfaceProviderRequest request, | 59 mojo::shell::mojom::InterfaceProviderRequest request, |
| 60 mojo::shell::mojom::InterfaceProviderPtr exposed_services, | 60 mojo::shell::mojom::InterfaceProviderPtr exposed_services, |
| 61 const mojo::shell::mojom::Connector::ConnectCallback& callback); | 61 const mojo::shell::mojom::Connector::ConnectCallback& callback); |
| 62 | 62 |
| 63 static base::LazyInstance<scoped_ptr<Proxy>> proxy_; | 63 static base::LazyInstance<scoped_ptr<Proxy>> proxy_; |
| 64 | 64 |
| 65 scoped_ptr<catalog::Owner> catalog_; | 65 scoped_ptr<catalog::Factory> catalog_; |
| 66 scoped_ptr<mojo::shell::Shell> shell_; | 66 scoped_ptr<mojo::shell::Shell> shell_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(MojoShellContext); | 68 DISALLOW_COPY_AND_ASSIGN(MojoShellContext); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace content | 71 } // namespace content |
| 72 | 72 |
| 73 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_ | 73 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_ |
| OLD | NEW |