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

Unified Diff: chrome/browser/page_load_metrics/metrics_web_contents_observer.h

Issue 2833523002: Adding opt out and previews type information to DRP pingback (Closed)
Patch Set: bengr comments Created 3 years, 8 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
Index: chrome/browser/page_load_metrics/metrics_web_contents_observer.h
diff --git a/chrome/browser/page_load_metrics/metrics_web_contents_observer.h b/chrome/browser/page_load_metrics/metrics_web_contents_observer.h
index f9e958702bcd34efc90548c611844af484391cc6..309685452a9246bb1e0ff5d4d38f2e13721194b1 100644
--- a/chrome/browser/page_load_metrics/metrics_web_contents_observer.h
+++ b/chrome/browser/page_load_metrics/metrics_web_contents_observer.h
@@ -13,6 +13,7 @@
#include "base/time/time.h"
#include "chrome/browser/page_load_metrics/page_load_metrics_observer.h"
#include "chrome/common/page_load_metrics/page_load_timing.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
@@ -76,13 +77,15 @@ class MetricsWebContentsObserver
// A resource request completed on the IO thread. This method is invoked on
// the UI thread.
- void OnRequestComplete(const content::GlobalRequestID& request_id,
- content::ResourceType resource_type,
- bool was_cached,
- bool used_data_reduction_proxy,
- int64_t raw_body_bytes,
- int64_t original_content_length,
- base::TimeTicks creation_time);
+ void OnRequestComplete(
+ const content::GlobalRequestID& request_id,
+ content::ResourceType resource_type,
+ bool was_cached,
+ std::unique_ptr<data_reduction_proxy::DataReductionProxyData>
+ data_reduction_proxy_data,
+ int64_t raw_body_bytes,
+ int64_t original_content_length,
+ base::TimeTicks creation_time);
// Invoked on navigations where a navigation delay was added by the
// DelayNavigationThrottle. This is a temporary method that will be removed

Powered by Google App Engine
This is Rietveld 408576698