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

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

Issue 16755004: Use a direct include of strings headers in content/browser/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 #include "content/browser/download/download_stats.h" 5 #include "content/browser/download/download_stats.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "content/browser/download/download_resource_handler.h" 9 #include "content/browser/download/download_resource_handler.h"
10 #include "content/public/browser/download_interrupt_reasons.h" 10 #include "content/public/browser/download_interrupt_reasons.h"
11 #include "net/http/http_content_disposition.h" 11 #include "net/http/http_content_disposition.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 namespace { 15 namespace {
16 16
17 // All possible error codes from the network module. Note that the error codes 17 // All possible error codes from the network module. Note that the error codes
18 // are all positive (since histograms expect positive sample values). 18 // are all positive (since histograms expect positive sample values).
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 disk_write_time_ms * 100 / elapsed_time_ms); 450 disk_write_time_ms * 100 / elapsed_time_ms);
451 } 451 }
452 452
453 void RecordSavePackageEvent(SavePackageEvent event) { 453 void RecordSavePackageEvent(SavePackageEvent event) {
454 UMA_HISTOGRAM_ENUMERATION("Download.SavePackage", 454 UMA_HISTOGRAM_ENUMERATION("Download.SavePackage",
455 event, 455 event,
456 SAVE_PACKAGE_LAST_ENTRY); 456 SAVE_PACKAGE_LAST_ENTRY);
457 } 457 }
458 458
459 } // namespace content 459 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_resource_handler.cc ('k') | content/browser/download/drag_download_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698