| 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 // enum. | 329 // enum. |
| 330 void RecordOriginStateOnResumption(bool is_partial, | 330 void RecordOriginStateOnResumption(bool is_partial, |
| 331 int state); | 331 int state); |
| 332 | 332 |
| 333 void RecordDownloadConnectionSecurity(const GURL& download_url, | 333 void RecordDownloadConnectionSecurity(const GURL& download_url, |
| 334 const std::vector<GURL>& url_chain); | 334 const std::vector<GURL>& url_chain); |
| 335 | 335 |
| 336 void RecordDownloadSourcePageTransitionType( | 336 void RecordDownloadSourcePageTransitionType( |
| 337 const base::Optional<ui::PageTransition>& transition); | 337 const base::Optional<ui::PageTransition>& transition); |
| 338 | 338 |
| 339 void RecordDownloadHttpResponseCode(int response_code); |
| 340 |
| 339 } // namespace content | 341 } // namespace content |
| 340 | 342 |
| 341 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ | 343 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ |
| OLD | NEW |