summaryrefslogtreecommitdiffstats
path: root/content/child/mojo/mojo_application.h
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 16:50:29 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 16:50:29 +0000
commit66bf7e2b99672c530495517abb88f5256af9d338 (patch)
treeee76efb8c0b492154ed3df2890ebea93eaa00fa0 /content/child/mojo/mojo_application.h
parent89ad19365a5fb3899e2749ca646099d76f7446ad (diff)
downloadchromium_src-66bf7e2b99672c530495517abb88f5256af9d338.zip
chromium_src-66bf7e2b99672c530495517abb88f5256af9d338.tar.gz
chromium_src-66bf7e2b99672c530495517abb88f5256af9d338.tar.bz2
Shell / ShellClient -> ServiceProvider
Try #2 of https://codereview.chromium.org/298653010/ Fixed newly introduced GN dependency. TBR=darin@chromium.org BUG= Review URL: https://codereview.chromium.org/298003008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/child/mojo/mojo_application.h')
-rw-r--r--content/child/mojo/mojo_application.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/content/child/mojo/mojo_application.h b/content/child/mojo/mojo_application.h
index 88646b6..ef05f75 100644
--- a/content/child/mojo/mojo_application.h
+++ b/content/child/mojo/mojo_application.h
@@ -7,7 +7,7 @@
#include "ipc/ipc_platform_file.h"
#include "mojo/common/channel_init.h"
-#include "mojo/public/interfaces/shell/shell.mojom.h"
+#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
namespace IPC {
class Message;
@@ -24,19 +24,21 @@ class MojoApplication {
public:
// The ShellClient pointer must remain valid for the lifetime of the
// MojoApplication instance.
- explicit MojoApplication(mojo::ShellClient* shell_client);
+ explicit MojoApplication(mojo::ServiceProvider* service_provider);
~MojoApplication();
bool OnMessageReceived(const IPC::Message& msg);
- mojo::Shell* shell() { return shell_.get(); }
+ mojo::ServiceProvider* host_service_provider() {
+ return host_service_provider_.get();
+ }
private:
void OnActivate(const IPC::PlatformFileForTransit& file);
mojo::common::ChannelInit channel_init_;
- mojo::ShellPtr shell_;
- mojo::ShellClient* shell_client_;
+ mojo::ServiceProviderPtr host_service_provider_;
+ mojo::ServiceProvider* service_provider_;
DISALLOW_COPY_AND_ASSIGN(MojoApplication);
};