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

Side by Side Diff: base/debug/trace_event_impl.h

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 4 Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/system_modal_container_event_filter_delegate.h ('k') | base/prefs/pref_observer.h » ('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 5
6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_ 6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_
7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_ 7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 #if defined(OS_ANDROID) 211 #if defined(OS_ANDROID)
212 static void InitATrace(); 212 static void InitATrace();
213 #endif 213 #endif
214 214
215 // Enabled state listeners give a callback when tracing is enabled or 215 // Enabled state listeners give a callback when tracing is enabled or
216 // disabled. This can be used to tie into other library's tracing systems 216 // disabled. This can be used to tie into other library's tracing systems
217 // on-demand. 217 // on-demand.
218 class EnabledStateChangedObserver { 218 class EnabledStateChangedObserver {
219 public: 219 public:
220 virtual ~EnabledStateChangedObserver() { }
221
220 // Called just before the tracing system becomes 222 // Called just before the tracing system becomes
221 // enabled. TraceLog::IsEnabled will return false at this point and trace 223 // enabled. TraceLog::IsEnabled will return false at this point and trace
222 // macros and methods called within the observer will deadlock. 224 // macros and methods called within the observer will deadlock.
223 virtual void OnTraceLogWillEnable() { } 225 virtual void OnTraceLogWillEnable() { }
224 226
225 // Called just before the tracing system disables. TraceLog::IsEnabled is 227 // Called just before the tracing system disables. TraceLog::IsEnabled is
226 // still false at this point TRACE macros will still be capturing 228 // still false at this point TRACE macros will still be capturing
227 // data. However, trace macros and methods called within the observer will 229 // data. However, trace macros and methods called within the observer will
228 // deadlock. 230 // deadlock.
229 virtual void OnTraceLogWillDisable() { } 231 virtual void OnTraceLogWillDisable() { }
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 const unsigned char* watch_category_; 389 const unsigned char* watch_category_;
388 std::string watch_event_name_; 390 std::string watch_event_name_;
389 391
390 DISALLOW_COPY_AND_ASSIGN(TraceLog); 392 DISALLOW_COPY_AND_ASSIGN(TraceLog);
391 }; 393 };
392 394
393 } // namespace debug 395 } // namespace debug
394 } // namespace base 396 } // namespace base
395 397
396 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ 398 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_
OLDNEW
« no previous file with comments | « ash/wm/system_modal_container_event_filter_delegate.h ('k') | base/prefs/pref_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698