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

Unified Diff: content/browser/download/base_file.h

Issue 11028131: Shift passage of FileStream in downloads system to be by scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated Al's comments. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/base_file.h
diff --git a/content/browser/download/base_file.h b/content/browser/download/base_file.h
index 885c79df738aa624318c59ecf14be289f245d2f3..ec499b2250f798a618363ff339780f16cf7282d0 100644
--- a/content/browser/download/base_file.h
+++ b/content/browser/download/base_file.h
@@ -35,7 +35,7 @@ class CONTENT_EXPORT BaseFile {
int64 received_bytes,
bool calculate_hash,
const std::string& hash_state,
- const linked_ptr<net::FileStream>& file_stream,
+ scoped_ptr<net::FileStream> file_stream,
const net::BoundNetLog& bound_net_log);
virtual ~BaseFile();
@@ -71,7 +71,7 @@ class CONTENT_EXPORT BaseFile {
int64 CurrentSpeed() const;
FilePath full_path() const { return full_path_; }
- bool in_progress() const { return file_stream_ != NULL; }
+ bool in_progress() const { return file_stream_.get() != NULL; }
int64 bytes_so_far() const { return bytes_so_far_; }
// Fills |hash| with the hash digest for the file.
@@ -119,7 +119,7 @@ class CONTENT_EXPORT BaseFile {
GURL referrer_url_;
// OS file stream for writing
- linked_ptr<net::FileStream> file_stream_;
+ scoped_ptr<net::FileStream> file_stream_;
// Amount of data received up so far, in bytes.
int64 bytes_so_far_;
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698