OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TOOLS_FLIP_SERVER_HTTP_INTERFACE_H_ | 5 #ifndef NET_TOOLS_FLIP_SERVER_HTTP_INTERFACE_H_ |
6 #define NET_TOOLS_FLIP_SERVER_HTTP_INTERFACE_H_ | 6 #define NET_TOOLS_FLIP_SERVER_HTTP_INTERFACE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 size_t SendSynStreamImpl(uint32_t stream_id, const BalsaHeaders& headers); | 118 size_t SendSynStreamImpl(uint32_t stream_id, const BalsaHeaders& headers); |
119 void SendDataFrameImpl(uint32_t stream_id, | 119 void SendDataFrameImpl(uint32_t stream_id, |
120 const char* data, | 120 const char* data, |
121 int64_t len, | 121 int64_t len, |
122 uint32_t flags, | 122 uint32_t flags, |
123 bool compress); | 123 bool compress); |
124 void EnqueueDataFrame(DataFrame* df); | 124 void EnqueueDataFrame(DataFrame* df); |
125 void GetOutput() override; | 125 void GetOutput() override; |
126 | 126 |
127 private: | 127 private: |
128 scoped_ptr<BalsaFrame> http_framer_; | 128 std::unique_ptr<BalsaFrame> http_framer_; |
129 BalsaHeaders headers_; | 129 BalsaHeaders headers_; |
130 uint32_t stream_id_; | 130 uint32_t stream_id_; |
131 int32_t server_idx_; | 131 int32_t server_idx_; |
132 | 132 |
133 SMConnection* connection_; | 133 SMConnection* connection_; |
134 SMInterface* sm_spdy_interface_; | 134 SMInterface* sm_spdy_interface_; |
135 OutputList* output_list_; | 135 OutputList* output_list_; |
136 OutputOrdering output_ordering_; | 136 OutputOrdering output_ordering_; |
137 MemoryCache* memory_cache_; | 137 MemoryCache* memory_cache_; |
138 FlipAcceptor* acceptor_; | 138 FlipAcceptor* acceptor_; |
139 }; | 139 }; |
140 | 140 |
141 } // namespace net | 141 } // namespace net |
142 | 142 |
143 #endif // NET_TOOLS_FLIP_SERVER_HTTP_INTERFACE_H_ | 143 #endif // NET_TOOLS_FLIP_SERVER_HTTP_INTERFACE_H_ |
OLD | NEW |