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

Side by Side Diff: content/public/browser/background_tracing_upload_sink.h

Issue 1089253003: Re-land first pass BackgroundTracingManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review changes. Created 5 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_UPLOAD_SINK_H_
6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_UPLOAD_SINK_H_
7
8 #include "base/memory/ref_counted_memory.h"
9 #include "base/trace_event/trace_event_impl.h"
10 #include "content/common/content_export.h"
11
12 namespace content {
13
14 // Interface for trace data consumer. An implementation of this interface
15 // is passed to SetActiveScenario() and receives the trace data.
16 // This may happen on any thread.
17 class BackgroundTracingUploadSink
18 : public base::RefCountedThreadSafe<BackgroundTracingUploadSink> {
no sievers 2015/05/19 19:52:22 So this is for the embedder to implement? Being Re
shatch 2015/05/20 18:23:16 Spoke offline, liked your suggestion to just boil
19 public:
20 virtual void Upload(const std::string& contents,
21 base::Callback<void()> done_callback) = 0;
22 virtual bool RequiresAnonymizedData() const = 0;
23
24 protected:
25 friend class base::RefCountedThreadSafe<BackgroundTracingUploadSink>;
26 virtual ~BackgroundTracingUploadSink() {}
27 };
28
29 } // namespace content
30
31 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_UPLOAD_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698