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

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: Add if defined(ENABLE_EXTENSIONS) to tests. Created 5 years, 3 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr ics.h" 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr ics.h"
19 #include "components/data_use_measurement/content/data_use_measurement.h"
19 #include "net/base/network_delegate_impl.h" 20 #include "net/base/network_delegate_impl.h"
20 21
21 class ChromeExtensionsNetworkDelegate; 22 class ChromeExtensionsNetworkDelegate;
22 class PrefService; 23 class PrefService;
23 24
24 template<class T> class PrefMember; 25 template<class T> class PrefMember;
25 26
26 typedef PrefMember<bool> BooleanPrefMember; 27 typedef PrefMember<bool> BooleanPrefMember;
27 28
28 namespace base { 29 namespace base {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 196
196 // Weak, owned by our owner. 197 // Weak, owned by our owner.
197 #if defined(ENABLE_CONFIGURATION_POLICY) 198 #if defined(ENABLE_CONFIGURATION_POLICY)
198 const policy::URLBlacklistManager* url_blacklist_manager_; 199 const policy::URLBlacklistManager* url_blacklist_manager_;
199 #endif 200 #endif
200 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_; 201 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_;
201 202
202 // When true, allow access to all file:// URLs. 203 // When true, allow access to all file:// URLs.
203 static bool g_allow_file_access_; 204 static bool g_allow_file_access_;
204 205
206 // Measuring component to measure data use of services.
bengr 2015/09/01 17:00:10 // Component to measure data use.
amohammadkhan 2015/09/01 19:38:14 Done.
207 data_use_measurement::DataUseMeasurement data_use_measurement_;
bengr 2015/09/01 17:00:10 Can we call this component 'data_use'? I can imagi
amohammadkhan 2015/09/01 19:38:14 I'll update the name in a followup CL. Even curren
208
205 bool experimental_web_platform_features_enabled_; 209 bool experimental_web_platform_features_enabled_;
206 210
207 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); 211 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
208 }; 212 };
209 213
210 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 214 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698