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

Side by Side Diff: cc/debug/traced_value.h

Issue 882673002: Move tracing namespace from base::debug to base::trace_event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_trace_part1
Patch Set: Edited formatting Created 5 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CC_DEBUG_TRACED_VALUE_H_ 5 #ifndef CC_DEBUG_TRACED_VALUE_H_
6 #define CC_DEBUG_TRACED_VALUE_H_ 6 #define CC_DEBUG_TRACED_VALUE_H_
7 7
8 namespace base { 8 namespace base {
9 namespace debug { 9 namespace trace_event {
10 class TracedValue; 10 class TracedValue;
11 } 11 }
12
13 // This is added temporarily. Once the renaming of namespace usages
14 // accross all folders are done, this will be removed.
15 // TODO(ssid): crrev.com/837303004
16 namespace debug {
17 using ::base::trace_event::TracedValue;
12 } 18 }
19 } // namespace base
13 20
14 namespace cc { 21 namespace cc {
15 22
16 class TracedValue { 23 class TracedValue {
17 public: 24 public:
18 static void AppendIDRef(const void* id, base::debug::TracedValue* array); 25 static void AppendIDRef(const void* id, base::debug::TracedValue* array);
19 static void SetIDRef(const void* id, 26 static void SetIDRef(const void* id,
20 base::debug::TracedValue* dict, 27 base::debug::TracedValue* dict,
21 const char* name); 28 const char* name);
22 static void MakeDictIntoImplicitSnapshot(base::debug::TracedValue* dict, 29 static void MakeDictIntoImplicitSnapshot(base::debug::TracedValue* dict,
23 const char* object_name, 30 const char* object_name,
24 const void* id); 31 const void* id);
25 static void MakeDictIntoImplicitSnapshotWithCategory( 32 static void MakeDictIntoImplicitSnapshotWithCategory(
26 const char* category, 33 const char* category,
27 base::debug::TracedValue* dict, 34 base::debug::TracedValue* dict,
28 const char* object_name, 35 const char* object_name,
29 const void* id); 36 const void* id);
30 static void MakeDictIntoImplicitSnapshotWithCategory( 37 static void MakeDictIntoImplicitSnapshotWithCategory(
31 const char* category, 38 const char* category,
32 base::debug::TracedValue* dict, 39 base::debug::TracedValue* dict,
33 const char* object_base_type_name, 40 const char* object_base_type_name,
34 const char* object_name, 41 const char* object_name,
35 const void* id); 42 const void* id);
36 }; 43 };
37 44
38 } // namespace cc 45 } // namespace cc
39 46
40 #endif // CC_DEBUG_TRACED_VALUE_H_ 47 #endif // CC_DEBUG_TRACED_VALUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698