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

Side by Side Diff: chrome/browser/extensions/api/file_system/file_system_api.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/files/file.h" 12 #include "base/files/file.h"
12 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
13 #include "base/macros.h" 14 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "chrome/browser/extensions/chrome_extension_function.h" 17 #include "chrome/browser/extensions/chrome_extension_function.h"
18 #include "chrome/browser/extensions/chrome_extension_function_details.h" 18 #include "chrome/browser/extensions/chrome_extension_function_details.h"
19 #include "chrome/common/extensions/api/file_system.h" 19 #include "chrome/common/extensions/api/file_system.h"
20 #include "extensions/browser/extension_function.h" 20 #include "extensions/browser/extension_function.h"
21 #include "ui/base/ui_base_types.h" 21 #include "ui/base/ui_base_types.h"
22 #include "ui/shell_dialogs/select_file_dialog.h" 22 #include "ui/shell_dialogs/select_file_dialog.h"
23 23
24 #if defined(OS_CHROMEOS) 24 #if defined(OS_CHROMEOS)
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 ~FileSystemRetainEntryFunction() override {} 290 ~FileSystemRetainEntryFunction() override {}
291 bool RunAsync() override; 291 bool RunAsync() override;
292 292
293 private: 293 private:
294 // Retains the file entry referenced by |entry_id| in apps::SavedFilesService. 294 // Retains the file entry referenced by |entry_id| in apps::SavedFilesService.
295 // |entry_id| must refer to an entry in an isolated file system. |path| is a 295 // |entry_id| must refer to an entry in an isolated file system. |path| is a
296 // path of the entry. |file_info| is base::File::Info of the entry if it can 296 // path of the entry. |file_info| is base::File::Info of the entry if it can
297 // be obtained. 297 // be obtained.
298 void RetainFileEntry(const std::string& entry_id, 298 void RetainFileEntry(const std::string& entry_id,
299 const base::FilePath& path, 299 const base::FilePath& path,
300 scoped_ptr<base::File::Info> file_info); 300 std::unique_ptr<base::File::Info> file_info);
301 }; 301 };
302 302
303 class FileSystemIsRestorableFunction : public ChromeSyncExtensionFunction { 303 class FileSystemIsRestorableFunction : public ChromeSyncExtensionFunction {
304 public: 304 public:
305 DECLARE_EXTENSION_FUNCTION("fileSystem.isRestorable", FILESYSTEM_ISRESTORABLE) 305 DECLARE_EXTENSION_FUNCTION("fileSystem.isRestorable", FILESYSTEM_ISRESTORABLE)
306 306
307 protected: 307 protected:
308 ~FileSystemIsRestorableFunction() override {} 308 ~FileSystemIsRestorableFunction() override {}
309 bool RunSync() override; 309 bool RunSync() override;
310 }; 310 };
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 ExtensionFunction::ResponseAction Run() override; 414 ExtensionFunction::ResponseAction Run() override;
415 415
416 private: 416 private:
417 ChromeExtensionFunctionDetails chrome_details_; 417 ChromeExtensionFunctionDetails chrome_details_;
418 }; 418 };
419 #endif 419 #endif
420 420
421 } // namespace extensions 421 } // namespace extensions
422 422
423 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 423 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698