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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/operations/get_actions.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 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_GET_ACTIONS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_ACTIONS_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_ACTIONS_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_ACTIONS_H_
7 7
8 #include <memory>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/files/file.h" 11 #include "base/files/file.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h" 13 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h"
14 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h" 14 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h"
15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h" 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h"
16 #include "chrome/browser/chromeos/file_system_provider/request_value.h" 16 #include "chrome/browser/chromeos/file_system_provider/request_value.h"
17 #include "chrome/common/extensions/api/file_system_provider_internal.h" 17 #include "chrome/common/extensions/api/file_system_provider_internal.h"
18 18
19 namespace base { 19 namespace base {
20 class FilePath; 20 class FilePath;
21 } // namespace base 21 } // namespace base
22 22
(...skipping 11 matching lines...) Expand all
34 public: 34 public:
35 GetActions(extensions::EventRouter* event_router, 35 GetActions(extensions::EventRouter* event_router,
36 const ProvidedFileSystemInfo& file_system_info, 36 const ProvidedFileSystemInfo& file_system_info,
37 const std::vector<base::FilePath>& entry_paths, 37 const std::vector<base::FilePath>& entry_paths,
38 const ProvidedFileSystemInterface::GetActionsCallback& callback); 38 const ProvidedFileSystemInterface::GetActionsCallback& callback);
39 ~GetActions() override; 39 ~GetActions() override;
40 40
41 // Operation overrides. 41 // Operation overrides.
42 bool Execute(int request_id) override; 42 bool Execute(int request_id) override;
43 void OnSuccess(int request_id, 43 void OnSuccess(int request_id,
44 scoped_ptr<RequestValue> result, 44 std::unique_ptr<RequestValue> result,
45 bool has_more) override; 45 bool has_more) override;
46 void OnError(int request_id, 46 void OnError(int request_id,
47 scoped_ptr<RequestValue> result, 47 std::unique_ptr<RequestValue> result,
48 base::File::Error error) override; 48 base::File::Error error) override;
49 49
50 private: 50 private:
51 const std::vector<base::FilePath> entry_paths_; 51 const std::vector<base::FilePath> entry_paths_;
52 const ProvidedFileSystemInterface::GetActionsCallback callback_; 52 const ProvidedFileSystemInterface::GetActionsCallback callback_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(GetActions); 54 DISALLOW_COPY_AND_ASSIGN(GetActions);
55 }; 55 };
56 56
57 } // namespace operations 57 } // namespace operations
58 } // namespace file_system_provider 58 } // namespace file_system_provider
59 } // namespace chromeos 59 } // namespace chromeos
60 60
61 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_ACTIONS_H _ 61 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_ACTIONS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698