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

Unified Diff: components/data_usage/core/data_use.cc

Issue 1373373002: Create component to expose network usage stats to consumers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/data_usage/core/data_use.h ('k') | components/data_usage/core/data_use_aggregator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_usage/core/data_use.cc
diff --git a/components/data_usage/core/data_use.cc b/components/data_usage/core/data_use.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f19262ef54c9f1557ab641b657d6a5136529cdaa
--- /dev/null
+++ b/components/data_usage/core/data_use.cc
@@ -0,0 +1,24 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/data_usage/core/data_use.h"
+
+namespace data_usage {
+
+DataUse::DataUse(const GURL& url,
+ const base::Time& request_time,
+ const GURL& first_party_for_cookies,
+ int32_t tab_id,
+ net::NetworkChangeNotifier::ConnectionType connection_type,
+ int64_t tx_bytes,
+ int64_t rx_bytes)
+ : url(url),
+ request_time(request_time),
+ first_party_for_cookies(first_party_for_cookies),
+ tab_id(tab_id),
+ connection_type(connection_type),
+ tx_bytes(tx_bytes),
+ rx_bytes(rx_bytes) {}
+
+} // namespace data_usage
« no previous file with comments | « components/data_usage/core/data_use.h ('k') | components/data_usage/core/data_use_aggregator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698