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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.h

Issue 23332012: Add a private API method to install a webstore app from Files.app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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/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_

Powered by Google App Engine
This is Rietveld 408576698