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

Unified Diff: components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h

Issue 1140443002: Modify IPC call to properly record the PLT histograms for LoFi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed minor typo in test 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h
diff --git a/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h b/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h
index e9ede87d8d6e4407ea1d8d2d7c2a51dda9cbe259..e4595b7a1a89193b0c80f83a1e8866fadd876fdc 100644
--- a/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h
+++ b/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h
@@ -6,6 +6,7 @@
#define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_DATA_REDUCTION_PROXY_MESSAGE_FILTER_H_
#include "base/macros.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h"
#include "content/public/browser/browser_message_filter.h"
namespace net {
@@ -14,7 +15,6 @@ class HostPortPair;
namespace data_reduction_proxy {
-class DataReductionProxyConfig;
class DataReductionProxySettings;
// An IPC listener to handle DataReductionProxy IPC messages from the renderer.
@@ -24,10 +24,12 @@ class DataReductionProxyMessageFilter
// |settings| may be null.
DataReductionProxyMessageFilter(DataReductionProxySettings* settings);
- // Sets |response| to true if the |proxy_server| corresponds to a Data
- // Reduction Proxy.
- void OnIsDataReductionProxy(const net::HostPortPair& proxy_server,
- bool* response);
+ // Sets |is_data_reduction_proxy| to true if the |proxy_server| corresponds to
+ // a Data Reduction Proxy.
+ // Sets |lofi_response| to the current status of the LoFi.
+ void OnDataReductionProxyStatus(const net::HostPortPair& proxy_server,
+ bool* is_data_reduction_proxy,
+ AutoLoFiStatus* lofi_status);
private:
~DataReductionProxyMessageFilter() override;

Powered by Google App Engine
This is Rietveld 408576698