| 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 CONTENT_CHILD_WEBSOCKET_BRIDGE_H_ | 5 #ifndef CONTENT_CHILD_WEBSOCKET_BRIDGE_H_ |
| 6 #define CONTENT_CHILD_WEBSOCKET_BRIDGE_H_ | 6 #define CONTENT_CHILD_WEBSOCKET_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 private: | 44 private: |
| 45 virtual ~WebSocketBridge(); | 45 virtual ~WebSocketBridge(); |
| 46 | 46 |
| 47 void DidConnect(bool fail, | 47 void DidConnect(bool fail, |
| 48 const std::string& selected_protocol, | 48 const std::string& selected_protocol, |
| 49 const std::string& extensions); | 49 const std::string& extensions); |
| 50 void DidReceiveData(bool fin, | 50 void DidReceiveData(bool fin, |
| 51 WebSocketMessageType type, | 51 WebSocketMessageType type, |
| 52 const std::vector<char>& data); | 52 const std::vector<char>& data); |
| 53 void DidReceiveFlowControl(int64_t quota); | 53 void DidReceiveFlowControl(int64_t quota); |
| 54 void DidClose(unsigned short code, const std::string& reason); | 54 void DidClose(bool fail, unsigned short code, const std::string& reason); |
| 55 | 55 |
| 56 int channel_id_; | 56 int channel_id_; |
| 57 WebKit::WebSocketHandleClient* client_; | 57 WebKit::WebSocketHandleClient* client_; |
| 58 | 58 |
| 59 static const int kInvalidChannelId = -1; | 59 static const int kInvalidChannelId = -1; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace content | 62 } // namespace content |
| 63 | 63 |
| 64 #endif // CONTENT_CHILD_WEBSOCKET_BRIDGE_H_ | 64 #endif // CONTENT_CHILD_WEBSOCKET_BRIDGE_H_ |
| OLD | NEW |