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

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

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_USAGE_STATS _H_ 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_USAGE_STATS _H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_USAGE_STATS _H_ 6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_USAGE_STATS _H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/prefs/pref_member.h" 10 #include "base/prefs/pref_member.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const BooleanPrefMember& data_reduction_proxy_enabled, 102 const BooleanPrefMember& data_reduction_proxy_enabled,
103 const net::ProxyConfig& data_reduction_proxy_config); 103 const net::ProxyConfig& data_reduction_proxy_config);
104 104
105 // Records UMA of the number of response bytes of responses that are expected 105 // Records UMA of the number of response bytes of responses that are expected
106 // to have the data reduction proxy via header, but where the data reduction 106 // to have the data reduction proxy via header, but where the data reduction
107 // proxy via header is not present. 107 // proxy via header is not present.
108 void RecordMissingViaHeaderBytes(net::URLRequest* request); 108 void RecordMissingViaHeaderBytes(net::URLRequest* request);
109 109
110 // NetworkChangeNotifier::NetworkChangeObserver: 110 // NetworkChangeNotifier::NetworkChangeObserver:
111 virtual void OnNetworkChanged( 111 virtual void OnNetworkChanged(
112 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; 112 net::NetworkChangeNotifier::ConnectionType type) override;
113 113
114 // Called when request counts change. Resets counts if they exceed thresholds, 114 // Called when request counts change. Resets counts if they exceed thresholds,
115 // and calls MaybeNotifyUnavailability otherwise. 115 // and calls MaybeNotifyUnavailability otherwise.
116 void OnRequestCountChanged(); 116 void OnRequestCountChanged();
117 117
118 // Clears request counts unconditionally. 118 // Clears request counts unconditionally.
119 void ClearRequestCounts(); 119 void ClearRequestCounts();
120 120
121 // Checks if the availability status of the data reduction proxy has changed, 121 // Checks if the availability status of the data reduction proxy has changed,
122 // and notifies the UIThread via NotifyUnavailabilityOnUIThread if so. The 122 // and notifies the UIThread via NotifyUnavailabilityOnUIThread if so. The
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // Called when the unavailability status has changed. Runs on the UI thread. 160 // Called when the unavailability status has changed. Runs on the UI thread.
161 base::Callback<void(bool)> unavailable_callback_; 161 base::Callback<void(bool)> unavailable_callback_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyUsageStats); 163 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyUsageStats);
164 }; 164 };
165 165
166 } // namespace data_reduction_proxy 166 } // namespace data_reduction_proxy
167 167
168 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_USAGE_ST ATS_H_ 168 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_USAGE_ST ATS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698