OLD | NEW |
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 "chromeos/network/network_event_log.h" | 5 #include "chromeos/network/network_event_log.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/stringprintf.h" | |
15 #include "base/strings/string_tokenizer.h" | 14 #include "base/strings/string_tokenizer.h" |
| 15 #include "base/strings/stringprintf.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "net/base/escape.h" | 18 #include "net/base/escape.h" |
19 | 19 |
20 namespace chromeos { | 20 namespace chromeos { |
21 namespace network_event_log { | 21 namespace network_event_log { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 class NetworkEventLog; | 25 class NetworkEventLog; |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 327 |
328 std::string ValueAsString(const base::Value& value) { | 328 std::string ValueAsString(const base::Value& value) { |
329 std::string vstr; | 329 std::string vstr; |
330 base::JSONWriter::WriteWithOptions( | 330 base::JSONWriter::WriteWithOptions( |
331 &value, base::JSONWriter::OPTIONS_OMIT_BINARY_VALUES, &vstr); | 331 &value, base::JSONWriter::OPTIONS_OMIT_BINARY_VALUES, &vstr); |
332 return vstr.empty() ? "''" : vstr; | 332 return vstr.empty() ? "''" : vstr; |
333 } | 333 } |
334 | 334 |
335 } // namespace network_event_log | 335 } // namespace network_event_log |
336 } // namespace chromeos | 336 } // namespace chromeos |
OLD | NEW |