| 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 #ifndef CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ | 5 #ifndef CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ |
| 6 #define CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ | 6 #define CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "content/public/common/mojo_shell_connection.h" | 12 #include "content/public/common/mojo_shell_connection.h" |
| 13 #include "mojo/public/cpp/system/message_pipe.h" | 13 #include "mojo/public/cpp/system/message_pipe.h" |
| 14 #include "mojo/shell/public/cpp/shell.h" | 14 #include "services/shell/public/cpp/shell.h" |
| 15 #include "mojo/shell/public/cpp/shell_client.h" | 15 #include "services/shell/public/cpp/shell_client.h" |
| 16 #include "mojo/shell/public/cpp/shell_connection.h" | 16 #include "services/shell/public/cpp/shell_connection.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 // Returns true for processes launched from an external mojo shell. | 20 // Returns true for processes launched from an external mojo shell. |
| 21 bool IsRunningInMojoShell(); | 21 bool IsRunningInMojoShell(); |
| 22 | 22 |
| 23 class MojoShellConnectionImpl : public MojoShellConnection, | 23 class MojoShellConnectionImpl : public MojoShellConnection, |
| 24 public mojo::ShellClient { | 24 public mojo::ShellClient { |
| 25 public: | 25 public: |
| 26 // Creates the MojoShellConnection using MojoShellConnection::Factory. Returns | 26 // Creates the MojoShellConnection using MojoShellConnection::Factory. Returns |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const bool external_; | 64 const bool external_; |
| 65 std::unique_ptr<mojo::ShellConnection> shell_connection_; | 65 std::unique_ptr<mojo::ShellConnection> shell_connection_; |
| 66 std::vector<Listener*> listeners_; | 66 std::vector<Listener*> listeners_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(MojoShellConnectionImpl); | 68 DISALLOW_COPY_AND_ASSIGN(MojoShellConnectionImpl); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace content | 71 } // namespace content |
| 72 | 72 |
| 73 #endif // CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ | 73 #endif // CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ |
| OLD | NEW |