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

Side by Side Diff: chrome/browser/chromeos/drive/download_handler.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 unified diff | Download patch
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 CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 FileError error); 117 FileError error);
118 118
119 // Gets a download manager, given a |manager_id| casted from the pointer to 119 // Gets a download manager, given a |manager_id| casted from the pointer to
120 // the manager. This is used to validate the manager that may be deleted while 120 // the manager. This is used to validate the manager that may be deleted while
121 // asynchronous task posting. Returns NULL if the manager is already gone. 121 // asynchronous task posting. Returns NULL if the manager is already gone.
122 content::DownloadManager* GetDownloadManager(void* manager_id); 122 content::DownloadManager* GetDownloadManager(void* manager_id);
123 123
124 FileSystemInterface* file_system_; // Owned by DriveIntegrationService. 124 FileSystemInterface* file_system_; // Owned by DriveIntegrationService.
125 125
126 // Observe the DownloadManager for new downloads. 126 // Observe the DownloadManager for new downloads.
127 scoped_ptr<AllDownloadItemNotifier> notifier_; 127 std::unique_ptr<AllDownloadItemNotifier> notifier_;
128 scoped_ptr<AllDownloadItemNotifier> notifier_incognito_; 128 std::unique_ptr<AllDownloadItemNotifier> notifier_incognito_;
129 129
130 // Temporary download location directory. 130 // Temporary download location directory.
131 base::FilePath drive_tmp_download_path_; 131 base::FilePath drive_tmp_download_path_;
132 132
133 // True if there is pending FreeDiskSpaceIfNeeded call. 133 // True if there is pending FreeDiskSpaceIfNeeded call.
134 bool has_pending_free_disk_space_; 134 bool has_pending_free_disk_space_;
135 135
136 base::TimeDelta free_disk_space_delay_; 136 base::TimeDelta free_disk_space_delay_;
137 137
138 // Note: This should remain the last member so it'll be destroyed and 138 // Note: This should remain the last member so it'll be destroyed and
139 // invalidate its weak pointers before any other members are destroyed. 139 // invalidate its weak pointers before any other members are destroyed.
140 base::WeakPtrFactory<DownloadHandler> weak_ptr_factory_; 140 base::WeakPtrFactory<DownloadHandler> weak_ptr_factory_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(DownloadHandler); 142 DISALLOW_COPY_AND_ASSIGN(DownloadHandler);
143 }; 143 };
144 144
145 } // namespace drive 145 } // namespace drive
146 146
147 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ 147 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/debug_info_collector.cc ('k') | chrome/browser/chromeos/drive/download_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698