| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // Exposes extension APIs into the extension process. | 5 // Exposes extension APIs into the extension process. |
| 6 | 6 |
| 7 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ | 7 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ |
| 8 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ | 8 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> |
| 11 | 12 |
| 12 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
| 13 | 14 |
| 14 class WebFrame; | 15 class WebFrame; |
| 15 | 16 |
| 16 namespace extensions_v8 { | 17 namespace extensions_v8 { |
| 17 | 18 |
| 18 class ExtensionProcessBindings { | 19 class ExtensionProcessBindings { |
| 19 public: | 20 public: |
| 21 static void SetFunctionNames(const std::vector<std::string>& names); |
| 20 static v8::Extension* Get(); | 22 static v8::Extension* Get(); |
| 21 static void ExecuteCallbackInFrame(WebFrame* frame, int callback_id, | 23 static void ExecuteCallbackInFrame(WebFrame* frame, int callback_id, |
| 22 const std::string& response); | 24 const std::string& response); |
| 23 }; | 25 }; |
| 24 | 26 |
| 25 } // namespace extensions_v8 | 27 } // namespace extensions_v8 |
| 26 | 28 |
| 27 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ | 29 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ |
| OLD | NEW |