| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ | 5 #ifndef SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ |
| 6 #define MOJO_SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ | 6 #define SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "mojo/shell/domain_socket/completion_callback.h" | 13 #include "shell/domain_socket/completion_callback.h" |
| 14 #include "mojo/shell/domain_socket/socket_descriptor.h" | 14 #include "shell/domain_socket/socket_descriptor.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 namespace shell { | 17 namespace shell { |
| 18 | 18 |
| 19 class SocketLibevent; | 19 class SocketLibevent; |
| 20 struct SockaddrStorage; | 20 struct SockaddrStorage; |
| 21 | 21 |
| 22 // A client socket that uses unix domain socket as the transport layer. | 22 // A client socket that uses unix domain socket as the transport layer. |
| 23 class UnixDomainClientSocket { | 23 class UnixDomainClientSocket { |
| 24 public: | 24 public: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 52 const std::string socket_path_; | 52 const std::string socket_path_; |
| 53 const bool use_abstract_namespace_; | 53 const bool use_abstract_namespace_; |
| 54 scoped_ptr<SocketLibevent> socket_; | 54 scoped_ptr<SocketLibevent> socket_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(UnixDomainClientSocket); | 56 DISALLOW_COPY_AND_ASSIGN(UnixDomainClientSocket); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace shell | 59 } // namespace shell |
| 60 } // namespace mojo | 60 } // namespace mojo |
| 61 | 61 |
| 62 #endif // MOJO_SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ | 62 #endif // SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ |
| OLD | NEW |