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

Side by Side Diff: net/spdy/spdy_header_block.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 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
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/spdy/spdy_header_block.h" 5 #include "net/spdy/spdy_header_block.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "net/base/arena.h" 15 #include "net/base/arena.h"
16 #include "net/http/http_log_util.h" 16 #include "net/http/http_log_util.h"
17 #include "net/log/net_log_capture_mode.h"
17 18
18 using base::StringPiece; 19 using base::StringPiece;
19 using std::dec; 20 using std::dec;
20 using std::hex; 21 using std::hex;
21 using std::max; 22 using std::max;
22 using std::min; 23 using std::min;
23 using std::string; 24 using std::string;
24 25
25 namespace net { 26 namespace net {
26 namespace { 27 namespace {
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 if (!it.value().GetAsString(&value)) { 293 if (!it.value().GetAsString(&value)) {
293 headers->clear(); 294 headers->clear();
294 return false; 295 return false;
295 } 296 }
296 (*headers)[it.key()] = value; 297 (*headers)[it.key()] = value;
297 } 298 }
298 return true; 299 return true;
299 } 300 }
300 301
301 } // namespace net 302 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698