Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(843)

Side by Side Diff: chrome/renderer/extensions/native_handler.cc

Issue 12313142: Revert 184837 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/native_handler.h ('k') | chrome/renderer/extensions/object_backed_native_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698