| OLD | NEW |
| 1 // Copyright (c) 2011 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_BALSA_FRAME_H_ | 5 #ifndef NET_TOOLS_BALSA_BALSA_FRAME_H_ |
| 6 #define NET_TOOLS_FLIP_SERVER_BALSA_FRAME_H_ | 6 #define NET_TOOLS_BALSA_BALSA_FRAME_H_ |
| 7 | 7 |
| 8 #include <strings.h> | 8 #include <strings.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/port.h" | 14 #include "base/port.h" |
| 15 #include "net/tools/flip_server/balsa_enums.h" | 15 #include "net/tools/balsa/balsa_enums.h" |
| 16 #include "net/tools/flip_server/balsa_headers.h" | 16 #include "net/tools/balsa/balsa_headers.h" |
| 17 #include "net/tools/flip_server/balsa_visitor_interface.h" | 17 #include "net/tools/balsa/balsa_visitor_interface.h" |
| 18 #include "net/tools/flip_server/buffer_interface.h" | 18 #include "net/tools/balsa/buffer_interface.h" |
| 19 #include "net/tools/flip_server/http_message_constants.h" | 19 #include "net/tools/balsa/http_message_constants.h" |
| 20 #include "net/tools/flip_server/simple_buffer.h" | 20 #include "net/tools/balsa/simple_buffer.h" |
| 21 | 21 |
| 22 // For additional debug output, uncomment the following: | 22 // For additional debug output, uncomment the following: |
| 23 // #define DEBUGFRAMER 1 | 23 // #define DEBUGFRAMER 1 |
| 24 | 24 |
| 25 namespace net { | 25 namespace net { |
| 26 | 26 |
| 27 // BalsaFrame is a 'Model' of a framer (haha). | 27 // BalsaFrame is a 'Model' of a framer (haha). |
| 28 // It exists as a proof of concept headers framer. | 28 // It exists as a proof of concept headers framer. |
| 29 class BalsaFrame { | 29 class BalsaFrame { |
| 30 public: | 30 public: |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 BalsaFrameEnums::ErrorCode last_error_; | 254 BalsaFrameEnums::ErrorCode last_error_; |
| 255 | 255 |
| 256 Lines lines_; | 256 Lines lines_; |
| 257 | 257 |
| 258 BalsaHeaders* headers_; // This is not reset to NULL in Reset(). | 258 BalsaHeaders* headers_; // This is not reset to NULL in Reset(). |
| 259 DoNothingBalsaVisitor do_nothing_visitor_; | 259 DoNothingBalsaVisitor do_nothing_visitor_; |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 } // namespace net | 262 } // namespace net |
| 263 | 263 |
| 264 #endif // NET_TOOLS_FLIP_SERVER_BALSA_FRAME_H_ | 264 #endif // NET_TOOLS_BALSA_BALSA_FRAME_H_ |
| 265 | 265 |
| OLD | NEW |