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

Unified Diff: content/browser/tracing/tracing_ui.h

Issue 2948033004: Add a second format to the tracing json/begin_recording endpoint. (Closed)
Patch Set: fix gn config. Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/tracing/tracing_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/tracing_ui.h
diff --git a/content/browser/tracing/tracing_ui.h b/content/browser/tracing/tracing_ui.h
index fdbe0c197f9a7807c6a104e1def09694d7f69cc6..0565a02c04ce0545f0ac42dc62c2db46c4baa8f6 100644
--- a/content/browser/tracing/tracing_ui.h
+++ b/content/browser/tracing/tracing_ui.h
@@ -15,6 +15,12 @@
#include "content/public/browser/trace_uploader.h"
#include "content/public/browser/web_ui_controller.h"
+namespace base {
+namespace trace_event {
+class TraceConfig;
+} // namespace trace_event
+} // namespace base
+
namespace content {
class TracingDelegate;
@@ -24,6 +30,11 @@ class CONTENT_EXPORT TracingUI : public WebUIController {
public:
explicit TracingUI(WebUI* web_ui);
~TracingUI() override;
+
+ // Public for testing.
+ static bool GetTracingOptions(const std::string& data64,
+ base::trace_event::TraceConfig* trace_config);
+
void OnTraceUploadProgress(int64_t current, int64_t total);
void OnTraceUploadComplete(bool success, const std::string& feedback);
« no previous file with comments | « no previous file | content/browser/tracing/tracing_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698