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

Side by Side Diff: net/url_request/data_use_measurement.h

Issue 1273303002: Measuring data use of different ModelTypes in Sync Service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewServices
Patch Set: Updating previous message size in commit 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
« no previous file with comments | « no previous file | net/url_request/data_use_measurement.cc » ('j') | sync/engine/commit.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 NET_URL_REQUEST_DATA_USE_MEASUREMENT_H_ 5 #ifndef NET_URL_REQUEST_DATA_USE_MEASUREMENT_H_
6 #define NET_URL_REQUEST_DATA_USE_MEASUREMENT_H_ 6 #define NET_URL_REQUEST_DATA_USE_MEASUREMENT_H_
7 7
8 namespace net { 8 namespace net {
9 class URLFetcher; 9 class URLFetcher;
10 } // namespace net 10 } // namespace net
11 11
12 // Records the data use of |service_name| based on the information included in 12 // Records the data use of |service_name| based on the information included in
13 // fetcher. Normally used for recording data use of services using URLFetcher. 13 // fetcher. Normally used for recording data use of services using URLFetcher.
14 // After extracting necessary data, such as message size in different 14 // After extracting necessary data, such as message size in different
15 // directions, calls the function to record use in DataUse.Services.{Dimensions} 15 // directions, calls the function to record use in DataUse.Services.{Dimensions}
16 // and DataUse.Service.|service_name| histograms. 16 // and DataUse.Service.|service_name| histograms.
17 void DataUseReport(const std::string& service_name, 17 void DataUseReport(const std::string& service_name,
18 const net::URLFetcher* fetcher); 18 const net::URLFetcher* fetcher);
19 19
20 void SparseDataUseReport(const std::string& histogram_name,
21 int value,
22 int count);
23
20 #endif // NET_URL_REQUEST_DATA_USE_MEASUREMENT_H_ 24 #endif // NET_URL_REQUEST_DATA_USE_MEASUREMENT_H_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/data_use_measurement.cc » ('j') | sync/engine/commit.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698