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

Side by Side Diff: net/tools/balsa/balsa_frame.cc

Issue 25085002: Break out balsa and epoll_server from net/tools/flip_server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 2 months 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/balsa/balsa_frame.h ('k') | net/tools/balsa/balsa_frame_test.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) 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/balsa/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__
11 #include <strings.h> 11 #include <strings.h>
12 12
13 #include <limits> 13 #include <limits>
14 #include <string> 14 #include <string>
15 #include <utility> 15 #include <utility>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/port.h" 19 #include "base/port.h"
20 #include "base/strings/string_piece.h" 20 #include "base/strings/string_piece.h"
21 #include "net/tools/flip_server/balsa_enums.h" 21 #include "net/tools/balsa/balsa_enums.h"
22 #include "net/tools/flip_server/balsa_headers.h" 22 #include "net/tools/balsa/balsa_headers.h"
23 #include "net/tools/flip_server/balsa_visitor_interface.h" 23 #include "net/tools/balsa/balsa_visitor_interface.h"
24 #include "net/tools/flip_server/buffer_interface.h" 24 #include "net/tools/balsa/buffer_interface.h"
25 #include "net/tools/flip_server/simple_buffer.h" 25 #include "net/tools/balsa/simple_buffer.h"
26 #include "net/tools/flip_server/split.h" 26 #include "net/tools/balsa/split.h"
27 #include "net/tools/flip_server/string_piece_utils.h" 27 #include "net/tools/balsa/string_piece_utils.h"
28 28
29 namespace net { 29 namespace net {
30 30
31 // Constants holding some header names for headers which can affect the way the 31 // Constants holding some header names for headers which can affect the way the
32 // HTTP message is framed, and so must be processed specially: 32 // HTTP message is framed, and so must be processed specially:
33 static const char kContentLength[] = "content-length"; 33 static const char kContentLength[] = "content-length";
34 static const size_t kContentLengthSize = sizeof(kContentLength) - 1; 34 static const size_t kContentLengthSize = sizeof(kContentLength) - 1;
35 static const char kTransferEncoding[] = "transfer-encoding"; 35 static const char kTransferEncoding[] = "transfer-encoding";
36 static const size_t kTransferEncodingSize = sizeof(kTransferEncoding) - 1; 36 static const size_t kTransferEncodingSize = sizeof(kTransferEncoding) - 1;
37 37
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « net/tools/balsa/balsa_frame.h ('k') | net/tools/balsa/balsa_frame_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698