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

Unified Diff: base/json/json_writer.h

Issue 19642005: Make TracedValue lower overhead. Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: base/json/json_writer.h
diff --git a/base/json/json_writer.h b/base/json/json_writer.h
index 94052c8034321dd28e6adf4699029e287eb93a6f..bd937f13f615ac07ba676037f5e377f1e06fa50c 100644
--- a/base/json/json_writer.h
+++ b/base/json/json_writer.h
@@ -48,6 +48,10 @@ class BASE_EXPORT JSONWriter {
static void WriteWithOptions(const Value* const node, int options,
std::string* json);
+ // Returns a JSON compliant string representation of a double value.
+ static std::string DoubleToFormattedString(double value,
+ bool omit_double_type_preservation);
+
// A static, constant JSON string representing an empty array. Useful
// for empty JSON argument passing.
static const char* kEmptyArray;

Powered by Google App Engine
This is Rietveld 408576698