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

Side by Side Diff: chrome/browser/download/download_target_determiner.h

Issue 351553004: Port HistoryService::GetVisibleVisitCountToHost to CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Linux ASAN tests Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/download/download_target_determiner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/task/cancelable_task_tracker.h"
12 #include "chrome/browser/common/cancelable_request.h" 13 #include "chrome/browser/common/cancelable_request.h"
13 #include "chrome/browser/download/download_path_reservation_tracker.h" 14 #include "chrome/browser/download/download_path_reservation_tracker.h"
14 #include "chrome/browser/download/download_target_determiner_delegate.h" 15 #include "chrome/browser/download/download_target_determiner_delegate.h"
15 #include "chrome/browser/download/download_target_info.h" 16 #include "chrome/browser/download/download_target_info.h"
16 #include "content/public/browser/download_danger_type.h" 17 #include "content/public/browser/download_danger_type.h"
17 #include "content/public/browser/download_item.h" 18 #include "content/public/browser/download_item.h"
18 #include "content/public/browser/download_manager_delegate.h" 19 #include "content/public/browser/download_manager_delegate.h"
19 20
20 class ChromeDownloadManagerDelegate; 21 class ChromeDownloadManagerDelegate;
21 class Profile; 22 class Profile;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 base::FilePath local_path_; 287 base::FilePath local_path_;
287 base::FilePath intermediate_path_; 288 base::FilePath intermediate_path_;
288 std::string mime_type_; 289 std::string mime_type_;
289 bool is_filetype_handled_safely_; 290 bool is_filetype_handled_safely_;
290 291
291 content::DownloadItem* download_; 292 content::DownloadItem* download_;
292 const bool is_resumption_; 293 const bool is_resumption_;
293 DownloadPrefs* download_prefs_; 294 DownloadPrefs* download_prefs_;
294 DownloadTargetDeterminerDelegate* delegate_; 295 DownloadTargetDeterminerDelegate* delegate_;
295 CompletionCallback completion_callback_; 296 CompletionCallback completion_callback_;
296 CancelableRequestConsumer history_consumer_; 297 base::CancelableTaskTracker history_tracker_;
297 298
298 base::WeakPtrFactory<DownloadTargetDeterminer> weak_ptr_factory_; 299 base::WeakPtrFactory<DownloadTargetDeterminer> weak_ptr_factory_;
299 300
300 DISALLOW_COPY_AND_ASSIGN(DownloadTargetDeterminer); 301 DISALLOW_COPY_AND_ASSIGN(DownloadTargetDeterminer);
301 }; 302 };
302 303
303 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_H_ 304 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/download_target_determiner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698