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

Side by Side Diff: chrome/renderer/extensions/chrome_webstore_bindings.h

Issue 7795032: Add link URL and success/failure callback parameters to chrome.webstore.install() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 9 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 (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_
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_messages.h ('k') | chrome/renderer/extensions/chrome_webstore_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698