| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 AppObjectExtension is a v8 extension that creates an object | 5 // The AppObjectExtension is a v8 extension that creates an object |
| 6 // at window.chrome.app. This object allows javascript to get details | 6 // at window.chrome.app. This object allows javascript to get details |
| 7 // on the app state of the page. | 7 // on the app state of the page. |
| 8 // The read-only property app.isInstalled is true if the current page is | 8 // The read-only property app.isInstalled is true if the current page is |
| 9 // within the extent of an installed, enabled app. | 9 // within the extent of an installed, enabled app. |
| 10 | 10 |
| 11 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_APP_BINDINGS_H_ | 11 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_APP_BINDINGS_H_ |
| 12 #define CHROME_RENDERER_EXTENSIONS_CHROME_APP_BINDINGS_H_ | 12 #define CHROME_RENDERER_EXTENSIONS_CHROME_APP_BINDINGS_H_ |
| 13 #pragma once | 13 #pragma once |
| 14 | 14 |
| 15 #include <string> |
| 16 |
| 15 class ExtensionDispatcher; | 17 class ExtensionDispatcher; |
| 16 | 18 |
| 17 namespace v8 { | 19 namespace v8 { |
| 18 class Extension; | 20 class Extension; |
| 19 } | 21 } |
| 20 | 22 |
| 21 namespace extensions_v8 { | 23 namespace extensions_v8 { |
| 22 | 24 |
| 23 class ChromeAppExtension { | 25 class ChromeAppExtension { |
| 24 public: | 26 public: |
| 25 static v8::Extension* Get(ExtensionDispatcher* extension_dispatcher); | 27 static v8::Extension* Get(ExtensionDispatcher* extension_dispatcher); |
| 28 static void HandleGetAppNotifyChannelResponse( |
| 29 int request_id, const std::string& channel_id, const std::string& error); |
| 26 }; | 30 }; |
| 27 | 31 |
| 28 } // namespace extensions_v8 | 32 } // namespace extensions_v8 |
| 29 | 33 |
| 30 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_APP_BINDINGS_H_ | 34 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_APP_BINDINGS_H_ |
| OLD | NEW |