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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chrome_download_manager_delegate.h" 5 #include "chrome/browser/download/chrome_download_manager_delegate.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 22 matching lines...) Expand all
33 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
34 #include "content/browser/download/download_file.h" 34 #include "content/browser/download/download_file.h"
35 #include "content/browser/download/download_item.h" 35 #include "content/browser/download/download_item.h"
36 #include "content/browser/download/download_manager.h" 36 #include "content/browser/download/download_manager.h"
37 #include "content/browser/download/download_status_updater.h" 37 #include "content/browser/download/download_status_updater.h"
38 #include "content/browser/tab_contents/tab_contents.h" 38 #include "content/browser/tab_contents/tab_contents.h"
39 #include "content/public/browser/notification_source.h" 39 #include "content/public/browser/notification_source.h"
40 #include "grit/generated_resources.h" 40 #include "grit/generated_resources.h"
41 #include "ui/base/l10n/l10n_util.h" 41 #include "ui/base/l10n/l10n_util.h"
42 42
43 using content::BrowserThread;
44
43 ChromeDownloadManagerDelegate::ChromeDownloadManagerDelegate(Profile* profile) 45 ChromeDownloadManagerDelegate::ChromeDownloadManagerDelegate(Profile* profile)
44 : profile_(profile), 46 : profile_(profile),
45 download_prefs_(new DownloadPrefs(profile->GetPrefs())) { 47 download_prefs_(new DownloadPrefs(profile->GetPrefs())) {
46 } 48 }
47 49
48 ChromeDownloadManagerDelegate::~ChromeDownloadManagerDelegate() { 50 ChromeDownloadManagerDelegate::~ChromeDownloadManagerDelegate() {
49 } 51 }
50 52
51 bool ChromeDownloadManagerDelegate::IsExtensionDownload( 53 bool ChromeDownloadManagerDelegate::IsExtensionDownload(
52 const DownloadItem* item) { 54 const DownloadItem* item) {
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // TODO(noelutz): This function currently works as a callback place holder. 564 // TODO(noelutz): This function currently works as a callback place holder.
563 // Once we decide the hash check is reliable, we could move the 565 // Once we decide the hash check is reliable, we could move the
564 // MaybeCompleteDownload in OnAllDataSaved to this function. 566 // MaybeCompleteDownload in OnAllDataSaved to this function.
565 void ChromeDownloadManagerDelegate::CheckDownloadHashDone( 567 void ChromeDownloadManagerDelegate::CheckDownloadHashDone(
566 int32 download_id, 568 int32 download_id,
567 bool is_dangerous_hash) { 569 bool is_dangerous_hash) {
568 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 570 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
569 DVLOG(1) << "CheckDownloadHashDone, download_id: " << download_id 571 DVLOG(1) << "CheckDownloadHashDone, download_id: " << download_id
570 << " is dangerous_hash: " << is_dangerous_hash; 572 << " is dangerous_hash: " << is_dangerous_hash;
571 } 573 }
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_sanity_unittest.cc ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698