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