| 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_FRAME_HOST_FRAME_MOJO_SHELL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "mojo/public/cpp/bindings/binding_set.h" | 10 #include "mojo/public/cpp/bindings/binding_set.h" |
| 11 #include "mojo/public/cpp/bindings/interface_request.h" | 11 #include "mojo/public/cpp/bindings/interface_request.h" |
| 12 #include "mojo/shell/public/interfaces/shell.mojom.h" | 12 #include "mojo/shell/public/interfaces/connector.mojom.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class RenderFrameHost; | 16 class RenderFrameHost; |
| 17 class ServiceRegistryImpl; | 17 class ServiceRegistryImpl; |
| 18 | 18 |
| 19 // This provides the |mojo::shell::mojom::Shell| service interface to each | 19 // This provides the |mojo::shell::mojom::Shell| service interface to each |
| 20 // frame's ServiceRegistry, giving frames the ability to connect to Mojo | 20 // frame's ServiceRegistry, giving frames the ability to connect to Mojo |
| 21 // applications. | 21 // applications. |
| 22 class FrameMojoShell : public mojo::shell::mojom::Connector { | 22 class FrameMojoShell : public mojo::shell::mojom::Connector { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 scoped_ptr<ServiceRegistryImpl> service_registry_; | 45 scoped_ptr<ServiceRegistryImpl> service_registry_; |
| 46 mojo::BindingSet<mojo::shell::mojom::InterfaceProvider> | 46 mojo::BindingSet<mojo::shell::mojom::InterfaceProvider> |
| 47 service_provider_bindings_; | 47 service_provider_bindings_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(FrameMojoShell); | 49 DISALLOW_COPY_AND_ASSIGN(FrameMojoShell); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace content | 52 } // namespace content |
| 53 | 53 |
| 54 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_ | 54 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_ |
| OLD | NEW |