| 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_SERVER_SOCKET_POSIX_H_ | 5 #ifndef SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_SERVER_SOCKET_POSIX_H_ |
| 6 #define MOJO_SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_SERVER_SOCKET_POSIX_H_ | 6 #define SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_SERVER_SOCKET_POSIX_H_ |
| 7 | 7 |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "mojo/shell/domain_socket/completion_callback.h" | 16 #include "shell/domain_socket/completion_callback.h" |
| 17 #include "mojo/shell/domain_socket/socket_descriptor.h" | 17 #include "shell/domain_socket/socket_descriptor.h" |
| 18 | 18 |
| 19 namespace mojo { | 19 namespace mojo { |
| 20 namespace shell { | 20 namespace shell { |
| 21 | 21 |
| 22 class SocketLibevent; | 22 class SocketLibevent; |
| 23 | 23 |
| 24 // Unix Domain Server Socket Implementation. Supports abstract namespaces on | 24 // Unix Domain Server Socket Implementation. Supports abstract namespaces on |
| 25 // Linux and Android. | 25 // Linux and Android. |
| 26 class UnixDomainServerSocket { | 26 class UnixDomainServerSocket { |
| 27 public: | 27 public: |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 const bool use_abstract_namespace_; | 70 const bool use_abstract_namespace_; |
| 71 | 71 |
| 72 scoped_ptr<SocketLibevent> accept_socket_; | 72 scoped_ptr<SocketLibevent> accept_socket_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(UnixDomainServerSocket); | 74 DISALLOW_COPY_AND_ASSIGN(UnixDomainServerSocket); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace shell | 77 } // namespace shell |
| 78 } // namespace mojo | 78 } // namespace mojo |
| 79 | 79 |
| 80 #endif // MOJO_SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_SOCKET_POSIX_H_ | 80 #endif // SHELL_DOMAIN_SOCKET_UNIX_DOMAIN_SERVER_SOCKET_POSIX_H_ |
| OLD | NEW |