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

Side by Side Diff: ppapi/cpp/websocket.h

Issue 10696157: Add support for threadsafe completion callback factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PPAPI_CPP_WEBSOCKET_H_ 5 #ifndef PPAPI_CPP_WEBSOCKET_H_
6 #define PPAPI_CPP_WEBSOCKET_H_ 6 #define PPAPI_CPP_WEBSOCKET_H_
7 7
8 #include "ppapi/c/ppb_websocket.h" 8 #include "ppapi/c/ppb_websocket.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 10
11 /// @file 11 /// @file
12 /// This file defines the WebSocket interface providing bi-directional, 12 /// This file defines the WebSocket interface providing bi-directional,
13 /// full-duplex, communications over a single TCP socket. 13 /// full-duplex, communications over a single TCP socket.
14 14
15 // Windows headers will redefine SendMessage.
16 #ifdef SendMessage
17 #undef SendMessage
18 #endif
19
15 namespace pp { 20 namespace pp {
16 21
17 class CompletionCallback; 22 class CompletionCallback;
18 class InstanceHandle; 23 class InstanceHandle;
19 class Var; 24 class Var;
20 25
21 /// The <code>WebSocket</code> class providing bi-directional, 26 /// The <code>WebSocket</code> class providing bi-directional,
22 /// full-duplex, communications over a single TCP socket. 27 /// full-duplex, communications over a single TCP socket.
23 class WebSocket : public Resource { 28 class WebSocket : public Resource {
24 public: 29 public:
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 /// @return Returns a <code>Var</code> of string type. If called before the 209 /// @return Returns a <code>Var</code> of string type. If called before the
205 /// connection is established, the <code>Var</code> contains the empty 210 /// connection is established, the <code>Var</code> contains the empty
206 /// string. Returns a <code>PP_VARTYPE_UNDEFINED</code> if this function 211 /// string. Returns a <code>PP_VARTYPE_UNDEFINED</code> if this function
207 /// is called on an invalid resource. 212 /// is called on an invalid resource.
208 Var GetURL(); 213 Var GetURL();
209 }; 214 };
210 215
211 } // namespace pp 216 } // namespace pp
212 217
213 #endif // PPAPI_CPP_WEBSOCKET_H_ 218 #endif // PPAPI_CPP_WEBSOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698