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> | 13 #include <string> |
14 | 14 |
| 15 class ChromeV8Extension; |
| 16 |
15 namespace v8 { | 17 namespace v8 { |
16 class Extension; | 18 class Extension; |
17 } | 19 } |
18 | 20 |
| 21 class ExtensionDispatcher; |
| 22 |
19 class ChromeWebstoreExtension { | 23 class ChromeWebstoreExtension { |
20 public: | 24 public: |
21 static v8::Extension* Get(); | 25 static ChromeV8Extension* Get(ExtensionDispatcher* dispatcher); |
22 | 26 |
23 static void HandleInstallResponse(int install_id, | 27 static void HandleInstallResponse(int install_id, |
24 bool success, | 28 bool success, |
25 const std::string& error); | 29 const std::string& error); |
26 }; | 30 }; |
27 | 31 |
28 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_WEBSTORE_BINDINGS_H_ | 32 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_WEBSTORE_BINDINGS_H_ |
OLD | NEW |