| 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 #include "content/browser/mojo/mojo_app_connection_impl.h" | 5 #include "content/browser/mojo/mojo_app_connection_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 const GURL& url, | 24 const GURL& url, |
| 25 const GURL& requestor_url) { | 25 const GURL& requestor_url) { |
| 26 return scoped_ptr<MojoAppConnection>( | 26 return scoped_ptr<MojoAppConnection>( |
| 27 new MojoAppConnectionImpl(url, requestor_url)); | 27 new MojoAppConnectionImpl(url, requestor_url)); |
| 28 } | 28 } |
| 29 | 29 |
| 30 MojoAppConnectionImpl::MojoAppConnectionImpl(const GURL& url, | 30 MojoAppConnectionImpl::MojoAppConnectionImpl(const GURL& url, |
| 31 const GURL& requestor_url) { | 31 const GURL& requestor_url) { |
| 32 MojoShellContext::ConnectToApplication( | 32 MojoShellContext::ConnectToApplication( |
| 33 url, requestor_url, mojo::GetProxy(&interfaces_), | 33 url, requestor_url, mojo::GetProxy(&interfaces_), |
| 34 mojo::InterfaceProviderPtr(), | 34 mojo::shell::mojom::InterfaceProviderPtr(), |
| 35 mojo::shell::GetPermissiveCapabilityFilter(), | 35 mojo::shell::GetPermissiveCapabilityFilter(), |
| 36 base::Bind(&OnGotRemoteIDs)); | 36 base::Bind(&OnGotRemoteIDs)); |
| 37 } | 37 } |
| 38 | 38 |
| 39 MojoAppConnectionImpl::~MojoAppConnectionImpl() { | 39 MojoAppConnectionImpl::~MojoAppConnectionImpl() { |
| 40 } | 40 } |
| 41 | 41 |
| 42 void MojoAppConnectionImpl::GetInterface( | 42 void MojoAppConnectionImpl::GetInterface( |
| 43 const std::string& interface_name, | 43 const std::string& interface_name, |
| 44 mojo::ScopedMessagePipeHandle handle) { | 44 mojo::ScopedMessagePipeHandle handle) { |
| 45 interfaces_->GetInterface(interface_name, std::move(handle)); | 45 interfaces_->GetInterface(interface_name, std::move(handle)); |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace content | 48 } // namespace content |
| OLD | NEW |