summaryrefslogtreecommitdiffstats
path: root/cc/debug/traced_value.h
diff options
context:
space:
mode:
authorssid <ssid@chromium.org>2015-02-04 14:20:25 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-04 22:21:26 +0000
commit97c5abba36f5ce473cd996fab74fbf5aa9bb5464 (patch)
treefb6e8d46516ba5a74044147d1281607bf084c0fc /cc/debug/traced_value.h
parent81d5159b4693364739934f8bd698711cd5eca715 (diff)
downloadchromium_src-97c5abba36f5ce473cd996fab74fbf5aa9bb5464.zip
chromium_src-97c5abba36f5ce473cd996fab74fbf5aa9bb5464.tar.gz
chromium_src-97c5abba36f5ce473cd996fab74fbf5aa9bb5464.tar.bz2
Move tracing namespace from base::debug to base::trace_event.
After having transitioned all the tracing headers from base/debug/ to base/trace_event, this CL addresses the namespace move. In principle, this CL should only change the namespace of the base/trace_event files but the namespace used by the tracing clients. In order to achieve this, namespace aliases are appended to the trace_event headers, to make it so that clients can still refer to base::debug::TraceFoo, with that being aliased to base::trace_event::TraceFoo. The upcoming CLs will gradually migrate the clients to use the base::trace_event namespace and will remove the ns aliases. Unfortunately, this CL has also to update few tracing clients, in particular the ones having forward declarations. Forward declarations, in fact, cannot be aliased as the compiler sees them before the alias itself. See crrev.com/837303004 and the related bug for motivations and design doc. BUG=451032 TBR=skyostil@chromium.org,jam@chromium.org Review URL: https://codereview.chromium.org/882673002 Cr-Commit-Position: refs/heads/master@{#314657}
Diffstat (limited to 'cc/debug/traced_value.h')
-rw-r--r--cc/debug/traced_value.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cc/debug/traced_value.h b/cc/debug/traced_value.h
index c5ea30a..db0a08a 100644
--- a/cc/debug/traced_value.h
+++ b/cc/debug/traced_value.h
@@ -6,10 +6,16 @@
#define CC_DEBUG_TRACED_VALUE_H_
namespace base {
-namespace debug {
+namespace trace_event {
class TracedValue;
}
+
+// TODO(ssid): remove these aliases after the tracing clients are moved to the
+// new trace_event namespace. See crbug.com/451032. ETA: March 2015.
+namespace debug {
+using ::base::trace_event::TracedValue;
}
+} // namespace base
namespace cc {