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 #include "net/tools/flip_server/balsa_frame.h" | 5 #include "net/tools/flip_server/balsa_frame.h" |
6 | 6 |
7 #include <assert.h> | 7 #include <assert.h> |
8 #if __SSE2__ | 8 #if __SSE2__ |
9 #include <emmintrin.h> | 9 #include <emmintrin.h> |
10 #endif // __SSE2__ | 10 #endif // __SSE2__ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 last_error_ = BalsaFrameEnums::NO_ERROR; | 78 last_error_ = BalsaFrameEnums::NO_ERROR; |
79 lines_.clear(); | 79 lines_.clear(); |
80 if (headers_ != NULL) { | 80 if (headers_ != NULL) { |
81 headers_->Clear(); | 81 headers_->Clear(); |
82 } | 82 } |
83 } | 83 } |
84 | 84 |
85 const char* BalsaFrameEnums::ParseStateToString( | 85 const char* BalsaFrameEnums::ParseStateToString( |
86 BalsaFrameEnums::ParseState error_code) { | 86 BalsaFrameEnums::ParseState error_code) { |
87 switch (error_code) { | 87 switch (error_code) { |
88 case ERROR: | 88 case PARSE_ERROR: |
89 return "ERROR"; | 89 return "PARSE_ERROR"; |
90 case READING_HEADER_AND_FIRSTLINE: | 90 case READING_HEADER_AND_FIRSTLINE: |
91 return "READING_HEADER_AND_FIRSTLINE"; | 91 return "READING_HEADER_AND_FIRSTLINE"; |
92 case READING_CHUNK_LENGTH: | 92 case READING_CHUNK_LENGTH: |
93 return "READING_CHUNK_LENGTH"; | 93 return "READING_CHUNK_LENGTH"; |
94 case READING_CHUNK_EXTENSION: | 94 case READING_CHUNK_EXTENSION: |
95 return "READING_CHUNK_EXTENSION"; | 95 return "READING_CHUNK_EXTENSION"; |
96 case READING_CHUNK_DATA: | 96 case READING_CHUNK_DATA: |
97 return "READING_CHUNK_DATA"; | 97 return "READING_CHUNK_DATA"; |
98 case READING_CHUNK_TERM: | 98 case READING_CHUNK_TERM: |
99 return "READING_CHUNK_TERM"; | 99 return "READING_CHUNK_TERM"; |
(...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1588 #endif // DEBUGFRAMER | 1588 #endif // DEBUGFRAMER |
1589 return current - input; | 1589 return current - input; |
1590 } | 1590 } |
1591 | 1591 |
1592 const uint32 BalsaFrame::kValidTerm1; | 1592 const uint32 BalsaFrame::kValidTerm1; |
1593 const uint32 BalsaFrame::kValidTerm1Mask; | 1593 const uint32 BalsaFrame::kValidTerm1Mask; |
1594 const uint32 BalsaFrame::kValidTerm2; | 1594 const uint32 BalsaFrame::kValidTerm2; |
1595 const uint32 BalsaFrame::kValidTerm2Mask; | 1595 const uint32 BalsaFrame::kValidTerm2Mask; |
1596 | 1596 |
1597 } // namespace net | 1597 } // namespace net |
OLD | NEW |