| Index: content/child/mojo/mojo_application.h
|
| diff --git a/content/child/mojo/mojo_application.h b/content/child/mojo/mojo_application.h
|
| index ef05f75fb768e66bc58138570e8506ed8a83c925..7c39c28a6d7ea42feec491b6d5f2eda9b57f3735 100644
|
| --- a/content/child/mojo/mojo_application.h
|
| +++ b/content/child/mojo/mojo_application.h
|
| @@ -5,9 +5,9 @@
|
| #ifndef CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
|
| #define CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
|
|
|
| +#include "content/common/mojo/service_registry_impl.h"
|
| #include "ipc/ipc_platform_file.h"
|
| #include "mojo/common/channel_init.h"
|
| -#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
|
|
|
| namespace IPC {
|
| class Message;
|
| @@ -22,23 +22,19 @@ namespace content {
|
| // mojo::ShellClient interface as calls come in.
|
| class MojoApplication {
|
| public:
|
| - // The ShellClient pointer must remain valid for the lifetime of the
|
| - // MojoApplication instance.
|
| - explicit MojoApplication(mojo::ServiceProvider* service_provider);
|
| - ~MojoApplication();
|
| + MojoApplication();
|
| + virtual ~MojoApplication();
|
|
|
| bool OnMessageReceived(const IPC::Message& msg);
|
|
|
| - mojo::ServiceProvider* host_service_provider() {
|
| - return host_service_provider_.get();
|
| - }
|
| + ServiceRegistry* service_registry() { return &service_registry_; }
|
|
|
| private:
|
| void OnActivate(const IPC::PlatformFileForTransit& file);
|
|
|
| mojo::common::ChannelInit channel_init_;
|
| - mojo::ServiceProviderPtr host_service_provider_;
|
| - mojo::ServiceProvider* service_provider_;
|
| +
|
| + ServiceRegistryImpl service_registry_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(MojoApplication);
|
| };
|
|
|