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

Side by Side Diff: chrome/browser/chromeos/file_manager/fileapi_util.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 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 API related utilities. 5 // This file provides File API related utilities.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_
8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ 8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_
9 9
10 #include <memory>
10 #include <string> 11 #include <string>
11 12
12 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
13 #include "base/files/file.h" 14 #include "base/files/file.h"
14 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
15 #include "base/memory/scoped_ptr.h"
16 #include "storage/browser/fileapi/file_system_operation_runner.h" 16 #include "storage/browser/fileapi/file_system_operation_runner.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 class Profile; 19 class Profile;
20 20
21 namespace content { 21 namespace content {
22 struct FileChooserFileInfo; 22 struct FileChooserFileInfo;
23 class RenderFrameHost; 23 class RenderFrameHost;
24 } 24 }
25 25
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 typedef std::vector<ui::SelectedFileInfo> SelectedFileInfoList; 61 typedef std::vector<ui::SelectedFileInfo> SelectedFileInfoList;
62 typedef std::vector<content::FileChooserFileInfo> FileChooserFileInfoList; 62 typedef std::vector<content::FileChooserFileInfo> FileChooserFileInfoList;
63 63
64 // The callback used by ConvertFileDefinitionToEntryDefinition. Returns the 64 // The callback used by ConvertFileDefinitionToEntryDefinition. Returns the
65 // result of the conversion. 65 // result of the conversion.
66 typedef base::Callback<void(const EntryDefinition& entry_definition)> 66 typedef base::Callback<void(const EntryDefinition& entry_definition)>
67 EntryDefinitionCallback; 67 EntryDefinitionCallback;
68 68
69 // The callback used by ConvertFileDefinitionListToEntryDefinitionList. Returns 69 // The callback used by ConvertFileDefinitionListToEntryDefinitionList. Returns
70 // the result of the conversion as a list. 70 // the result of the conversion as a list.
71 typedef base::Callback<void(scoped_ptr< 71 typedef base::Callback<void(
72 EntryDefinitionList> entry_definition_list)> EntryDefinitionListCallback; 72 std::unique_ptr<EntryDefinitionList> entry_definition_list)>
73 EntryDefinitionListCallback;
73 74
74 // The callback used by 75 // The callback used by
75 // ConvertFileSelectedInfoListToFileChooserFileInfoList. Returns the result of 76 // ConvertFileSelectedInfoListToFileChooserFileInfoList. Returns the result of
76 // the conversion as a list. 77 // the conversion as a list.
77 typedef base::Callback<void(const FileChooserFileInfoList&)> 78 typedef base::Callback<void(const FileChooserFileInfoList&)>
78 FileChooserFileInfoListCallback; 79 FileChooserFileInfoListCallback;
79 80
80 // Returns a file system context associated with the given profile and the 81 // Returns a file system context associated with the given profile and the
81 // extension ID. 82 // extension ID.
82 storage::FileSystemContext* GetFileSystemContextForExtensionId( 83 storage::FileSystemContext* GetFileSystemContextForExtensionId(
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // external file system. 164 // external file system.
164 storage::FileSystemURL CreateIsolatedURLFromVirtualPath( 165 storage::FileSystemURL CreateIsolatedURLFromVirtualPath(
165 const storage::FileSystemContext& context, 166 const storage::FileSystemContext& context,
166 const GURL& origin, 167 const GURL& origin,
167 const base::FilePath& virtual_path); 168 const base::FilePath& virtual_path);
168 169
169 } // namespace util 170 } // namespace util
170 } // namespace file_manager 171 } // namespace file_manager
171 172
172 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ 173 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698