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

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

Issue 2535013002: Add an override to SpdyFramerVisitorAdapter. (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 | « no previous file | net/spdy/spdy_framer_decoder_adapter.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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_DECODER_ADAPTER_H_ 5 #ifndef NET_SPDY_SPDY_FRAMER_DECODER_ADAPTER_H_
6 #define NET_SPDY_SPDY_FRAMER_DECODER_ADAPTER_H_ 6 #define NET_SPDY_SPDY_FRAMER_DECODER_ADAPTER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // that while passing along all other calls unmodified. 92 // that while passing along all other calls unmodified.
93 class SpdyFramerVisitorAdapter : public SpdyFramerVisitorInterface { 93 class SpdyFramerVisitorAdapter : public SpdyFramerVisitorInterface {
94 public: 94 public:
95 SpdyFramerVisitorAdapter(SpdyFramerVisitorInterface* visitor, 95 SpdyFramerVisitorAdapter(SpdyFramerVisitorInterface* visitor,
96 SpdyFramer* framer) 96 SpdyFramer* framer)
97 : visitor_(visitor), framer_(framer) {} 97 : visitor_(visitor), framer_(framer) {}
98 ~SpdyFramerVisitorAdapter() override {} 98 ~SpdyFramerVisitorAdapter() override {}
99 // The visitor needs the original SpdyFramer, not the SpdyFramerDecoderAdapter 99 // The visitor needs the original SpdyFramer, not the SpdyFramerDecoderAdapter
100 // instance. 100 // instance.
101 void OnError(SpdyFramer* framer) override; 101 void OnError(SpdyFramer* framer) override;
102 void OnCommonHeader(SpdyStreamId stream_id,
103 size_t length,
104 uint8_t type,
105 uint8_t flags) override;
102 void OnDataFrameHeader(SpdyStreamId stream_id, 106 void OnDataFrameHeader(SpdyStreamId stream_id,
103 size_t length, 107 size_t length,
104 bool fin) override; 108 bool fin) override;
105 void OnStreamFrameData(SpdyStreamId stream_id, 109 void OnStreamFrameData(SpdyStreamId stream_id,
106 const char* data, 110 const char* data,
107 size_t len) override; 111 size_t len) override;
108 void OnStreamEnd(SpdyStreamId stream_id) override; 112 void OnStreamEnd(SpdyStreamId stream_id) override;
109 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override; 113 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override;
110 SpdyHeadersHandlerInterface* OnHeaderFrameStart( 114 SpdyHeadersHandlerInterface* OnHeaderFrameStart(
111 SpdyStreamId stream_id) override; 115 SpdyStreamId stream_id) override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 SpdyFramer* framer() const { return framer_; } 158 SpdyFramer* framer() const { return framer_; }
155 159
156 private: 160 private:
157 SpdyFramerVisitorInterface* const visitor_; 161 SpdyFramerVisitorInterface* const visitor_;
158 SpdyFramer* const framer_; 162 SpdyFramer* const framer_;
159 }; 163 };
160 164
161 } // namespace net 165 } // namespace net
162 166
163 #endif // NET_SPDY_SPDY_FRAMER_DECODER_ADAPTER_H_ 167 #endif // NET_SPDY_SPDY_FRAMER_DECODER_ADAPTER_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_framer_decoder_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698