OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ | 5 #ifndef MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ |
6 #define MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ | 6 #define MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "mojo/public/cpp/bindings/interface_impl.h" | 10 #include "mojo/public/cpp/bindings/interface_impl.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // WebSocket methods: | 31 // WebSocket methods: |
32 virtual void Connect(const String& url, | 32 virtual void Connect(const String& url, |
33 Array<String> protocols, | 33 Array<String> protocols, |
34 const String& origin, | 34 const String& origin, |
35 WebSocketClientPtr client) OVERRIDE; | 35 WebSocketClientPtr client) OVERRIDE; |
36 virtual void Send(bool fin, | 36 virtual void Send(bool fin, |
37 WebSocket::MessageType type, | 37 WebSocket::MessageType type, |
38 ScopedDataPipeConsumerHandle data) OVERRIDE; | 38 ScopedDataPipeConsumerHandle data) OVERRIDE; |
39 virtual void FlowControl(int64_t quota) OVERRIDE; | 39 virtual void FlowControl(int64_t quota) OVERRIDE; |
40 virtual void Close(int16_t code, const String& reason) OVERRIDE; | 40 virtual void Close(uint16_t code, const String& reason) OVERRIDE; |
41 | 41 |
42 // The channel we use to send events to the network. | 42 // The channel we use to send events to the network. |
43 scoped_ptr<net::WebSocketChannel> channel_; | 43 scoped_ptr<net::WebSocketChannel> channel_; |
44 NetworkContext* context_; | 44 NetworkContext* context_; |
45 }; | 45 }; |
46 | 46 |
47 } // namespace mojo | 47 } // namespace mojo |
48 | 48 |
49 #endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ | 49 #endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ |
OLD | NEW |