OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // The ChromeStoreExtension is a V8 extension that creates an object at | 5 // The ChromeStoreExtension is a V8 extension that creates an object at |
6 // window.chrome.webstore. This object allows JavaScript to initiate inline | 6 // window.chrome.webstore. This object allows JavaScript to initiate inline |
7 // installs of apps that are listed in the Chrome Web Store (CWS). | 7 // installs of apps that are listed in the Chrome Web Store (CWS). |
8 | 8 |
9 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_WEBSTORE_BINDINGS_H_ | 9 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_WEBSTORE_BINDINGS_H_ |
10 #define CHROME_RENDERER_EXTENSIONS_CHROME_WEBSTORE_BINDINGS_H_ | 10 #define CHROME_RENDERER_EXTENSIONS_CHROME_WEBSTORE_BINDINGS_H_ |
11 #pragma once | 11 #pragma once |
12 | 12 |
| 13 #include <string> |
| 14 |
13 namespace v8 { | 15 namespace v8 { |
14 class Extension; | 16 class Extension; |
15 } | 17 } |
16 | 18 |
17 namespace extensions_v8 { | |
18 | |
19 class ChromeWebstoreExtension { | 19 class ChromeWebstoreExtension { |
20 public: | 20 public: |
21 static v8::Extension* Get(); | 21 static v8::Extension* Get(); |
| 22 |
| 23 static void HandleInstallResponse(int install_id, |
| 24 bool success, |
| 25 const std::string& error); |
22 }; | 26 }; |
23 | 27 |
24 } // namespace extensions_v8 | |
25 | |
26 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_WEBSTORE_BINDINGS_H_ | 28 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_WEBSTORE_BINDINGS_H_ |
OLD | NEW |