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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file provides miscellaneous API functions, which don't belong to 5 // This file provides miscellaneous API functions, which don't belong to
6 // other files. 6 // other files.
7 7
8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.zoom", 91 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.zoom",
92 FILEBROWSERPRIVATE_ZOOM); 92 FILEBROWSERPRIVATE_ZOOM);
93 93
94 FileBrowserPrivateZoomFunction(); 94 FileBrowserPrivateZoomFunction();
95 95
96 protected: 96 protected:
97 virtual ~FileBrowserPrivateZoomFunction(); 97 virtual ~FileBrowserPrivateZoomFunction();
98 virtual bool RunImpl() OVERRIDE; 98 virtual bool RunImpl() OVERRIDE;
99 }; 99 };
100 100
101 // Implements the chrome.fileBrowserPrivate.installWebstoreItem method.
102 class FileBrowserPrivateInstallWebstoreItemFunction
103 : public LoggedAsyncExtensionFunction {
104 public:
105 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.installWebstoreItem",
106 FILEBROWSERPRIVATE_INSTALLWEBSTOREITEM);
107
108 FileBrowserPrivateInstallWebstoreItemFunction();
109
110 protected:
111 virtual ~FileBrowserPrivateInstallWebstoreItemFunction();
112 virtual bool RunImpl() OVERRIDE;
113 void OnInstallComplete(bool success, const std::string& error);
114
115 private:
116 std::string webstore_item_id_;
117 };
118
101 } // namespace extensions 119 } // namespace extensions
102 120
103 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 121 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698