OLD | NEW |
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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 ORIGIN_STATE_ON_RESUMPTION_ADDITIONAL_REDIRECTS = 1<<0, | 330 ORIGIN_STATE_ON_RESUMPTION_ADDITIONAL_REDIRECTS = 1<<0, |
331 ORIGIN_STATE_ON_RESUMPTION_VALIDATORS_CHANGED = 1<<1, | 331 ORIGIN_STATE_ON_RESUMPTION_VALIDATORS_CHANGED = 1<<1, |
332 ORIGIN_STATE_ON_RESUMPTION_CONTENT_DISPOSITION_CHANGED = 1<<2, | 332 ORIGIN_STATE_ON_RESUMPTION_CONTENT_DISPOSITION_CHANGED = 1<<2, |
333 ORIGIN_STATE_ON_RESUMPTION_MAX = 1<<3 | 333 ORIGIN_STATE_ON_RESUMPTION_MAX = 1<<3 |
334 }; | 334 }; |
335 | 335 |
336 // Record the state of the origin information across a download resumption | 336 // Record the state of the origin information across a download resumption |
337 // request. |state| is a combination of values from OriginStateOnResumption | 337 // request. |state| is a combination of values from OriginStateOnResumption |
338 // enum. | 338 // enum. |
339 void RecordOriginStateOnResumption(bool is_partial, | 339 void RecordOriginStateOnResumption(bool is_partial, |
340 int state); | 340 OriginStateOnResumption state); |
341 | 341 |
342 void RecordDownloadConnectionSecurity(const GURL& download_url, | 342 void RecordDownloadConnectionSecurity(const GURL& download_url, |
343 const std::vector<GURL>& url_chain); | 343 const std::vector<GURL>& url_chain); |
344 | 344 |
345 void RecordDownloadSourcePageTransitionType( | 345 void RecordDownloadSourcePageTransitionType( |
346 const base::Optional<ui::PageTransition>& transition); | 346 const base::Optional<ui::PageTransition>& transition); |
347 | 347 |
348 void RecordDownloadHttpResponseCode(int response_code); | 348 void RecordDownloadHttpResponseCode(int response_code); |
349 | 349 |
350 } // namespace content | 350 } // namespace content |
351 | 351 |
352 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ | 352 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ |
OLD | NEW |