Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/api/socket/socket_api.h" | 8 #include "chrome/browser/extensions/api/socket/socket_api.h" |
| 9 #include "chrome/common/extensions/api/sockets_tcp.h" | 9 #include "chrome/common/extensions/api/sockets_tcp.h" |
| 10 | 10 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 232 SocketsTcpGetSocketsFunction(); | 232 SocketsTcpGetSocketsFunction(); |
| 233 | 233 |
| 234 protected: | 234 protected: |
| 235 virtual ~SocketsTcpGetSocketsFunction(); | 235 virtual ~SocketsTcpGetSocketsFunction(); |
| 236 | 236 |
| 237 // AsyncApiFunction: | 237 // AsyncApiFunction: |
| 238 virtual bool Prepare() OVERRIDE; | 238 virtual bool Prepare() OVERRIDE; |
| 239 virtual void Work() OVERRIDE; | 239 virtual void Work() OVERRIDE; |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 /*class SocketsTcpSecureFunction : public TCPSocketAsyncApiFunction { | |
|
rpaquay
2013/12/09 23:02:03
Should be implemented if "sockets_tcp.idl" is upda
| |
| 243 public: | |
| 244 DECLARE_EXTENSION_FUNCTION("sockets.tcp.secure", SOCKETS_TCP_SECURE); | |
| 245 SocketsTcpSecureFunction(); | |
| 246 protected: | |
| 247 virtual ~SocketsTcpSecureFunction(); | |
| 248 virtual bool Prepare() OVERRIDE; | |
| 249 } | |
| 250 */ | |
| 251 | |
| 242 } // namespace api | 252 } // namespace api |
| 243 } // namespace extensions | 253 } // namespace extensions |
| 244 | 254 |
| 245 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ | 255 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ |
| OLD | NEW |