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

Unified Diff: content/public/browser/download_manager.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 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 | « content/public/browser/devtools_agent_host.h ('k') | content/public/browser/download_save_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_manager.h
diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h
index 412466238796e54af2b68dee1884fad634a5014d..3029a73af2ffac8dd22bef8c2dd60950a6313eb1 100644
--- a/content/public/browser/download_manager.h
+++ b/content/public/browser/download_manager.h
@@ -110,8 +110,8 @@ class CONTENT_EXPORT DownloadManager : public base::SupportsUserData::Data {
// Returns the id assigned to the download. If the DownloadCreateInfo
// specifies an id, that id will be used.
virtual void StartDownload(
- scoped_ptr<DownloadCreateInfo> info,
- scoped_ptr<ByteStreamReader> stream,
+ std::unique_ptr<DownloadCreateInfo> info,
+ std::unique_ptr<ByteStreamReader> stream,
const DownloadUrlParameters::OnStartedCallback& on_started) = 0;
// Remove downloads whose URLs match the |url_filter| and are within
@@ -128,7 +128,8 @@ class CONTENT_EXPORT DownloadManager : public base::SupportsUserData::Data {
virtual int RemoveAllDownloads() = 0;
// See DownloadUrlParameters for details about controlling the download.
- virtual void DownloadUrl(scoped_ptr<DownloadUrlParameters> parameters) = 0;
+ virtual void DownloadUrl(
+ std::unique_ptr<DownloadUrlParameters> parameters) = 0;
// Allow objects to observe the download creation process.
virtual void AddObserver(Observer* observer) = 0;
« no previous file with comments | « content/public/browser/devtools_agent_host.h ('k') | content/public/browser/download_save_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698