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

Unified Diff: chrome/browser/chromeos/file_system_provider/service.h

Issue 1089193002: Add chrome.fileManagerPrivate.getProvidingExtensions(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/file_system_provider/service.h
diff --git a/chrome/browser/chromeos/file_system_provider/service.h b/chrome/browser/chromeos/file_system_provider/service.h
index 61dd0eddc47701265e4534cb34e1e67659ab5342..d2477f5667ddcc555910013552c84e93d57739f0 100644
--- a/chrome/browser/chromeos/file_system_provider/service.h
+++ b/chrome/browser/chromeos/file_system_provider/service.h
@@ -50,6 +50,17 @@ struct MountOptions;
// Registers preferences to remember registered file systems between reboots.
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
+// Holds information for a providing extension.
+struct ProvidingExtensionInfo {
+ ProvidingExtensionInfo();
+ ~ProvidingExtensionInfo();
+
+ std::string extension_id;
+ std::string name;
+ bool can_configure;
+ bool can_add;
+};
+
// Manages and registers the file system provider service. Maintains provided
// file systems.
class Service : public KeyedService,
@@ -118,6 +129,10 @@ class Service : public KeyedService,
ProvidedFileSystemInterface* GetProvidedFileSystem(
const std::string& mount_point_name);
+ // Returns a list of information of all currently installed providing
+ // extensions.
+ std::vector<ProvidingExtensionInfo> GetProvidingExtensionInfoList() const;
+
// Adds and removes observers.
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);

Powered by Google App Engine
This is Rietveld 408576698