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

Side by Side Diff: base/values.cc

Issue 23540009: test IWYU fixups for base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include iterator in a couple more files Created 7 years, 3 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 "base/values.h" 5 #include "base/values.h"
6 6
7 #include <string.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <ostream> 10 #include <ostream>
9 11
10 #include "base/float_util.h" 12 #include "base/float_util.h"
11 #include "base/json/json_writer.h" 13 #include "base/json/json_writer.h"
12 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/move.h"
13 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
15 18
16 namespace base { 19 namespace base {
17 20
18 namespace { 21 namespace {
19 22
20 // Make a deep copy of |node|, but don't include empty lists or dictionaries 23 // Make a deep copy of |node|, but don't include empty lists or dictionaries
21 // in the copy. It's possible for this function to return NULL and it 24 // in the copy. It's possible for this function to return NULL and it
22 // expects |node| to always be non-NULL. 25 // expects |node| to always be non-NULL.
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 1113
1111 std::ostream& operator<<(std::ostream& out, const Value& value) { 1114 std::ostream& operator<<(std::ostream& out, const Value& value) {
1112 std::string json; 1115 std::string json;
1113 JSONWriter::WriteWithOptions(&value, 1116 JSONWriter::WriteWithOptions(&value,
1114 JSONWriter::OPTIONS_PRETTY_PRINT, 1117 JSONWriter::OPTIONS_PRETTY_PRINT,
1115 &json); 1118 &json);
1116 return out << json; 1119 return out << json;
1117 } 1120 }
1118 1121
1119 } // namespace base 1122 } // namespace base
OLDNEW
« no previous file with comments | « base/values.h ('k') | base/version.cc » ('j') | sync/notifier/p2p_invalidator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698