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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This file provides file system related API functions. 5 // This file provides file system related API functions.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_ 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 "fileManagerPrivateInternal.resolveIsolatedEntries", 253 "fileManagerPrivateInternal.resolveIsolatedEntries",
254 FILEMANAGERPRIVATE_RESOLVEISOLATEDENTRIES) 254 FILEMANAGERPRIVATE_RESOLVEISOLATEDENTRIES)
255 255
256 protected: 256 protected:
257 ~FileManagerPrivateInternalResolveIsolatedEntriesFunction() override {} 257 ~FileManagerPrivateInternalResolveIsolatedEntriesFunction() override {}
258 258
259 // AsyncExtensionFunction overrides. 259 // AsyncExtensionFunction overrides.
260 bool RunAsync() override; 260 bool RunAsync() override;
261 261
262 private: 262 private:
263 void RunAsyncAfterConvertFileDefinitionListToEntryDefinitionList(scoped_ptr< 263 void RunAsyncAfterConvertFileDefinitionListToEntryDefinitionList(
264 file_manager::util::EntryDefinitionList> entry_definition_list); 264 std::unique_ptr<file_manager::util::EntryDefinitionList>
265 entry_definition_list);
265 }; 266 };
266 267
267 class FileManagerPrivateInternalComputeChecksumFunction 268 class FileManagerPrivateInternalComputeChecksumFunction
268 : public LoggedAsyncExtensionFunction { 269 : public LoggedAsyncExtensionFunction {
269 public: 270 public:
270 FileManagerPrivateInternalComputeChecksumFunction(); 271 FileManagerPrivateInternalComputeChecksumFunction();
271 272
272 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.computeChecksum", 273 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.computeChecksum",
273 FILEMANAGERPRIVATEINTERNAL_COMPUTECHECKSUM) 274 FILEMANAGERPRIVATEINTERNAL_COMPUTECHECKSUM)
274 275
275 protected: 276 protected:
276 ~FileManagerPrivateInternalComputeChecksumFunction() override; 277 ~FileManagerPrivateInternalComputeChecksumFunction() override;
277 278
278 // AsyncExtensionFunction overrides. 279 // AsyncExtensionFunction overrides.
279 bool RunAsync() override; 280 bool RunAsync() override;
280 281
281 private: 282 private:
282 scoped_ptr<drive::util::FileStreamMd5Digester> digester_; 283 std::unique_ptr<drive::util::FileStreamMd5Digester> digester_;
283 284
284 void Respond(const std::string& hash); 285 void Respond(const std::string& hash);
285 }; 286 };
286 287
287 // Implements the chrome.fileManagerPrivate.searchFilesByHashes method. 288 // Implements the chrome.fileManagerPrivate.searchFilesByHashes method.
288 class FileManagerPrivateSearchFilesByHashesFunction 289 class FileManagerPrivateSearchFilesByHashesFunction
289 : public LoggedAsyncExtensionFunction { 290 : public LoggedAsyncExtensionFunction {
290 public: 291 public:
291 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.searchFilesByHashes", 292 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.searchFilesByHashes",
292 FILEMANAGERPRIVATE_SEARCHFILESBYHASHES) 293 FILEMANAGERPRIVATE_SEARCHFILESBYHASHES)
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 // Called when setting a tag is completed with either a success or an error. 336 // Called when setting a tag is completed with either a success or an error.
336 void OnSetEntryPropertyCompleted(drive::FileError result); 337 void OnSetEntryPropertyCompleted(drive::FileError result);
337 338
338 ExtensionFunction::ResponseAction Run() override; 339 ExtensionFunction::ResponseAction Run() override;
339 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateInternalSetEntryTagFunction); 340 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateInternalSetEntryTagFunction);
340 }; 341 };
341 342
342 } // namespace extensions 343 } // namespace extensions
343 344
344 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST EM_H_ 345 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST EM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698