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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/operations/execute_action.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: iwyu fixes 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_FILE_SYSTEM_PROVIDER_OPERATIONS_EXECUTE_ACTION_H _ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_EXECUTE_ACTION_H _
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_EXECUTE_ACTION_H _ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_EXECUTE_ACTION_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/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h" 14 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h"
15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h" 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h"
16 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h" 16 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h"
17 #include "chrome/browser/chromeos/file_system_provider/request_value.h" 17 #include "chrome/browser/chromeos/file_system_provider/request_value.h"
18 #include "chrome/common/extensions/api/file_system_provider_internal.h" 18 #include "chrome/common/extensions/api/file_system_provider_internal.h"
19 #include "storage/browser/fileapi/async_file_util.h" 19 #include "storage/browser/fileapi/async_file_util.h"
20 20
21 namespace base { 21 namespace base {
22 class FilePath; 22 class FilePath;
23 } // namespace base 23 } // namespace base
(...skipping 14 matching lines...) Expand all
38 ExecuteAction(extensions::EventRouter* event_router, 38 ExecuteAction(extensions::EventRouter* event_router,
39 const ProvidedFileSystemInfo& file_system_info, 39 const ProvidedFileSystemInfo& file_system_info,
40 const std::vector<base::FilePath>& entry_path, 40 const std::vector<base::FilePath>& entry_path,
41 const std::string& action_id, 41 const std::string& action_id,
42 const storage::AsyncFileUtil::StatusCallback& callback); 42 const storage::AsyncFileUtil::StatusCallback& callback);
43 ~ExecuteAction() override; 43 ~ExecuteAction() override;
44 44
45 // Operation overrides. 45 // Operation overrides.
46 bool Execute(int request_id) override; 46 bool Execute(int request_id) override;
47 void OnSuccess(int request_id, 47 void OnSuccess(int request_id,
48 scoped_ptr<RequestValue> result, 48 std::unique_ptr<RequestValue> result,
49 bool has_more) override; 49 bool has_more) override;
50 void OnError(int request_id, 50 void OnError(int request_id,
51 scoped_ptr<RequestValue> result, 51 std::unique_ptr<RequestValue> result,
52 base::File::Error error) override; 52 base::File::Error error) override;
53 53
54 private: 54 private:
55 const std::vector<base::FilePath> entry_paths_; 55 const std::vector<base::FilePath> entry_paths_;
56 const std::string action_id_; 56 const std::string action_id_;
57 const storage::AsyncFileUtil::StatusCallback callback_; 57 const storage::AsyncFileUtil::StatusCallback callback_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(ExecuteAction); 59 DISALLOW_COPY_AND_ASSIGN(ExecuteAction);
60 }; 60 };
61 61
62 } // namespace operations 62 } // namespace operations
63 } // namespace file_system_provider 63 } // namespace file_system_provider
64 } // namespace chromeos 64 } // namespace chromeos
65 65
66 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_EXECUTE_ACTIO N_H_ 66 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_EXECUTE_ACTIO N_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698