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

Unified Diff: base/debug/trace_event.h

Issue 8915024: Retry 114494 - Remove BindStateHolder and have Bind() return a Callback<> object directly." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/cancelable_callback.h ('k') | base/debug/trace_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/trace_event.h
diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h
index 0b3c04c1419ce22b2c2954696d07ad9dfb75c7f9..444c97514dc925ed31f46bbd3f7fdfb04399333b 100644
--- a/base/debug/trace_event.h
+++ b/base/debug/trace_event.h
@@ -789,7 +789,7 @@ class BASE_EXPORT TraceResultBuffer {
// JSON output and during AddFragment and Finish with following JSON output
// chunks. The callback target must live past the last calls to
// TraceResultBuffer::Start/AddFragment/Finish.
- void SetOutputCallback(OutputCallback json_chunk_callback);
+ void SetOutputCallback(const OutputCallback& json_chunk_callback);
// Start JSON output. This resets all internal state, so you can reuse
// the TraceResultBuffer by calling Start.
@@ -856,7 +856,8 @@ class BASE_EXPORT TraceLog {
// undefined. Use TraceResultBuffer to convert one or more trace strings to
// JSON.
typedef RefCountedData<std::string> RefCountedString;
- typedef base::Callback<void(scoped_refptr<RefCountedString>)> OutputCallback;
+ typedef base::Callback<void(const scoped_refptr<RefCountedString>&)>
+ OutputCallback;
void SetOutputCallback(const OutputCallback& cb);
// The trace buffer does not flush dynamically, so when it fills up,
« no previous file with comments | « base/cancelable_callback.h ('k') | base/debug/trace_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698