OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef EXTENSIONS_RENDERER_V8_HELPERS_H_ | 5 #ifndef EXTENSIONS_RENDERER_V8_HELPERS_H_ |
6 #define EXTENSIONS_RENDERER_V8_HELPERS_H_ | 6 #define EXTENSIONS_RENDERER_V8_HELPERS_H_ |
7 | 7 |
| 8 #include <stdint.h> |
8 #include <string.h> | 9 #include <string.h> |
9 | 10 |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "v8/include/v8.h" | 12 #include "v8/include/v8.h" |
12 | 13 |
13 namespace extensions { | 14 namespace extensions { |
14 namespace v8_helpers { | 15 namespace v8_helpers { |
15 | 16 |
16 // Helper functions for V8 APIs. | 17 // Helper functions for V8 APIs. |
17 | 18 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 int argc, | 129 int argc, |
129 v8::Local<v8::Value> argv[], | 130 v8::Local<v8::Value> argv[], |
130 v8::Local<v8::Value>* out) { | 131 v8::Local<v8::Value>* out) { |
131 return function->Call(context, recv, argc, argv).ToLocal(out); | 132 return function->Call(context, recv, argc, argv).ToLocal(out); |
132 } | 133 } |
133 | 134 |
134 } // namespace v8_helpers | 135 } // namespace v8_helpers |
135 } // namespace extensions | 136 } // namespace extensions |
136 | 137 |
137 #endif // EXTENSIONS_RENDERER_V8_HELPERS_H_ | 138 #endif // EXTENSIONS_RENDERER_V8_HELPERS_H_ |
OLD | NEW |