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

Side by Side Diff: chrome/browser/download/download_item_model.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/download/download_item_model.h" 5 #include "chrome/browser/download/download_item_model.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/download/download_manager.h" 8 #include "chrome/browser/download/download_manager.h"
9 #include "chrome/common/l10n_util.h" 9 #include "chrome/common/l10n_util.h"
10 #include "chrome/common/time_format.h" 10 #include "chrome/common/time_format.h"
11 11
12 #include "generated_resources.h" 12 #include "generated_resources.h"
13 13
14 using base::TimeDelta;
15
14 DownloadItemModel::DownloadItemModel(DownloadItem* download) 16 DownloadItemModel::DownloadItemModel(DownloadItem* download)
15 : download_(download) { 17 : download_(download) {
16 } 18 }
17 19
18 void DownloadItemModel::CancelTask() { 20 void DownloadItemModel::CancelTask() {
19 download_->Cancel(true /* update history service */); 21 download_->Cancel(true /* update history service */);
20 } 22 }
21 23
22 std::wstring DownloadItemModel::GetStatusText() { 24 std::wstring DownloadItemModel::GetStatusText() {
23 int64 size = download_->received_bytes(); 25 int64 size = download_->received_bytes();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 break; 82 break;
81 case DownloadItem::REMOVING: 83 case DownloadItem::REMOVING:
82 break; 84 break;
83 default: 85 default:
84 NOTREACHED(); 86 NOTREACHED();
85 } 87 }
86 88
87 return status_text; 89 return status_text;
88 } 90 }
89 91
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698