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

Side by Side Diff: ppapi/cpp/private/flash_tcp_socket.h

Issue 7535007: Implement PPB_Flash_TCPSocket.InitiateSSL. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make changes according to Wan-Teh's suggestions. Created 9 years, 4 months 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // TODO(yzshen): This (and the .cc file) contain C++ wrappers for things 5 // TODO(yzshen): This (and the .cc file) contain C++ wrappers for things
6 // in ppapi/c/private/ppb_flash_tcp_socket.h. This is currently not used in 6 // in ppapi/c/private/ppb_flash_tcp_socket.h. This is currently not used in
7 // (or even compiled with) Chromium. 7 // (or even compiled with) Chromium.
8 8
9 #ifndef PPAPI_CPP_PRIVATE_FLASH_TCP_SOCKET_H_ 9 #ifndef PPAPI_CPP_PRIVATE_FLASH_TCP_SOCKET_H_
10 #define PPAPI_CPP_PRIVATE_FLASH_TCP_SOCKET_H_ 10 #define PPAPI_CPP_PRIVATE_FLASH_TCP_SOCKET_H_
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 explicit TCPSocket(Instance* instance); 25 explicit TCPSocket(Instance* instance);
26 26
27 int32_t Connect(const char* host, 27 int32_t Connect(const char* host,
28 uint16_t port, 28 uint16_t port,
29 const CompletionCallback& callback); 29 const CompletionCallback& callback);
30 int32_t ConnectWithNetAddress(const PP_Flash_NetAddress* addr, 30 int32_t ConnectWithNetAddress(const PP_Flash_NetAddress* addr,
31 const CompletionCallback& callback); 31 const CompletionCallback& callback);
32 bool GetLocalAddress(PP_Flash_NetAddress* local_addr); 32 bool GetLocalAddress(PP_Flash_NetAddress* local_addr);
33 bool GetRemoteAddress(PP_Flash_NetAddress* remote_addr); 33 bool GetRemoteAddress(PP_Flash_NetAddress* remote_addr);
34 int32_t InitiateSSL(const char* server_name, 34 int32_t SSLHandshake(const char* server_name,
35 const CompletionCallback& callback); 35 uint16_t server_port,
wtc 2011/08/15 23:17:23 In our face-to-face discussion, you told me that p
36 const CompletionCallback& callback);
36 int32_t Read(char* buffer, 37 int32_t Read(char* buffer,
37 int32_t bytes_to_read, 38 int32_t bytes_to_read,
38 const CompletionCallback& callback); 39 const CompletionCallback& callback);
39 int32_t Write(const char* buffer, 40 int32_t Write(const char* buffer,
40 int32_t bytes_to_write, 41 int32_t bytes_to_write,
41 const CompletionCallback& callback); 42 const CompletionCallback& callback);
42 void Disconnect(); 43 void Disconnect();
43 }; 44 };
44 45
45 } // namespace flash 46 } // namespace flash
46 } // namespace pp 47 } // namespace pp
47 48
48 #endif // PPAPI_CPP_PRIVATE_FLASH_TCP_SOCKET_H_ 49 #endif // PPAPI_CPP_PRIVATE_FLASH_TCP_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698