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

Side by Side Diff: content/browser/download/download_stats.h

Issue 2593183002: [downloads] Remove DownloadManager::RemoveAllDownloads. (Closed)
Patch Set: Fix SavePageBrowsertest Created 4 years 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 // Holds helpers for gathering UMA stats about downloads. 5 // Holds helpers for gathering UMA stats about downloads.
6 6
7 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ 7 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
8 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ 8 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void RecordOpen(const base::Time& end, bool first); 185 void RecordOpen(const base::Time& end, bool first);
186 186
187 // Record whether or not the server accepts ranges, and the download size. Also 187 // Record whether or not the server accepts ranges, and the download size. Also
188 // counts if a strong validator is supplied. The combination of range request 188 // counts if a strong validator is supplied. The combination of range request
189 // support and ETag indicates downloads that are candidates for partial 189 // support and ETag indicates downloads that are candidates for partial
190 // resumption. 190 // resumption.
191 void RecordAcceptsRanges(const std::string& accepts_ranges, 191 void RecordAcceptsRanges(const std::string& accepts_ranges,
192 int64_t download_len, 192 int64_t download_len,
193 bool has_strong_validator); 193 bool has_strong_validator);
194 194
195 // Record the number of downloads removed by ClearAll.
196 void RecordClearAllSize(int size);
197
198 // Record the number of completed unopened downloads when a download is opened. 195 // Record the number of completed unopened downloads when a download is opened.
199 void RecordOpensOutstanding(int size); 196 void RecordOpensOutstanding(int size);
200 197
201 // Record how long we block the file thread at a time. 198 // Record how long we block the file thread at a time.
202 void RecordContiguousWriteTime(base::TimeDelta time_blocked); 199 void RecordContiguousWriteTime(base::TimeDelta time_blocked);
203 200
204 // Record the percentage of time we had to block the network (i.e. 201 // Record the percentage of time we had to block the network (i.e.
205 // how often, for each download, something other than the network 202 // how often, for each download, something other than the network
206 // was the bottleneck). 203 // was the bottleneck).
207 void RecordNetworkBlockage(base::TimeDelta resource_handler_lifetime, 204 void RecordNetworkBlockage(base::TimeDelta resource_handler_lifetime,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // enum. 247 // enum.
251 void RecordOriginStateOnResumption(bool is_partial, 248 void RecordOriginStateOnResumption(bool is_partial,
252 int state); 249 int state);
253 250
254 void RecordDownloadConnectionSecurity(const GURL& download_url, 251 void RecordDownloadConnectionSecurity(const GURL& download_url,
255 const std::vector<GURL>& url_chain); 252 const std::vector<GURL>& url_chain);
256 253
257 } // namespace content 254 } // namespace content
258 255
259 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ 256 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/download/download_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698