Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: net/spdy/spdy_framer.h

Issue 2558243002: Add Http2FrameDecoderAdapter. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/spdy_flags.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SPDY_SPDY_FRAMER_H_ 5 #ifndef NET_SPDY_SPDY_FRAMER_H_
6 #define NET_SPDY_SPDY_FRAMER_H_ 6 #define NET_SPDY_SPDY_FRAMER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 void set_recv_frame_size_limit(size_t recv_frame_size_limit) { 546 void set_recv_frame_size_limit(size_t recv_frame_size_limit) {
547 recv_frame_size_limit_ = recv_frame_size_limit; 547 recv_frame_size_limit_ = recv_frame_size_limit;
548 } 548 }
549 549
550 void SetDecoderHeaderTableDebugVisitor( 550 void SetDecoderHeaderTableDebugVisitor(
551 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); 551 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor);
552 552
553 void SetEncoderHeaderTableDebugVisitor( 553 void SetEncoderHeaderTableDebugVisitor(
554 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); 554 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor);
555 555
556 // For use in SpdyFramerDecoderAdapter implementations; returns a HPACK
557 // decoder to be used.
558 HpackDecoderInterface* GetHpackDecoderForAdapter() {
559 return GetHpackDecoder();
560 }
561
556 protected: 562 protected:
557 friend class BufferedSpdyFramer; 563 friend class BufferedSpdyFramer;
558 friend class HttpNetworkLayer; // This is temporary for the server. 564 friend class HttpNetworkLayer; // This is temporary for the server.
559 friend class HttpNetworkTransactionTest; 565 friend class HttpNetworkTransactionTest;
560 friend class HttpProxyClientSocketPoolTest; 566 friend class HttpProxyClientSocketPoolTest;
561 friend class SpdyHttpStreamTest; 567 friend class SpdyHttpStreamTest;
562 friend class SpdyNetworkTransactionTest; 568 friend class SpdyNetworkTransactionTest;
563 friend class SpdyProxyClientSocketTest; 569 friend class SpdyProxyClientSocketTest;
564 friend class SpdySessionTest; 570 friend class SpdySessionTest;
565 friend class SpdyStreamTest; 571 friend class SpdyStreamTest;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 bool end_stream_when_done_; 781 bool end_stream_when_done_;
776 782
777 // If true, then ProcessInput returns after processing a full frame, 783 // If true, then ProcessInput returns after processing a full frame,
778 // rather than reading all available input. 784 // rather than reading all available input.
779 bool process_single_input_frame_ = false; 785 bool process_single_input_frame_ = false;
780 }; 786 };
781 787
782 } // namespace net 788 } // namespace net
783 789
784 #endif // NET_SPDY_SPDY_FRAMER_H_ 790 #endif // NET_SPDY_SPDY_FRAMER_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_flags.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698