Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |