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

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

Issue 536503002: Add NESTABLE_ASYNC APIs to Tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add BASE_EXPORT on EnabledStateObserver Created 6 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
« base/debug/trace_event.h ('K') | « base/debug/trace_event.h ('k') | no next file » | 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 <stack> 9 #include <stack>
10 #include <string> 10 #include <string>
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 486
487 #if defined(OS_ANDROID) 487 #if defined(OS_ANDROID)
488 void StartATrace(); 488 void StartATrace();
489 void StopATrace(); 489 void StopATrace();
490 void AddClockSyncMetadataEvent(); 490 void AddClockSyncMetadataEvent();
491 #endif 491 #endif
492 492
493 // Enabled state listeners give a callback when tracing is enabled or 493 // Enabled state listeners give a callback when tracing is enabled or
494 // disabled. This can be used to tie into other library's tracing systems 494 // disabled. This can be used to tie into other library's tracing systems
495 // on-demand. 495 // on-demand.
496 class EnabledStateObserver { 496 class BASE_EXPORT EnabledStateObserver {
nduca 2014/09/08 22:21:13 why? this should be a separate CL
xunjieli 2014/09/09 13:31:19 Done.
497 public: 497 public:
498 // Called just after the tracing system becomes enabled, outside of the 498 // Called just after the tracing system becomes enabled, outside of the
499 // |lock_|. TraceLog::IsEnabled() is true at this point. 499 // |lock_|. TraceLog::IsEnabled() is true at this point.
500 virtual void OnTraceLogEnabled() = 0; 500 virtual void OnTraceLogEnabled() = 0;
501 501
502 // Called just after the tracing system disables, outside of the |lock_|. 502 // Called just after the tracing system disables, outside of the |lock_|.
503 // TraceLog::IsEnabled() is false at this point. 503 // TraceLog::IsEnabled() is false at this point.
504 virtual void OnTraceLogDisabled() = 0; 504 virtual void OnTraceLogDisabled() = 0;
505 }; 505 };
506 void AddEnabledStateObserver(EnabledStateObserver* listener); 506 void AddEnabledStateObserver(EnabledStateObserver* listener);
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 scoped_refptr<MessageLoopProxy> flush_message_loop_proxy_; 811 scoped_refptr<MessageLoopProxy> flush_message_loop_proxy_;
812 subtle::AtomicWord generation_; 812 subtle::AtomicWord generation_;
813 813
814 DISALLOW_COPY_AND_ASSIGN(TraceLog); 814 DISALLOW_COPY_AND_ASSIGN(TraceLog);
815 }; 815 };
816 816
817 } // namespace debug 817 } // namespace debug
818 } // namespace base 818 } // namespace base
819 819
820 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ 820 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_
OLDNEW
« base/debug/trace_event.h ('K') | « base/debug/trace_event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698