OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/renderer/extensions/chrome_v8_extension.h" | 9 #include "chrome/renderer/extensions/chrome_v8_extension.h" |
10 #include "v8/include/v8.h" | 10 #include "v8/include/v8.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 virtual ~RuntimeCustomBindings(); | 22 virtual ~RuntimeCustomBindings(); |
23 | 23 |
24 // Creates a new messaging channel to the given extension. | 24 // Creates a new messaging channel to the given extension. |
25 v8::Handle<v8::Value> OpenChannelToExtension(const v8::Arguments& args); | 25 v8::Handle<v8::Value> OpenChannelToExtension(const v8::Arguments& args); |
26 | 26 |
27 // Creates a new messaging channels for the specified native application. | 27 // Creates a new messaging channels for the specified native application. |
28 v8::Handle<v8::Value> OpenChannelToNativeApp(const v8::Arguments& args); | 28 v8::Handle<v8::Value> OpenChannelToNativeApp(const v8::Arguments& args); |
29 | 29 |
30 private: | 30 private: |
31 v8::Handle<v8::Value> GetManifest(const v8::Arguments& args); | 31 v8::Handle<v8::Value> GetManifest(const v8::Arguments& args); |
32 | |
33 ChromeV8Context* context_; | |
34 }; | 32 }; |
35 | 33 |
36 } // extensions | 34 } // extensions |
37 | 35 |
38 #endif // CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_ | 36 #endif // CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_ |
OLD | NEW |