| 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 NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
| 6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 13 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
| 14 #include "net/http/http_basic_state.h" | 16 #include "net/http/http_basic_state.h" |
| 15 #include "net/websockets/websocket_handshake_stream_base.h" | 17 #include "net/websockets/websocket_handshake_stream_base.h" |
| 16 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 17 | 19 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 int ReadResponseHeaders(const CompletionCallback& callback) override; | 51 int ReadResponseHeaders(const CompletionCallback& callback) override; |
| 50 int ReadResponseBody(IOBuffer* buf, | 52 int ReadResponseBody(IOBuffer* buf, |
| 51 int buf_len, | 53 int buf_len, |
| 52 const CompletionCallback& callback) override; | 54 const CompletionCallback& callback) override; |
| 53 void Close(bool not_reusable) override; | 55 void Close(bool not_reusable) override; |
| 54 bool IsResponseBodyComplete() const override; | 56 bool IsResponseBodyComplete() const override; |
| 55 bool IsConnectionReused() const override; | 57 bool IsConnectionReused() const override; |
| 56 void SetConnectionReused() override; | 58 void SetConnectionReused() override; |
| 57 bool CanReuseConnection() const override; | 59 bool CanReuseConnection() const override; |
| 58 int64 GetTotalReceivedBytes() const override; | 60 int64 GetTotalReceivedBytes() const override; |
| 61 int64_t GetTotalSentBytes() const override; |
| 59 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 62 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 60 void GetSSLInfo(SSLInfo* ssl_info) override; | 63 void GetSSLInfo(SSLInfo* ssl_info) override; |
| 61 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 64 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 62 void Drain(HttpNetworkSession* session) override; | 65 void Drain(HttpNetworkSession* session) override; |
| 63 void SetPriority(RequestPriority priority) override; | 66 void SetPriority(RequestPriority priority) override; |
| 64 UploadProgress GetUploadProgress() const override; | 67 UploadProgress GetUploadProgress() const override; |
| 65 HttpStream* RenewStreamForAuth() override; | 68 HttpStream* RenewStreamForAuth() override; |
| 66 | 69 |
| 67 | 70 |
| 68 // This is called from the top level once correct handshake response headers | 71 // This is called from the top level once correct handshake response headers |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 scoped_ptr<WebSocketExtensionParams> extension_params_; | 135 scoped_ptr<WebSocketExtensionParams> extension_params_; |
| 133 | 136 |
| 134 std::string* failure_message_; | 137 std::string* failure_message_; |
| 135 | 138 |
| 136 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); | 139 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 } // namespace net | 142 } // namespace net |
| 140 | 143 |
| 141 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 144 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
| OLD | NEW |