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 <stdint.h> |
| 9 |
8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
9 #include "mojo/application/public/cpp/app_lifetime_helper.h" | 11 #include "mojo/application/public/cpp/app_lifetime_helper.h" |
10 #include "mojo/public/cpp/bindings/strong_binding.h" | 12 #include "mojo/public/cpp/bindings/strong_binding.h" |
11 #include "mojo/services/network/public/interfaces/web_socket.mojom.h" | 13 #include "mojo/services/network/public/interfaces/web_socket.mojom.h" |
12 | 14 |
13 namespace net { | 15 namespace net { |
14 class WebSocketChannel; | 16 class WebSocketChannel; |
15 } // namespace net | 17 } // namespace net |
16 | 18 |
17 namespace mojo { | 19 namespace mojo { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 ScopedDataPipeConsumerHandle send_stream_; | 51 ScopedDataPipeConsumerHandle send_stream_; |
50 scoped_ptr<WebSocketReadQueue> read_queue_; | 52 scoped_ptr<WebSocketReadQueue> read_queue_; |
51 NetworkContext* context_; | 53 NetworkContext* context_; |
52 scoped_ptr<mojo::AppRefCount> app_refcount_; | 54 scoped_ptr<mojo::AppRefCount> app_refcount_; |
53 StrongBinding<WebSocket> binding_; | 55 StrongBinding<WebSocket> binding_; |
54 }; | 56 }; |
55 | 57 |
56 } // namespace mojo | 58 } // namespace mojo |
57 | 59 |
58 #endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ | 60 #endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ |
OLD | NEW |