| Index: content/public/browser/background_tracing_manager.h
|
| diff --git a/content/public/browser/background_tracing_manager.h b/content/public/browser/background_tracing_manager.h
|
| index 75e2d340cd8d46bb96dda3ced749ee7ef25e0acb..8ad6cd874c9a2ab9b979c331c76e1ba7255cfc5f 100644
|
| --- a/content/public/browser/background_tracing_manager.h
|
| +++ b/content/public/browser/background_tracing_manager.h
|
| @@ -5,6 +5,9 @@
|
| #ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_
|
| #define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_
|
|
|
| +#include <map>
|
| +#include <string>
|
| +
|
| #include "base/trace_event/trace_event_impl.h"
|
| #include "base/values.h"
|
| #include "content/common/content_export.h"
|
| @@ -23,13 +26,15 @@ class BackgroundTracingManager {
|
|
|
| // ReceiveCallback will will be called on the UI thread every time the
|
| // BackgroundTracingManager finalizes a trace. The first parameter of
|
| - // this callback is the trace data. The second is a callback to
|
| + // this callback is the trace data. The second is metadata that was
|
| + // generated and embedded into the trace. The third is a callback to
|
| // notify the BackgroundTracingManager that you've finished processing
|
| // the trace data.
|
| //
|
| // Example:
|
| //
|
| - // void Upload(const base::RefCountedString* data,
|
| + // void Upload(const scoped_refptr<base::RefCountedString>& data,
|
| + // const std::map<std::string, std::string>& metadata,
|
| // base::Closure done_callback) {
|
| // BrowserThread::PostTaskAndReply(
|
| // BrowserThread::FILE,
|
| @@ -40,6 +45,7 @@ class BackgroundTracingManager {
|
| // }
|
| //
|
| typedef base::Callback<void(const scoped_refptr<base::RefCountedString>&,
|
| + const std::map<std::string, std::string>&,
|
| base::Closure)> ReceiveCallback;
|
|
|
| // Set the triggering rules for when to start recording.
|
|
|