| OLD | NEW |
| 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_UTILITY_WEBSOCKET_WEBSOCKET_API_H_ | 5 #ifndef PPAPI_UTILITY_WEBSOCKET_WEBSOCKET_API_H_ |
| 6 #define PPAPI_UTILITY_WEBSOCKET_WEBSOCKET_API_H_ | 6 #define PPAPI_UTILITY_WEBSOCKET_WEBSOCKET_API_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ppapi/c/ppb_websocket.h" | 10 #include "ppapi/c/ppb_websocket.h" |
| 11 | 11 |
| 12 /// @file | 12 /// @file |
| 13 /// This file defines the WebSocketAPI interface. | 13 /// This file defines the WebSocketAPI interface. |
| 14 | 14 |
| 15 namespace pp { | 15 namespace pp { |
| 16 | 16 |
| 17 class CompletionCallback; | |
| 18 class Instance; | 17 class Instance; |
| 19 class Var; | 18 class Var; |
| 20 | 19 |
| 21 /// The <code>WebSocketAPI</code> class | 20 /// The <code>WebSocketAPI</code> class |
| 22 class WebSocketAPI { | 21 class WebSocketAPI { |
| 23 public: | 22 public: |
| 24 /// Constructs a WebSocketAPI object. | 23 /// Constructs a WebSocketAPI object. |
| 25 explicit WebSocketAPI(Instance* instance); | 24 explicit WebSocketAPI(Instance* instance); |
| 26 | 25 |
| 27 /// Destructs a WebSocketAPI object. | 26 /// Destructs a WebSocketAPI object. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 virtual void HandleWebSocketError() = 0; | 122 virtual void HandleWebSocketError() = 0; |
| 124 | 123 |
| 125 private: | 124 private: |
| 126 class Implement; | 125 class Implement; |
| 127 Implement* impl_; | 126 Implement* impl_; |
| 128 }; | 127 }; |
| 129 | 128 |
| 130 } // namespace pp | 129 } // namespace pp |
| 131 | 130 |
| 132 #endif // PPAPI_UTILITY_WEBSOCKET_WEBSOCKET_API_H_ | 131 #endif // PPAPI_UTILITY_WEBSOCKET_WEBSOCKET_API_H_ |
| OLD | NEW |