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

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

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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.h" 5 #include "chrome/browser/download/download_item.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/stringprintf.h" 11 #include "base/stringprintf.h"
12 #include "base/timer.h" 12 #include "base/timer.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "net/base/net_util.h" 14 #include "net/base/net_util.h"
15 #include "chrome/browser/browser_thread.h" 15 #include "chrome/browser/browser_thread.h"
16 #include "chrome/browser/download/download_file_manager.h" 16 #include "chrome/browser/download/download_file_manager.h"
17 #include "chrome/browser/download/download_history.h" 17 #include "chrome/browser/download/download_history.h"
18 #include "chrome/browser/download/download_manager.h" 18 #include "chrome/browser/download/download_manager.h"
19 #include "chrome/browser/download/download_prefs.h" 19 #include "chrome/browser/download/download_prefs.h"
20 #include "chrome/browser/download/download_util.h" 20 #include "chrome/browser/download/download_util.h"
21 #include "chrome/browser/history/download_create_info.h" 21 #include "chrome/browser/history/download_create_info.h"
22 #include "chrome/browser/platform_util.h" 22 #include "chrome/browser/platform_util.h"
23 #include "chrome/browser/prefs/pref_service.h" 23 #include "chrome/browser/prefs/pref_service.h"
24 #include "chrome/browser/profile.h" 24 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/common/extensions/extension.h" 25 #include "chrome/common/extensions/extension.h"
26 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
27 27
28 namespace { 28 namespace {
29 29
30 // Update frequency (milliseconds). 30 // Update frequency (milliseconds).
31 const int kUpdateTimeMs = 1000; 31 const int kUpdateTimeMs = 1000;
32 32
33 void DeleteDownloadedFile(const FilePath& path) { 33 void DeleteDownloadedFile(const FilePath& path) {
34 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); 34 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 target_name_.value().c_str(), 489 target_name_.value().c_str(),
490 full_path().value().c_str(), 490 full_path().value().c_str(),
491 DebugSafetyStateString(safety_state())); 491 DebugSafetyStateString(safety_state()));
492 } 492 }
493 493
494 description += base::StringPrintf(" state = %s }", 494 description += base::StringPrintf(" state = %s }",
495 DebugDownloadStateString(state())); 495 DebugDownloadStateString(state()));
496 496
497 return description; 497 return description;
498 } 498 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_history.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698