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