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

Unified Diff: base/debug/traced_value.cc

Issue 263653002: Move traced_value.* from cc/debug/ to base/debug/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added BASE_EXPORT Created 6 years, 7 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
« no previous file with comments | « base/debug/traced_value.h ('k') | cc/cc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/traced_value.cc
diff --git a/cc/debug/traced_value.cc b/base/debug/traced_value.cc
similarity index 80%
rename from cc/debug/traced_value.cc
rename to base/debug/traced_value.cc
index 3b506ae7e370aa8153f4ac566cb7dfd1fd1c9ca9..4ce3706df619f8cbead9e72df0914b227a29a6e5 100644
--- a/cc/debug/traced_value.cc
+++ b/base/debug/traced_value.cc
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "cc/debug/traced_value.h"
+#include "base/debug/traced_value.h"
#include "base/json/json_writer.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
-namespace cc {
+namespace base {
+namespace debug {
scoped_ptr<base::Value> TracedValue::CreateIDRef(const void* id) {
scoped_ptr<base::DictionaryValue> res(new base::DictionaryValue());
@@ -16,8 +17,9 @@ scoped_ptr<base::Value> TracedValue::CreateIDRef(const void* id) {
return res.PassAs<base::Value>();
}
-void TracedValue::MakeDictIntoImplicitSnapshot(
- base::DictionaryValue* dict, const char* object_name, const void* id) {
+void TracedValue::MakeDictIntoImplicitSnapshot(base::DictionaryValue* dict,
+ const char* object_name,
+ const void* id) {
dict->SetString("id", base::StringPrintf("%s/%p", object_name, id));
}
@@ -47,8 +49,7 @@ scoped_refptr<base::debug::ConvertableToTraceFormat> TracedValue::FromValue(
new TracedValue(value));
}
-TracedValue::TracedValue(base::Value* value)
- : value_(value) {
+TracedValue::TracedValue(base::Value* value) : value_(value) {
}
TracedValue::~TracedValue() {
@@ -60,4 +61,5 @@ void TracedValue::AppendAsTraceFormat(std::string* out) const {
*out += tmp;
}
-} // namespace cc
+} // namespace debug
+} // namespace base
« no previous file with comments | « base/debug/traced_value.h ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698