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

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: addressed comment 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 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_

Powered by Google App Engine
This is Rietveld 408576698