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_SCHEMA_GENERATED_NATIVE_HANDLER_H_ |
| 6 #define CHROME_RENDERER_EXTENSIONS_SCHEMA_GENERATED_NATIVE_HANDLER_H_ |
| 7 |
| 8 #include "chrome/renderer/extensions/native_handler.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 class ModuleSystem; |
| 13 class V8SchemaRegistry; |
| 14 |
| 15 class SchemaGeneratedNativeHandler : public NativeHandler { |
| 16 public: |
| 17 SchemaGeneratedNativeHandler(ModuleSystem* module_system, |
| 18 V8SchemaRegistry* schema_registry, |
| 19 const std::string& api_name, |
| 20 const std::string& bind_to); |
| 21 |
| 22 virtual v8::Handle<v8::Object> NewInstance() OVERRIDE; |
| 23 |
| 24 private: |
| 25 ModuleSystem* module_system_; |
| 26 V8SchemaRegistry* schema_registry_; |
| 27 std::string api_name_; |
| 28 std::string bind_to_; |
| 29 }; |
| 30 |
| 31 } // extensions |
| 32 |
| 33 #endif // CHROME_RENDERER_EXTENSIONS_SCHEMA_GENERATED_NATIVE_HANDLER_H_ |
OLD | NEW |