diff options
author | ben <ben@chromium.org> | 2016-02-11 12:19:27 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-11 20:21:25 +0000 |
commit | 80ab890512a739dc43bf4a2c6494c9d766b62106 (patch) | |
tree | 9f4397eb12e5d4145ad60d550901932d69441ed8 /mojo/shell/standalone | |
parent | cc826ad692a21fd8c3eb195109718306a38db904 (diff) | |
download | chromium_src-80ab890512a739dc43bf4a2c6494c9d766b62106.zip chromium_src-80ab890512a739dc43bf4a2c6494c9d766b62106.tar.gz chromium_src-80ab890512a739dc43bf4a2c6494c9d766b62106.tar.bz2 |
Move InterfaceProvider into the shell::mojom namespace like the rest of the shell interfaces.
TBR=rockot@chromium.org
R=palmer@chromium.org
BUG=
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Review URL: https://codereview.chromium.org/1686223002
Cr-Commit-Position: refs/heads/master@{#374968}
Diffstat (limited to 'mojo/shell/standalone')
-rw-r--r-- | mojo/shell/standalone/context.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/mojo/shell/standalone/context.cc b/mojo/shell/standalone/context.cc index b443b97..ecb3fcd 100644 --- a/mojo/shell/standalone/context.cc +++ b/mojo/shell/standalone/context.cc @@ -112,13 +112,14 @@ void InitContentHandlers(PackageManagerImpl* manager, } } -class TracingInterfaceProvider : public InterfaceProvider { +class TracingInterfaceProvider : public shell::mojom::InterfaceProvider { public: TracingInterfaceProvider(Tracer* tracer, - InterfaceRequest<InterfaceProvider> request) + shell::mojom::InterfaceProviderRequest request) : tracer_(tracer), binding_(this, std::move(request)) {} ~TracingInterfaceProvider() override {} + // shell::mojom::InterfaceProvider: void GetInterface(const mojo::String& interface_name, ScopedMessagePipeHandle client_handle) override { if (tracer_ && interface_name == tracing::TraceProvider::Name_) { @@ -129,7 +130,7 @@ class TracingInterfaceProvider : public InterfaceProvider { private: Tracer* tracer_; - StrongBinding<InterfaceProvider> binding_; + StrongBinding<shell::mojom::InterfaceProvider> binding_; DISALLOW_COPY_AND_ASSIGN(TracingInterfaceProvider); }; @@ -192,8 +193,8 @@ void Context::Init(const base::FilePath& shell_file_root) { make_scoped_ptr(package_manager_), std::move(runner_factory), task_runners_->blocking_pool())); - InterfaceProviderPtr tracing_remote_interfaces; - InterfaceProviderPtr tracing_local_interfaces; + shell::mojom::InterfaceProviderPtr tracing_remote_interfaces; + shell::mojom::InterfaceProviderPtr tracing_local_interfaces; new TracingInterfaceProvider(&tracer_, GetProxy(&tracing_local_interfaces)); scoped_ptr<ConnectToApplicationParams> params(new ConnectToApplicationParams); @@ -253,8 +254,8 @@ void Context::OnShutdownComplete() { void Context::Run(const GURL& url) { DCHECK(app_complete_callback_.is_null()); - InterfaceProviderPtr remote_interfaces; - InterfaceProviderPtr local_interfaces; + shell::mojom::InterfaceProviderPtr remote_interfaces; + shell::mojom::InterfaceProviderPtr local_interfaces; app_urls_.insert(url); |