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

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

Issue 2933483005: gzip chrome://tracing resources. (Closed)
Patch Set: add begin_recording to gzip excluded paths and alphabetize. 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 | « content/browser/tracing/generate_trace_viewer_grd.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/tracing_ui.cc
diff --git a/content/browser/tracing/tracing_ui.cc b/content/browser/tracing/tracing_ui.cc
index 7943d902f083f3e4044cf5f92b32e5397427a49e..3e213e73e5b20f3314a928e507c40e7009264918 100644
--- a/content/browser/tracing/tracing_ui.cc
+++ b/content/browser/tracing/tracing_ui.cc
@@ -240,6 +240,13 @@ TracingUI::TracingUI(WebUI* web_ui)
web_ui->GetWebContents()->GetBrowserContext();
WebUIDataSource* source = WebUIDataSource::Create(kChromeUITracingHost);
+ std::unordered_set<std::string> exclusions;
+ exclusions.insert("json/begin_recording");
+ exclusions.insert("json/categories");
+ exclusions.insert("json/end_recording_compressed");
+ exclusions.insert("json/get_buffer_percent_full");
+ exclusions.insert("json/get_buffer_status");
+ source->UseGzip(exclusions);
source->SetJsonPath("strings.js");
source->SetDefaultResource(IDR_TRACING_HTML);
source->AddResourcePath("tracing.js", IDR_TRACING_JS);
« no previous file with comments | « content/browser/tracing/generate_trace_viewer_grd.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698