Home
last modified time | relevance | path

Searched refs:SpdyFrame (Results 1 – 20 of 20) sorted by relevance

/external/chromium/net/spdy/
Dspdy_test_util.h56 MockWrite* ChopWriteFrame(const spdy::SpdyFrame& frame, int num_chunks);
67 MockRead* ChopReadFrame(const spdy::SpdyFrame& frame, int num_chunks);
116 spdy::SpdyFrame* ConstructSpdyPacket(const SpdyHeaderInfo& header_info,
123 spdy::SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[],
132 spdy::SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[],
156 spdy::SpdyFrame* ConstructSpdySettings(spdy::SpdySettings settings);
160 spdy::SpdyFrame* ConstructSpdyGoAway();
164 spdy::SpdyFrame* ConstructSpdyWindowUpdate(spdy::SpdyStreamId,
169 spdy::SpdyFrame* ConstructSpdyRstStream(spdy::SpdyStreamId stream_id,
188 spdy::SpdyFrame* ConstructSpdyGet(const char* const url,
[all …]
Dspdy_proxy_client_socket_unittest.cc65 spdy::SpdyFrame* ConstructConnectRequestFrame();
66 spdy::SpdyFrame* ConstructConnectAuthRequestFrame();
67 spdy::SpdyFrame* ConstructConnectReplyFrame();
68 spdy::SpdyFrame* ConstructConnectAuthReplyFrame();
69 spdy::SpdyFrame* ConstructConnectErrorReplyFrame();
70 spdy::SpdyFrame* ConstructBodyFrame(const char* data, int length);
305 spdy::SpdyFrame* SpdyProxyClientSocketTest::ConstructConnectRequestFrame() { in ConstructConnectRequestFrame()
331 spdy::SpdyFrame* SpdyProxyClientSocketTest::ConstructConnectAuthRequestFrame() { in ConstructConnectAuthRequestFrame()
357 spdy::SpdyFrame* SpdyProxyClientSocketTest::ConstructConnectReplyFrame() { in ConstructConnectReplyFrame()
374 spdy::SpdyFrame* SpdyProxyClientSocketTest::ConstructConnectAuthReplyFrame() { in ConstructConnectAuthReplyFrame()
[all …]
Dspdy_test_util.cc38 MockWrite* ChopWriteFrame(const spdy::SpdyFrame& frame, int num_chunks) { in ChopWriteFrame()
40 frame.length() + spdy::SpdyFrame::size(), in ChopWriteFrame()
63 MockRead* ChopReadFrame(const spdy::SpdyFrame& frame, int num_chunks) { in ChopReadFrame()
65 frame.length() + spdy::SpdyFrame::size(), in ChopReadFrame()
149 spdy::SpdyFrame* ConstructSpdyPacket(const SpdyHeaderInfo& header_info, in ConstructSpdyPacket()
161 spdy::SpdyFrame* frame = NULL; in ConstructSpdyPacket()
192 spdy::SpdyFrame* ConstructSpdySettings(spdy::SpdySettings settings) { in ConstructSpdySettings()
199 spdy::SpdyFrame* ConstructSpdyGoAway() { in ConstructSpdyGoAway()
206 spdy::SpdyFrame* ConstructSpdyWindowUpdate( in ConstructSpdyWindowUpdate()
214 spdy::SpdyFrame* ConstructSpdyRstStream(spdy::SpdyStreamId stream_id, in ConstructSpdyRstStream()
[all …]
Dspdy_network_transaction_unittest.cc527 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST)); in TEST_P()
530 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
531 scoped_ptr<spdy::SpdyFrame> body(ConstructSpdyBodyFrame(1, true)); in TEST_P()
554 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, p)); in TEST_P()
580 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
581 scoped_ptr<spdy::SpdyFrame> body(ConstructSpdyBodyFrame(1, true)); in TEST_P()
614 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST)); in TEST_P()
615 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
616 scoped_ptr<spdy::SpdyFrame> body(ConstructSpdyBodyFrame(1, false)); in TEST_P()
617 scoped_ptr<spdy::SpdyFrame> fbody(ConstructSpdyBodyFrame(1, true)); in TEST_P()
[all …]
Dspdy_framer_test.cc186 using spdy::SpdyFrame;
208 const SpdyFrame& actual_frame, in CompareFrame()
213 int actual_len = actual_frame.length() + SpdyFrame::size(); in CompareFrame()
256 frame.WriteUInt32ToOffset(4, frame.length() - SpdyFrame::size()); in TEST_F()
259 scoped_ptr<SpdyFrame> control_frame(frame.take()); in TEST_F()
282 frame1.WriteUInt32ToOffset(4, frame1.length() - SpdyFrame::size()); in TEST_F()
297 frame2.WriteUInt32ToOffset(4, frame2.length() - SpdyFrame::size()); in TEST_F()
300 scoped_ptr<SpdyFrame> syn_frame1(frame1.take()); in TEST_F()
301 scoped_ptr<SpdyFrame> syn_frame2(frame2.take()); in TEST_F()
325 frame.WriteUInt32ToOffset(4, frame.length() - SpdyFrame::size()); in TEST_F()
[all …]
Dspdy_framer.h139 bool ParseHeaderBlock(const SpdyFrame* frame, SpdyHeaderBlock* block);
229 SpdyFrame* CompressFrame(const SpdyFrame& frame);
236 SpdyFrame* DecompressFrame(const SpdyFrame& frame);
240 SpdyFrame* DuplicateFrame(const SpdyFrame& frame);
243 bool IsCompressible(const SpdyFrame& frame) const;
309 SpdyFrame* CompressFrameWithZStream(const SpdyFrame& frame,
311 SpdyFrame* DecompressFrameWithZStream(const SpdyFrame& frame,
328 bool GetFrameBoundaries(const SpdyFrame& frame, int* payload_length,
Dspdy_framer.cc176 bool SpdyFramer::ParseHeaderBlock(const SpdyFrame* frame, in ParseHeaderBlock()
184 scoped_ptr<SpdyFrame> decompressed_frame(DecompressFrame(*frame)); in ParseHeaderBlock()
267 size_t length = frame.length() - SpdyFrame::size(); in CreateSynStream()
275 scoped_ptr<SpdyFrame> syn_frame(frame.take()); in CreateSynStream()
306 size_t length = frame.length() - SpdyFrame::size(); in CreateSynReply()
314 scoped_ptr<SpdyFrame> reply_frame(frame.take()); in CreateSynReply()
345 size_t settings_size = SpdySettingsControlFrame::size() - SpdyFrame::size() + in CreateSettings()
375 size_t go_away_size = SpdyGoAwayControlFrame::size() - SpdyFrame::size(); in CreateGoAway()
404 size_t length = frame.length() - SpdyFrame::size(); in CreateHeaders()
412 scoped_ptr<SpdyFrame> headers_frame(frame.take()); in CreateHeaders()
[all …]
Dspdy_protocol.h320 class SpdyFrame {
323 explicit SpdyFrame(size_t size) : frame_(NULL), owns_buffer_(true) { in SpdyFrame() function
337 SpdyFrame(char* data, bool owns_buffer) in SpdyFrame() function
343 ~SpdyFrame() { in ~SpdyFrame()
384 DISALLOW_COPY_AND_ASSIGN(SpdyFrame);
388 class SpdyDataFrame : public SpdyFrame {
390 SpdyDataFrame() : SpdyFrame(size()) {} in SpdyDataFrame()
392 : SpdyFrame(data, owns_buffer) {} in SpdyDataFrame()
408 static size_t size() { return SpdyFrame::size(); } in size()
419 class SpdyControlFrame : public SpdyFrame {
[all …]
Dspdy_http_stream_unittest.cc58 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST)); in TEST_F()
62 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_F()
108 scoped_ptr<spdy::SpdyFrame> req(ConstructChunkedSpdyPost(NULL, 0)); in TEST_F()
109 scoped_ptr<spdy::SpdyFrame> chunk1(ConstructSpdyBodyFrame(1, false)); in TEST_F()
110 scoped_ptr<spdy::SpdyFrame> chunk2(ConstructSpdyBodyFrame(1, true)); in TEST_F()
116 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyPostSynReply(NULL, 0)); in TEST_F()
172 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(base_url, false, 1, LOWEST)); in TEST_F()
176 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_F()
Dspdy_frame_builder.h44 SpdyFrame* take() { in take()
45 SpdyFrame* rv = new SpdyFrame(buffer_, true); in take()
Dspdy_stream_unittest.cc104 spdy::SpdyFrame* ConstructSpdyBodyFrame(const char* data, int length) { in ConstructSpdyBodyFrame()
162 scoped_ptr<spdy::SpdyFrame> req( in TEST_F()
165 scoped_ptr<spdy::SpdyFrame> msg( in TEST_F()
174 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_F()
175 scoped_ptr<spdy::SpdyFrame> echo( in TEST_F()
Dspdy_protocol_test.cc27 using spdy::SpdyFrame;
47 EXPECT_EQ(8u, SpdyFrame::size()); in TEST()
70 SpdyFrame frame(SpdyFrame::size()); in TEST()
Dspdy_session.cc651 DCHECK_GE(result, static_cast<int>(spdy::SpdyFrame::size())); in OnWriteComplete()
652 result -= static_cast<int>(spdy::SpdyFrame::size()); in OnWriteComplete()
751 spdy::SpdyFrame uncompressed_frame(next_buffer.buffer()->data(), false); in WriteSocket()
754 scoped_ptr<spdy::SpdyFrame> compressed_frame( in WriteSocket()
762 size = compressed_frame->length() + spdy::SpdyFrame::size(); in WriteSocket()
773 size = uncompressed_frame.length() + spdy::SpdyFrame::size(); in WriteSocket()
839 void SpdySession::QueueFrame(spdy::SpdyFrame* frame, in QueueFrame()
842 int length = spdy::SpdyFrame::size() + frame->length(); in QueueFrame()
Dspdy_session.h40 const int kMaxSpdyFrameChunkSize = (2 * kMss) - spdy::SpdyFrame::size();
302 void QueueFrame(spdy::SpdyFrame* frame, spdy::SpdyPriority priority,
Dspdy_session_unittest.cc68 scoped_ptr<spdy::SpdyFrame> goaway(ConstructSpdyGoAway()); in TEST_F()
170 scoped_ptr<spdy::SpdyFrame> settings_frame( in TEST_F()
359 scoped_ptr<spdy::SpdyFrame> settings_frame( in TEST_F()
/external/chromium/net/http/
Dhttp_proxy_client_socket_pool_unittest.cc250 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyConnect(NULL, 0, 1)); in TEST_P()
251 scoped_ptr<spdy::SpdyFrame> rst(ConstructSpdyRstStream(1, spdy::CANCEL)); in TEST_P()
256 scoped_ptr<spdy::SpdyFrame> resp( in TEST_P()
334 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyConnect(kAuthHeaders, in TEST_P()
339 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
446 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyConnect(kAuthHeaders, in TEST_P()
483 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyConnect(kAuthHeaders, in TEST_P()
485 scoped_ptr<spdy::SpdyFrame> rst(ConstructSpdyRstStream(1, spdy::CANCEL)); in TEST_P()
490 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdySynReplyError(1)); in TEST_P()
Dhttp_network_transaction_unittest.cc1955 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST, in TEST_F()
1959 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_F()
1960 scoped_ptr<spdy::SpdyFrame> data(ConstructSpdyBodyFrame(1, true)); in TEST_F()
2016 scoped_ptr<spdy::SpdyFrame> req_get( in TEST_F()
2022 scoped_ptr<spdy::SpdyFrame> req_get_authorization( in TEST_F()
2038 scoped_ptr<spdy::SpdyFrame> resp_authentication( in TEST_F()
2043 scoped_ptr<spdy::SpdyFrame> body_authentication( in TEST_F()
2045 scoped_ptr<spdy::SpdyFrame> resp_data(ConstructSpdyGetSynReply(NULL, 0, 3)); in TEST_F()
2046 scoped_ptr<spdy::SpdyFrame> body_data(ConstructSpdyBodyFrame(3, true)); in TEST_F()
2123 scoped_ptr<spdy::SpdyFrame> connect(ConstructSpdyConnect(NULL, 0, 1)); in TEST_F()
[all …]
/external/chromium/net/tools/flip_server/
Dspdy_interface.cc30 using spdy::SpdyFrame;
49 SpdyFrameDataFrame(SpdyFrame* spdy_frame) in SpdyFrameDataFrame()
52 size = spdy_frame->length() + SpdyFrame::size(); in SpdyFrameDataFrame()
59 const SpdyFrame* frame;
469 size_t df_size = fsrcf->length() + SpdyFrame::size(); in SendSynStreamImpl()
486 size_t df_size = fsrcf->length() + SpdyFrame::size(); in SendSynReplyImpl()
Dconstants.h12 const int kSpdyOverhead = spdy::SpdyFrame::size();
Dbalsa_headers.h983 friend class SpdyFrame; variable