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

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

Issue 1146463002: Reland: Show the eject button only for removables and file handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698