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

Side by Side Diff: base/trace_event/trace_event_win.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add \n Created 5 years, 3 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 (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 // This file contains the Windows-specific declarations for trace_event.h. 5 // This file contains the Windows-specific declarations for trace_event.h.
6 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_ 6 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_
7 #define BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_ 7 #define BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/base_export.h" 11 #include "base/base_export.h"
12 #include "base/trace_event/trace_event.h" 12 #include "base/trace_event/trace_event.h"
13 #include "base/win/event_trace_provider.h" 13 #include "base/win/event_trace_provider.h"
14 14
15 // Fwd. 15 // Fwd.
danakj 2015/09/01 20:55:13 put this comment on the forward decl or remove it
16
17 namespace base {
18
16 template <typename Type> 19 template <typename Type>
17 struct StaticMemorySingletonTraits; 20 struct StaticMemorySingletonTraits;
18 21
19 namespace base {
20 namespace trace_event { 22 namespace trace_event {
21 23
22 // This EtwTraceProvider subclass implements ETW logging 24 // This EtwTraceProvider subclass implements ETW logging
23 // for the macros above on Windows. 25 // for the macros above on Windows.
24 class BASE_EXPORT TraceEventETWProvider : public base::win::EtwTraceProvider { 26 class BASE_EXPORT TraceEventETWProvider : public base::win::EtwTraceProvider {
25 public: 27 public:
26 static const size_t kUseStrlen = static_cast<size_t>(-1); 28 static const size_t kUseStrlen = static_cast<size_t>(-1);
27 29
28 // Start logging trace events. 30 // Start logging trace events.
29 // This is a noop in this implementation. 31 // This is a noop in this implementation.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // The "name" string as a zero-terminated ASCII string. 118 // The "name" string as a zero-terminated ASCII string.
117 // The id pointer in the machine bitness. 119 // The id pointer in the machine bitness.
118 // The "extra" string as a zero-terminated ASCII string. 120 // The "extra" string as a zero-terminated ASCII string.
119 // Optionally the stack trace, consisting of a DWORD "depth", followed 121 // Optionally the stack trace, consisting of a DWORD "depth", followed
120 // by an array of void* (machine bitness) of length "depth". 122 // by an array of void* (machine bitness) of length "depth".
121 123
122 } // namespace trace_event 124 } // namespace trace_event
123 } // namespace base 125 } // namespace base
124 126
125 #endif // BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_ 127 #endif // BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698