| 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> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "content/browser/mojo/mojo_shell_context.h" | 10 #include "content/browser/mojo/mojo_shell_context.h" |
| 9 #include "mojo/shell/capability_filter.h" | 11 #include "mojo/shell/capability_filter.h" |
| 10 | 12 |
| 11 namespace content { | 13 namespace content { |
| 12 | 14 |
| 13 const char kBrowserMojoAppUrl[] = "system:content_browser"; | 15 const char kBrowserMojoAppUrl[] = "system:content_browser"; |
| 14 | 16 |
| 15 namespace { | 17 namespace { |
| 16 void OnGotContentHandlerID(uint32_t content_handler_id) {} | 18 void OnGotContentHandlerID(uint32_t content_handler_id) {} |
| (...skipping 18 matching lines...) Expand all Loading... |
| 35 MojoAppConnectionImpl::~MojoAppConnectionImpl() { | 37 MojoAppConnectionImpl::~MojoAppConnectionImpl() { |
| 36 } | 38 } |
| 37 | 39 |
| 38 void MojoAppConnectionImpl::ConnectToService( | 40 void MojoAppConnectionImpl::ConnectToService( |
| 39 const std::string& service_name, | 41 const std::string& service_name, |
| 40 mojo::ScopedMessagePipeHandle handle) { | 42 mojo::ScopedMessagePipeHandle handle) { |
| 41 services_->ConnectToService(service_name, handle.Pass()); | 43 services_->ConnectToService(service_name, handle.Pass()); |
| 42 } | 44 } |
| 43 | 45 |
| 44 } // namespace content | 46 } // namespace content |
| OLD | NEW |