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

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

Issue 1145563002: Revert of Add the chrome.fileSystem.onVolumeListChanged event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 28 matching lines...) Expand all
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
53 // Requests consent for the chrome.fileSystem.requestFileSystem() method. 49 // Requests consent for the chrome.fileSystem.requestFileSystem() method.
54 // Interaction with UI and environmental checks (kiosk mode, whitelist) are 50 // Interaction with UI and environmental checks (kiosk mode, whitelist) are
55 // provided by a delegate: ConsentProviderDelegate. For testing, it is 51 // provided by a delegate: ConsentProviderDelegate. For testing, it is
56 // TestingConsentProviderDelegate. 52 // TestingConsentProviderDelegate.
57 class ConsentProvider { 53 class ConsentProvider {
58 public: 54 public:
59 enum Consent { CONSENT_GRANTED, CONSENT_REJECTED, CONSENT_IMPOSSIBLE }; 55 enum Consent { CONSENT_GRANTED, CONSENT_REJECTED, CONSENT_IMPOSSIBLE };
60 typedef base::Callback<void(Consent)> ConsentCallback; 56 typedef base::Callback<void(Consent)> ConsentCallback;
61 typedef base::Callback<void(ui::DialogButton)> ShowDialogCallback; 57 typedef base::Callback<void(ui::DialogButton)> ShowDialogCallback;
62 58
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 ExtensionFunction::ResponseAction Run() override; 408 ExtensionFunction::ResponseAction Run() override;
413 409
414 private: 410 private:
415 ChromeExtensionFunctionDetails chrome_details_; 411 ChromeExtensionFunctionDetails chrome_details_;
416 }; 412 };
417 #endif 413 #endif
418 414
419 } // namespace extensions 415 } // namespace extensions
420 416
421 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 417 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698