OLD | NEW |
1 // Copyright (c) 2009 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_SPDY_INTERFACE_ | 5 #ifndef NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_ |
6 #define NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_ | 6 #define NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void OnError(spdy::SpdyFramer* framer) {} | 55 virtual void OnError(spdy::SpdyFramer* framer) {} |
56 SMInterface* NewConnectionInterface(); | 56 SMInterface* NewConnectionInterface(); |
57 SMInterface* FindOrMakeNewSMConnectionInterface(std::string server_ip, | 57 SMInterface* FindOrMakeNewSMConnectionInterface(std::string server_ip, |
58 std::string server_port); | 58 std::string server_port); |
59 int SpdyHandleNewStream(const spdy::SpdyControlFrame* frame, | 59 int SpdyHandleNewStream(const spdy::SpdyControlFrame* frame, |
60 std::string &http_data, | 60 std::string &http_data, |
61 bool *is_https_scheme); | 61 bool *is_https_scheme); |
62 | 62 |
63 // SpdyFramerVisitor interface. | 63 // SpdyFramerVisitor interface. |
64 virtual void OnControl(const spdy::SpdyControlFrame* frame); | 64 virtual void OnControl(const spdy::SpdyControlFrame* frame); |
| 65 virtual bool OnControlFrameHeaderData(spdy::SpdyStreamId stream_id, |
| 66 const char* header_data, |
| 67 size_t len); |
| 68 virtual void OnDataFrameHeader(const spdy::SpdyDataFrame* frame); |
65 virtual void OnStreamFrameData(spdy::SpdyStreamId stream_id, | 69 virtual void OnStreamFrameData(spdy::SpdyStreamId stream_id, |
66 const char* data, size_t len); | 70 const char* data, size_t len); |
67 | 71 |
68 public: | 72 public: |
69 virtual size_t ProcessReadInput(const char* data, size_t len); | 73 virtual size_t ProcessReadInput(const char* data, size_t len); |
70 virtual size_t ProcessWriteInput(const char* data, size_t len); | 74 virtual size_t ProcessWriteInput(const char* data, size_t len); |
71 virtual bool MessageFullyRead() const; | 75 virtual bool MessageFullyRead() const; |
72 virtual void SetStreamID(uint32 stream_id) {} | 76 virtual void SetStreamID(uint32 stream_id) {} |
73 virtual bool Error() const; | 77 virtual bool Error() const; |
74 virtual const char* ErrorAsString() const; | 78 virtual const char* ErrorAsString() const; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 bool close_on_error_; | 138 bool close_on_error_; |
135 | 139 |
136 static bool disable_data_compression_; | 140 static bool disable_data_compression_; |
137 static std::string forward_ip_header_; | 141 static std::string forward_ip_header_; |
138 }; | 142 }; |
139 | 143 |
140 } // namespace net | 144 } // namespace net |
141 | 145 |
142 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_ | 146 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_ |
143 | 147 |
OLD | NEW |