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

Side by Side Diff: base/logging_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: ToT 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
« no previous file with comments | « base/linux_util.cc ('k') | base/logging_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef BASE_LOGGING_WIN_H_ 5 #ifndef BASE_LOGGING_WIN_H_
6 #define BASE_LOGGING_WIN_H_ 6 #define BASE_LOGGING_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/win/event_trace_provider.h" 12 #include "base/win/event_trace_provider.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 14
15 namespace base {
15 template <typename Type> 16 template <typename Type>
16 struct StaticMemorySingletonTraits; 17 struct StaticMemorySingletonTraits;
18 } // namespace base
17 19
18 namespace logging { 20 namespace logging {
19 21
20 // Event ID for the log messages we generate. 22 // Event ID for the log messages we generate.
21 EXTERN_C BASE_EXPORT const GUID kLogEventId; 23 EXTERN_C BASE_EXPORT const GUID kLogEventId;
22 24
23 // Feature enable mask for LogEventProvider. 25 // Feature enable mask for LogEventProvider.
24 enum LogEnableMask { 26 enum LogEnableMask {
25 // If this bit is set in our provider enable mask, we will include 27 // If this bit is set in our provider enable mask, we will include
26 // a stack trace with every log message. 28 // a stack trace with every log message.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void OnEventsEnabled() override; 66 void OnEventsEnabled() override;
65 void OnEventsDisabled() override; 67 void OnEventsDisabled() override;
66 68
67 private: 69 private:
68 LogEventProvider(); 70 LogEventProvider();
69 71
70 // The log severity prior to OnEventsEnabled, 72 // The log severity prior to OnEventsEnabled,
71 // restored in OnEventsDisabled. 73 // restored in OnEventsDisabled.
72 logging::LogSeverity old_log_level_; 74 logging::LogSeverity old_log_level_;
73 75
74 friend struct StaticMemorySingletonTraits<LogEventProvider>; 76 friend struct base::StaticMemorySingletonTraits<LogEventProvider>;
75 DISALLOW_COPY_AND_ASSIGN(LogEventProvider); 77 DISALLOW_COPY_AND_ASSIGN(LogEventProvider);
76 }; 78 };
77 79
78 } // namespace logging 80 } // namespace logging
79 81
80 #endif // BASE_LOGGING_WIN_H_ 82 #endif // BASE_LOGGING_WIN_H_
OLDNEW
« no previous file with comments | « base/linux_util.cc ('k') | base/logging_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698