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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/data_usage/core/data_use.h"
6
7 namespace data_usage {
8
9 DataUse::DataUse(const GURL& url,
10 const base::Time& request_time,
11 const GURL& first_party_for_cookies,
12 int32_t tab_id,
13 net::NetworkChangeNotifier::ConnectionType connection_type,
14 int64_t tx_bytes,
15 int64_t rx_bytes)
16 : url(url),
17 request_time(request_time),
18 first_party_for_cookies(first_party_for_cookies),
19 tab_id(tab_id),
20 connection_type(connection_type),
21 tx_bytes(tx_bytes),
22 rx_bytes(rx_bytes) {}
23
24 } // namespace data_usage
OLDNEW
« 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