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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/chrome_network_delegate.h
diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h
index 10ff0dad29eb66d9d86f1b4209dfd2a58b83a261..f7cf41b349048cfc0723b99d1f9a07099b575da0 100644
--- a/chrome/browser/net/chrome_network_delegate.h
+++ b/chrome/browser/net/chrome_network_delegate.h
@@ -13,6 +13,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
+#include "chrome/browser/net/data_use_measurement.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
#include "net/base/network_delegate_impl.h"
@@ -199,6 +200,9 @@ class ChromeNetworkDelegate : public net::NetworkDelegateImpl {
// When true, allow access to all file:// URLs.
static bool g_allow_file_access_;
+ // Measuring component to measure data use of services.
+ 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.
+
bool experimental_web_platform_features_enabled_;
DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);

Powered by Google App Engine
This is Rietveld 408576698