OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/renderer/binding_generating_native_handler.h" | 5 #include "extensions/renderer/binding_generating_native_handler.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "extensions/renderer/script_context.h" | 8 #include "extensions/renderer/script_context.h" |
8 #include "extensions/renderer/v8_helpers.h" | 9 #include "extensions/renderer/v8_helpers.h" |
9 | 10 |
10 namespace extensions { | 11 namespace extensions { |
11 | 12 |
12 using namespace v8_helpers; | 13 using namespace v8_helpers; |
13 | 14 |
14 BindingGeneratingNativeHandler::BindingGeneratingNativeHandler( | 15 BindingGeneratingNativeHandler::BindingGeneratingNativeHandler( |
15 ScriptContext* context, | 16 ScriptContext* context, |
16 const std::string& api_name, | 17 const std::string& api_name, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // result[bind_to] = ...; | 103 // result[bind_to] = ...; |
103 if (!SetProperty(v8_context, object, v8_bind_to, compiled_schema)) { | 104 if (!SetProperty(v8_context, object, v8_bind_to, compiled_schema)) { |
104 NOTREACHED(); | 105 NOTREACHED(); |
105 return v8::Local<v8::Object>(); | 106 return v8::Local<v8::Object>(); |
106 } | 107 } |
107 // return result; | 108 // return result; |
108 return scope.Escape(object); | 109 return scope.Escape(object); |
109 } | 110 } |
110 | 111 |
111 } // namespace extensions | 112 } // namespace extensions |
OLD | NEW |