Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.h

Issue 76403004: An implementation of chrome.socket.secure(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made TLSSocket resumable, responses to sleevi's round-1 comments. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698