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

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

Issue 1829783002: [Extensions] Convert APIs to use movable types [5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 static void SkipDirectoryConfirmationForTest(); 230 static void SkipDirectoryConfirmationForTest();
231 static void AutoCancelDirectoryConfirmationForTest(); 231 static void AutoCancelDirectoryConfirmationForTest();
232 static void StopSkippingDirectoryConfirmationForTest(); 232 static void StopSkippingDirectoryConfirmationForTest();
233 // Call this with the directory for test file paths. On Chrome OS, accessed 233 // Call this with the directory for test file paths. On Chrome OS, accessed
234 // path needs to be explicitly registered for smooth integration with Google 234 // path needs to be explicitly registered for smooth integration with Google
235 // Drive support. 235 // Drive support.
236 static void RegisterTempExternalFileSystemForTest(const std::string& name, 236 static void RegisterTempExternalFileSystemForTest(const std::string& name,
237 const base::FilePath& path); 237 const base::FilePath& path);
238 DECLARE_EXTENSION_FUNCTION("fileSystem.chooseEntry", FILESYSTEM_CHOOSEENTRY) 238 DECLARE_EXTENSION_FUNCTION("fileSystem.chooseEntry", FILESYSTEM_CHOOSEENTRY)
239 239
240 typedef std::vector<linked_ptr<api::file_system::AcceptOption>> AcceptOptions; 240 typedef std::vector<api::file_system::AcceptOption> AcceptOptions;
241 241
242 static void BuildFileTypeInfo( 242 static void BuildFileTypeInfo(
243 ui::SelectFileDialog::FileTypeInfo* file_type_info, 243 ui::SelectFileDialog::FileTypeInfo* file_type_info,
244 const base::FilePath::StringType& suggested_extension, 244 const base::FilePath::StringType& suggested_extension,
245 const AcceptOptions* accepts, 245 const AcceptOptions* accepts,
246 const bool* acceptsAllTypes); 246 const bool* acceptsAllTypes);
247 static void BuildSuggestion(const std::string* opt_name, 247 static void BuildSuggestion(const std::string* opt_name,
248 base::FilePath* suggested_name, 248 base::FilePath* suggested_name,
249 base::FilePath::StringType* suggested_extension); 249 base::FilePath::StringType* suggested_extension);
250 250
(...skipping 163 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