| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HTTP_CONNECTION_IMPL_H_ | 5 #ifndef MOJO_SERVICES_NETWORK_HTTP_CONNECTION_IMPL_H_ |
| 6 #define MOJO_SERVICES_NETWORK_HTTP_CONNECTION_IMPL_H_ | 6 #define MOJO_SERVICES_NETWORK_HTTP_CONNECTION_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace mojo { | 21 namespace mojo { |
| 22 | 22 |
| 23 class HttpServerImpl; | 23 class HttpServerImpl; |
| 24 | 24 |
| 25 class HttpConnectionImpl : public HttpConnection { | 25 class HttpConnectionImpl : public HttpConnection { |
| 26 public: | 26 public: |
| 27 // |server| must outlive this object. | 27 // |server| must outlive this object. |
| 28 HttpConnectionImpl(int connection_id, | 28 HttpConnectionImpl(int connection_id, |
| 29 HttpServerImpl* server, | 29 HttpServerImpl* server, |
| 30 HttpConnectionDelegatePtr delegate, | 30 HttpConnectionDelegatePtr delegate, |
| 31 HttpConnectionPtr* connection); | 31 InterfaceHandle<HttpConnection>* connection); |
| 32 | 32 |
| 33 ~HttpConnectionImpl() override; | 33 ~HttpConnectionImpl() override; |
| 34 | 34 |
| 35 void OnReceivedHttpRequest(const net::HttpServerRequestInfo& info); | 35 void OnReceivedHttpRequest(const net::HttpServerRequestInfo& info); |
| 36 void OnReceivedWebSocketRequest(const net::HttpServerRequestInfo& info); | 36 void OnReceivedWebSocketRequest(const net::HttpServerRequestInfo& info); |
| 37 void OnReceivedWebSocketMessage(const std::string& data); | 37 void OnReceivedWebSocketMessage(const std::string& data); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 class SimpleDataPipeReader; | 40 class SimpleDataPipeReader; |
| 41 class WebSocketImpl; | 41 class WebSocketImpl; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 71 std::set<SimpleDataPipeReader*> response_body_readers_; | 71 std::set<SimpleDataPipeReader*> response_body_readers_; |
| 72 | 72 |
| 73 scoped_ptr<WebSocketImpl> web_socket_; | 73 scoped_ptr<WebSocketImpl> web_socket_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(HttpConnectionImpl); | 75 DISALLOW_COPY_AND_ASSIGN(HttpConnectionImpl); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace mojo | 78 } // namespace mojo |
| 79 | 79 |
| 80 #endif // MOJO_SERVICES_NETWORK_HTTP_CONNECTION_IMPL_H_ | 80 #endif // MOJO_SERVICES_NETWORK_HTTP_CONNECTION_IMPL_H_ |
| OLD | NEW |