Index: chrome/browser/chromeos/extensions/file_manager/private_api_misc.h |
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h |
index 922864d2245fdd4506c684c6e1a45e7cbcf7e9ad..18544ae5dee2442913b3b3780694747d6a2717ee 100644 |
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h |
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h |
@@ -97,6 +97,23 @@ class ZoomFunction : public SyncExtensionFunction { |
virtual bool RunImpl() OVERRIDE; |
}; |
+// Implements the chrome.fileBrowserPrivate.installWebstoreItem method. |
+class InstallWebstoreItemFunction : public LoggedAsyncExtensionFunction { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.installWebstoreItem", |
+ FILEBROWSERPRIVATE_INSTALLWEBSTOREITEM); |
+ |
+ InstallWebstoreItemFunction(); |
+ |
+ protected: |
+ virtual ~InstallWebstoreItemFunction(); |
+ virtual bool RunImpl() OVERRIDE; |
+ void OnInstallComplete(bool success, const std::string& error); |
+ |
+ private: |
+ std::string webstore_item_id_; |
+}; |
+ |
} // namespace file_manager |
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |