| 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 #include "chrome/renderer/extensions/native_handler.h" | 5 #include "chrome/renderer/extensions/native_handler.h" |
| 6 | 6 |
| 7 #include "base/memory/linked_ptr.h" | 7 #include "base/memory/linked_ptr.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/renderer/extensions/module_system.h" | 9 #include "chrome/renderer/extensions/module_system.h" |
| 10 #include "v8/include/v8.h" | 10 #include "v8/include/v8.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 void NativeHandler::RouteStaticFunction(const std::string& name, | 55 void NativeHandler::RouteStaticFunction(const std::string& name, |
| 56 const HandlerFunc handler_func) { | 56 const HandlerFunc handler_func) { |
| 57 v8::Handle<v8::FunctionTemplate> function_template = | 57 v8::Handle<v8::FunctionTemplate> function_template = |
| 58 v8::FunctionTemplate::New(handler_func, v8::External::New(this)); | 58 v8::FunctionTemplate::New(handler_func, v8::External::New(this)); |
| 59 object_template_->Set(name.c_str(), function_template); | 59 object_template_->Set(name.c_str(), function_template); |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // extensions | 62 } // extensions |
| OLD | NEW |