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

Side by Side Diff: content/browser/download/download_item_impl.h

Issue 10702151: Revert 146162 - Move Rename functionality from DownloadFileManager to DownloadFileImple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 void TransitionTo(DownloadState new_state); 246 void TransitionTo(DownloadState new_state);
247 247
248 // Set the |danger_type_| and invoke obserers if necessary. 248 // Set the |danger_type_| and invoke obserers if necessary.
249 void SetDangerType(content::DownloadDangerType danger_type); 249 void SetDangerType(content::DownloadDangerType danger_type);
250 250
251 // Set the |current_path_| to |new_path|. 251 // Set the |current_path_| to |new_path|.
252 void SetFullPath(const FilePath& new_path); 252 void SetFullPath(const FilePath& new_path);
253 253
254 // Callback invoked when the download has been renamed to its final name. 254 // Callback invoked when the download has been renamed to its final name.
255 void OnDownloadRenamedToFinalName(DownloadFileManager* file_manager, 255 void OnDownloadRenamedToFinalName(DownloadFileManager* file_manager,
256 content::DownloadInterruptReason reason,
257 const FilePath& full_path); 256 const FilePath& full_path);
258 257
259 // Callback invoked when the download has been renamed to its intermediate 258 // Callback invoked when the download has been renamed to its intermediate
260 // name. 259 // name.
261 void OnDownloadRenamedToIntermediateName( 260 void OnDownloadRenamedToIntermediateName(const FilePath& full_path);
262 content::DownloadInterruptReason reason, const FilePath& full_path);
263 261
264 // Callback from file thread when we release the DownloadFile. 262 // Callback from file thread when we release the DownloadFile.
265 void OnDownloadFileReleased(); 263 void OnDownloadFileReleased();
266 264
267 // The handle to the request information. Used for operations outside the 265 // The handle to the request information. Used for operations outside the
268 // download system. 266 // download system.
269 scoped_ptr<DownloadRequestHandleInterface> request_handle_; 267 scoped_ptr<DownloadRequestHandleInterface> request_handle_;
270 268
271 // Download ID assigned by DownloadResourceHandler. 269 // Download ID assigned by DownloadResourceHandler.
272 content::DownloadId download_id_; 270 content::DownloadId download_id_;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 426
429 // Net log to use for this download. 427 // Net log to use for this download.
430 const net::BoundNetLog bound_net_log_; 428 const net::BoundNetLog bound_net_log_;
431 429
432 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 430 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
433 431
434 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 432 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
435 }; 433 };
436 434
437 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 435 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_file_unittest.cc ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698