Chromium Code Reviews| Index: net/spdy/spdy_frame_producer.h |
| diff --git a/net/spdy/spdy_frame_producer.h b/net/spdy/spdy_frame_producer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c5d4d8c7b076ace8c0cd09bc547c8847cfd7e783 |
| --- /dev/null |
| +++ b/net/spdy/spdy_frame_producer.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_SPDY_SPDY_FRAME_PRODUCER_H_ |
| +#define NET_SPDY_SPDY_FRAME_PRODUCER_H_ |
| +#pragma once |
| + |
| +#include "net/base/request_priority.h" |
| +#include "net/spdy/spdy_protocol.h" |
| + |
| +namespace net { |
| + |
| +class SpdyStream; |
| + |
| +class NET_EXPORT_PRIVATE SpdyFrameProducer { |
|
Ryan Hamilton
2012/06/21 18:14:58
move to nested class of SpdySession
|
| + public: |
|
ramant (doing other things)
2012/06/20 01:50:40
nit: A small comment describing purpose of this cl
Ryan Hamilton
2012/06/21 18:14:58
Done.
|
| + SpdyFrameProducer() {} |
| + |
| + virtual SpdyFrame* ProduceNextFrame() = 0; |
| + |
| + virtual RequestPriority GetPriority() const = 0; |
| + |
| + virtual SpdyStream* GetSpdyStream() const = 0; |
|
Ryan Hamilton
2012/06/21 18:14:58
remove const
|
| + |
| + protected: |
| + virtual ~SpdyFrameProducer() {} |
|
Ryan Hamilton
2012/06/21 18:14:58
Make destructor public. Change SpdyStream to not
|
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(SpdyFrameProducer); |
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_SPDY_SPDY_FRAME_PRODUCER_H_ |