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 942fa346d7aaa8f95d1be9132749c9c856899ad6..2f8587f1d250e418d2de81bbf256e8e43bc266e0 100644 |
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h |
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h |
@@ -98,6 +98,24 @@ class FileBrowserPrivateZoomFunction : public SyncExtensionFunction { |
virtual bool RunImpl() OVERRIDE; |
}; |
+// Implements the chrome.fileBrowserPrivate.installWebstoreItem method. |
+class FileBrowserPrivateInstallWebstoreItemFunction |
+ : public LoggedAsyncExtensionFunction { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.installWebstoreItem", |
+ FILEBROWSERPRIVATE_INSTALLWEBSTOREITEM); |
+ |
+ FileBrowserPrivateInstallWebstoreItemFunction(); |
+ |
+ protected: |
+ virtual ~FileBrowserPrivateInstallWebstoreItemFunction(); |
+ virtual bool RunImpl() OVERRIDE; |
+ void OnInstallComplete(bool success, const std::string& error); |
+ |
+ private: |
+ std::string webstore_item_id_; |
+}; |
+ |
} // namespace extensions |
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |