| 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 EXTENSIONS_BROWSER_API_SOCKETS_TCP_SERVER_SOCKETS_TCP_SERVER_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SOCKETS_TCP_SERVER_SOCKETS_TCP_SERVER_API_H_ |
| 6 #define EXTENSIONS_BROWSER_API_SOCKETS_TCP_SERVER_SOCKETS_TCP_SERVER_API_H_ | 6 #define EXTENSIONS_BROWSER_API_SOCKETS_TCP_SERVER_SOCKETS_TCP_SERVER_API_H_ |
| 7 | 7 |
| 8 #include "extensions/browser/api/socket/socket_api.h" | 8 #include "extensions/browser/api/socket/socket_api.h" |
| 9 #include "extensions/common/api/sockets_tcp_server.h" | 9 #include "extensions/common/api/sockets_tcp_server.h" |
| 10 | 10 |
| 11 namespace extensions { | 11 namespace extensions { |
| 12 class ResumableTCPServerSocket; | 12 class ResumableTCPServerSocket; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 namespace core_api { | 16 namespace api { |
| 17 | 17 |
| 18 class TCPServerSocketAsyncApiFunction : public SocketAsyncApiFunction { | 18 class TCPServerSocketAsyncApiFunction : public SocketAsyncApiFunction { |
| 19 protected: | 19 protected: |
| 20 ~TCPServerSocketAsyncApiFunction() override; | 20 ~TCPServerSocketAsyncApiFunction() override; |
| 21 | 21 |
| 22 scoped_ptr<SocketResourceManagerInterface> CreateSocketResourceManager() | 22 scoped_ptr<SocketResourceManagerInterface> CreateSocketResourceManager() |
| 23 override; | 23 override; |
| 24 | 24 |
| 25 ResumableTCPServerSocket* GetTcpSocket(int socket_id); | 25 ResumableTCPServerSocket* GetTcpSocket(int socket_id); |
| 26 }; | 26 }; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 SocketsTcpServerGetSocketsFunction(); | 165 SocketsTcpServerGetSocketsFunction(); |
| 166 | 166 |
| 167 protected: | 167 protected: |
| 168 ~SocketsTcpServerGetSocketsFunction() override; | 168 ~SocketsTcpServerGetSocketsFunction() override; |
| 169 | 169 |
| 170 // AsyncApiFunction: | 170 // AsyncApiFunction: |
| 171 bool Prepare() override; | 171 bool Prepare() override; |
| 172 void Work() override; | 172 void Work() override; |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 } // namespace core_api | 175 } // namespace api |
| 176 } // namespace extensions | 176 } // namespace extensions |
| 177 | 177 |
| 178 #endif // EXTENSIONS_BROWSER_API_SOCKETS_TCP_SERVER_SOCKETS_TCP_SERVER_API_H_ | 178 #endif // EXTENSIONS_BROWSER_API_SOCKETS_TCP_SERVER_SOCKETS_TCP_SERVER_API_H_ |
| OLD | NEW |