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

Unified Diff: content/public/browser/download_save_info.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
Index: content/public/browser/download_save_info.h
diff --git a/content/public/browser/download_save_info.h b/content/public/browser/download_save_info.h
index e955f1d03d5f448c029b064c62beb461be8fa48e..cfa7c01d59c1e665cae76fe9e516014c9bf78b17 100644
--- a/content/public/browser/download_save_info.h
+++ b/content/public/browser/download_save_info.h
@@ -30,7 +30,7 @@ struct CONTENT_EXPORT DownloadSaveInfo {
string16 suggested_name;
// If non-NULL, contains the source data stream for the file contents.
- linked_ptr<net::FileStream> file_stream;
+ scoped_ptr<net::FileStream> file_stream;
// The file offset at which to start the download. May be 0.
int64 offset;
@@ -44,6 +44,9 @@ struct CONTENT_EXPORT DownloadSaveInfo {
// basis if |file_path| is not empty.
// |prompt_for_save_location| defaults to false.
bool prompt_for_save_location;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DownloadSaveInfo);
};
} // namespace content
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac.mm ('k') | content/public/browser/download_url_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698