Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(915)

Unified Diff: content/browser/mojo/mojo_application_host.h

Issue 298653010: Change Shell / ShellClient to ServiceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Support content Mojo stuff Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/mojo/mojo_application_host.h
diff --git a/content/browser/mojo/mojo_application_host.h b/content/browser/mojo/mojo_application_host.h
index d9c61a5c3671e9dbac7d6877df5d27f7573f1338..84d350d3fe813365695f791368d5579936a1b186 100644
--- a/content/browser/mojo/mojo_application_host.h
+++ b/content/browser/mojo/mojo_application_host.h
@@ -8,7 +8,7 @@
#include "base/process/process_handle.h"
#include "mojo/common/channel_init.h"
#include "mojo/embedder/scoped_platform_handle.h"
-#include "mojo/public/interfaces/shell/shell.mojom.h"
+#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
namespace IPC {
class Sender;
@@ -34,27 +34,29 @@ class MojoApplicationHost {
bool did_activate() const { return did_activate_; }
- mojo::ShellClient* shell_client() {
- DCHECK(shell_.get());
- return shell_->client();
+ mojo::ServiceProvider* service_provider() {
+ DCHECK(child_service_provider_.get());
+ return child_service_provider_->client();
}
private:
- class ShellImpl : public mojo::InterfaceImpl<mojo::Shell> {
+ class ServiceProviderImpl
+ : public mojo::InterfaceImpl<mojo::ServiceProvider> {
public:
virtual void OnConnectionError() OVERRIDE {
// TODO(darin): How should we handle this error?
}
- // mojo::Shell methods:
- virtual void Connect(const mojo::String& url,
- mojo::ScopedMessagePipeHandle handle) OVERRIDE;
+ // mojo::ServiceProvider methods:
+ virtual void ConnectToService(
+ const mojo::String& url,
+ mojo::ScopedMessagePipeHandle handle) OVERRIDE;
};
mojo::common::ChannelInit channel_init_;
mojo::embedder::ScopedPlatformHandle client_handle_;
- scoped_ptr<ShellImpl> shell_;
+ scoped_ptr<ServiceProviderImpl> child_service_provider_;
bool did_activate_;

Powered by Google App Engine
This is Rietveld 408576698