| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 // the given extension. | 38 // the given extension. |
| 39 | 39 |
| 40 // Returns an empty path on failure. | 40 // Returns an empty path on failure. |
| 41 base::FilePath GetLastChooseEntryDirectory(const ExtensionPrefs* prefs, | 41 base::FilePath GetLastChooseEntryDirectory(const ExtensionPrefs* prefs, |
| 42 const std::string& extension_id); | 42 const std::string& extension_id); |
| 43 | 43 |
| 44 void SetLastChooseEntryDirectory(ExtensionPrefs* prefs, | 44 void SetLastChooseEntryDirectory(ExtensionPrefs* prefs, |
| 45 const std::string& extension_id, | 45 const std::string& extension_id, |
| 46 const base::FilePath& path); | 46 const base::FilePath& path); |
| 47 | 47 |
| 48 std::vector<base::FilePath> GetGrayListedDirectories(); | |
| 49 | |
| 50 #if defined(OS_CHROMEOS) | 48 #if defined(OS_CHROMEOS) |
| 51 // Dispatches an event about a mounted on unmounted volume in the system to | 49 // Dispatches an event about a mounted on unmounted volume in the system to |
| 52 // each extension which can request it. | 50 // each extension which can request it. |
| 53 void DispatchVolumeListChangeEvent(Profile* profile); | 51 void DispatchVolumeListChangeEvent(Profile* profile); |
| 54 | 52 |
| 55 // Requests consent for the chrome.fileSystem.requestFileSystem() method. | 53 // Requests consent for the chrome.fileSystem.requestFileSystem() method. |
| 56 // Interaction with UI and environmental checks (kiosk mode, whitelist) are | 54 // Interaction with UI and environmental checks (kiosk mode, whitelist) are |
| 57 // provided by a delegate: ConsentProviderDelegate. For testing, it is | 55 // provided by a delegate: ConsentProviderDelegate. For testing, it is |
| 58 // TestingConsentProviderDelegate. | 56 // TestingConsentProviderDelegate. |
| 59 class ConsentProvider { | 57 class ConsentProvider { |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 ExtensionFunction::ResponseAction Run() override; | 414 ExtensionFunction::ResponseAction Run() override; |
| 417 | 415 |
| 418 private: | 416 private: |
| 419 ChromeExtensionFunctionDetails chrome_details_; | 417 ChromeExtensionFunctionDetails chrome_details_; |
| 420 }; | 418 }; |
| 421 #endif | 419 #endif |
| 422 | 420 |
| 423 } // namespace extensions | 421 } // namespace extensions |
| 424 | 422 |
| 425 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ | 423 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ |
| OLD | NEW |