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

Side by Side Diff: components/data_reduction_proxy/core/common/lofi_decider.h

Issue 2873793002: Record Data Savings for Client-Side LoFi (Closed)
Patch Set: fix crash in DRPNetworkDelegate when lofi_ui_service is null. Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CORE_BROWSER_LOFI_DECIDER_H_ 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_LOFI_DECIDER_H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_LOFI_DECIDER_H_ 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_LOFI_DECIDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 net::HttpRequestHeaders* headers) const = 0; 60 net::HttpRequestHeaders* headers) const = 0;
61 61
62 // Returns true if the Lo-Fi specific UMA should be recorded. It is set to 62 // Returns true if the Lo-Fi specific UMA should be recorded. It is set to
63 // true if Lo-Fi is enabled for |request|, Chrome session is in Lo-Fi 63 // true if Lo-Fi is enabled for |request|, Chrome session is in Lo-Fi
64 // Enabled or Control field trial, and the network quality was slow. 64 // Enabled or Control field trial, and the network quality was slow.
65 virtual bool ShouldRecordLoFiUMA(const net::URLRequest& request) const = 0; 65 virtual bool ShouldRecordLoFiUMA(const net::URLRequest& request) const = 0;
66 66
67 // Returns whether the request was a client-side Lo-Fi image request. 67 // Returns whether the request was a client-side Lo-Fi image request.
68 virtual bool IsClientLoFiImageRequest( 68 virtual bool IsClientLoFiImageRequest(
69 const net::URLRequest& request) const = 0; 69 const net::URLRequest& request) const = 0;
70
71 // Returns true if the request is for a client-side Lo-Fi image that is being
72 // automatically reloaded because of a decoding error.
73 virtual bool IsClientLoFiAutoReloadRequest(
74 const net::URLRequest& request) const = 0;
70 }; 75 };
71 76
72 } // namespace data_reduction_proxy 77 } // namespace data_reduction_proxy
73 78
74 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_LOFI_DECIDER_H_ 79 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_LOFI_DECIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698