Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_RENDERER_EXTENSIONS_BINDING_GENERATING_NATIVE_HANDLER_H_ | |
| 6 #define CHROME_RENDERER_EXTENSIONS_BINDING_GENERATING_NATIVE_HANDLER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "chrome/renderer/extensions/native_handler.h" | |
| 12 | |
| 13 namespace extensions { | |
| 14 | |
| 15 class ModuleSystem; | |
| 16 class V8SchemaRegistry; | |
| 17 | |
| 18 // Generates API bindings based on the JSON/IDL schemas. This is done by passing | |
| 19 // the schema into the |generate| function of schema_binding_generator.js. | |
|
not at google - send to devlin
2013/02/13 01:45:49
note to self: is this |generate| function comment
cduvall
2013/02/15 00:40:28
Done.
| |
| 20 class BindingGeneratingNativeHandler : public NativeHandler { | |
| 21 public: | |
| 22 BindingGeneratingNativeHandler(ModuleSystem* module_system, | |
|
not at google - send to devlin
2013/02/13 01:45:49
Comment api_name and bind_to?
cduvall
2013/02/15 00:40:28
Done.
| |
| 23 V8SchemaRegistry* schema_registry, | |
| 24 const std::string& api_name, | |
|
not at google - send to devlin
2013/02/13 01:45:49
+2 space
cduvall
2013/02/15 00:40:28
Done.
| |
| 25 const std::string& bind_to); | |
| 26 | |
| 27 virtual v8::Handle<v8::Object> NewInstance() OVERRIDE; | |
| 28 | |
| 29 private: | |
| 30 ModuleSystem* module_system_; | |
| 31 V8SchemaRegistry* schema_registry_; | |
| 32 std::string api_name_; | |
| 33 std::string bind_to_; | |
| 34 }; | |
| 35 | |
| 36 } // extensions | |
| 37 | |
| 38 #endif // CHROME_RENDERER_EXTENSIONS_BINDING_GENERATING_NATIVE_HANDLER_H_ | |
| OLD | NEW |