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

Side by Side Diff: chrome/browser/net/chrome_network_delegate.h

Issue 1279543002: Support needed to measure user and service traffic in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewHistogram
Patch Set: Fix few formatting issues. Created 5 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/browser/net/data_use_measurement.h"
16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr ics.h" 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr ics.h"
17 #include "net/base/network_delegate_impl.h" 18 #include "net/base/network_delegate_impl.h"
18 19
19 class ChromeExtensionsNetworkDelegate; 20 class ChromeExtensionsNetworkDelegate;
20 class PrefService; 21 class PrefService;
21 22
22 template<class T> class PrefMember; 23 template<class T> class PrefMember;
23 24
24 typedef PrefMember<bool> BooleanPrefMember; 25 typedef PrefMember<bool> BooleanPrefMember;
25 26
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 193
193 // Weak, owned by our owner. 194 // Weak, owned by our owner.
194 #if defined(ENABLE_CONFIGURATION_POLICY) 195 #if defined(ENABLE_CONFIGURATION_POLICY)
195 const policy::URLBlacklistManager* url_blacklist_manager_; 196 const policy::URLBlacklistManager* url_blacklist_manager_;
196 #endif 197 #endif
197 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_; 198 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_;
198 199
199 // When true, allow access to all file:// URLs. 200 // When true, allow access to all file:// URLs.
200 static bool g_allow_file_access_; 201 static bool g_allow_file_access_;
201 202
203 // Measuring component to measure data use of services.
204 scoped_refptr<DataUseMeasurement> data_use_measurer_;
sclittle 2015/08/19 23:32:39 nit: please either rename the class to DataUseMeas
sclittle 2015/08/19 23:32:39 Also, don't refcount this unless there's a really
amohammadkhan 2015/08/21 23:06:31 Basically I used all the refcounts because of the
amohammadkhan 2015/08/21 23:06:31 Done.
205
202 bool experimental_web_platform_features_enabled_; 206 bool experimental_web_platform_features_enabled_;
203 207
204 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); 208 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
205 }; 209 };
206 210
207 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 211 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698