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

Side by Side Diff: net/tools/quic/spdy_utils.cc

Issue 13741012: Moving net/tools/quic code to net::tools namspace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/quic/spdy_utils.h ('k') | net/tools/quic/test_tools/http_message_test_utils.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/quic/spdy_utils.h" 5 #include "net/tools/quic/spdy_utils.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/string_piece.h" 10 #include "base/string_piece.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "net/spdy/spdy_frame_builder.h" 14 #include "net/spdy/spdy_frame_builder.h"
15 #include "net/spdy/spdy_framer.h" 15 #include "net/spdy/spdy_framer.h"
16 #include "net/spdy/spdy_protocol.h" 16 #include "net/spdy/spdy_protocol.h"
17 #include "net/tools/flip_server/balsa_headers.h" 17 #include "net/tools/flip_server/balsa_headers.h"
18 18
19 using base::StringPiece; 19 using base::StringPiece;
20 using std::pair; 20 using std::pair;
21 using std::string; 21 using std::string;
22 22
23 namespace net { 23 namespace net {
24 namespace tools {
24 25
25 const char* const kV3Host = ":host"; 26 const char* const kV3Host = ":host";
26 const char* const kV3Path = ":path"; 27 const char* const kV3Path = ":path";
27 const char* const kV3Scheme = ":scheme"; 28 const char* const kV3Scheme = ":scheme";
28 const char* const kV3Status = ":status"; 29 const char* const kV3Status = ":status";
29 const char* const kV3Method = ":method"; 30 const char* const kV3Method = ":method";
30 const char* const kV3Version = ":version"; 31 const char* const kV3Version = ":version";
31 32
32 void PopulateSpdyHeaderBlock(const BalsaHeaders& headers, 33 void PopulateSpdyHeaderBlock(const BalsaHeaders& headers,
33 SpdyHeaderBlock* block, 34 SpdyHeaderBlock* block,
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 return false; 240 return false;
240 } 241 }
241 for (BlockIt it = header_block.begin(); it != header_block.end(); ++it) { 242 for (BlockIt it = header_block.begin(); it != header_block.end(); ++it) {
242 if (!IsSpecialSpdyHeader(it, request_headers)) { 243 if (!IsSpecialSpdyHeader(it, request_headers)) {
243 request_headers->AppendHeader(it->first, it->second); 244 request_headers->AppendHeader(it->first, it->second);
244 } 245 }
245 } 246 }
246 return true; 247 return true;
247 } 248 }
248 249
250 } // namespace tools
249 } // namespace net 251 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/spdy_utils.h ('k') | net/tools/quic/test_tools/http_message_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698