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

Side by Side Diff: components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove incorrect DCHECK from drp_statistics_prefs.cc Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_METRICS_H_ 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_METRICS_H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_METRICS_H_ 6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_METRICS_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 9
10 namespace net { 10 namespace net {
11 class URLRequest; 11 class URLRequest;
12 } 12 }
13 13
14 class PrefService;
15
14 namespace data_reduction_proxy { 16 namespace data_reduction_proxy {
15 17
16 class DataReductionProxyStatisticsPrefs; 18 class DataReductionProxyStatisticsPrefs;
17 19
18 enum DataReductionProxyRequestType { 20 enum DataReductionProxyRequestType {
19 VIA_DATA_REDUCTION_PROXY, // A request served by the data reduction proxy. 21 VIA_DATA_REDUCTION_PROXY, // A request served by the data reduction proxy.
20 22
21 // Below are reasons why a request is not served by the enabled data reduction 23 // Below are reasons why a request is not served by the enabled data reduction
22 // proxy. Off-the-record profile data is not counted in all cases. 24 // proxy. Off-the-record profile data is not counted in all cases.
23 HTTPS, // An https request. 25 HTTPS, // An https request.
(...skipping 22 matching lines...) Expand all
46 int original_content_length, 48 int original_content_length,
47 bool with_data_reduction_proxy_enabled, 49 bool with_data_reduction_proxy_enabled,
48 DataReductionProxyRequestType request_type, 50 DataReductionProxyRequestType request_type,
49 base::Time now, 51 base::Time now,
50 DataReductionProxyStatisticsPrefs* prefs); 52 DataReductionProxyStatisticsPrefs* prefs);
51 53
52 // Records daily data savings statistics to prefs and reports data savings UMA. 54 // Records daily data savings statistics to prefs and reports data savings UMA.
53 void UpdateContentLengthPrefs( 55 void UpdateContentLengthPrefs(
54 int received_content_length, 56 int received_content_length,
55 int original_content_length, 57 int original_content_length,
56 bool with_data_reduction_proxy_enabled, 58 PrefService* profile_prefs,
57 DataReductionProxyRequestType request_type, 59 DataReductionProxyRequestType request_type,
58 DataReductionProxyStatisticsPrefs* prefs); 60 DataReductionProxyStatisticsPrefs* prefs);
59 61
60 } // namespace data_reduction_proxy 62 } // namespace data_reduction_proxy
61 63
62 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_METRICS_ H_ 64 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_METRICS_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698