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/object_backed_native_handler.h" | 5 #include "extensions/renderer/object_backed_native_handler.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
9 #include "extensions/renderer/console.h" | 11 #include "extensions/renderer/console.h" |
10 #include "extensions/renderer/module_system.h" | 12 #include "extensions/renderer/module_system.h" |
11 #include "extensions/renderer/script_context.h" | 13 #include "extensions/renderer/script_context.h" |
12 #include "extensions/renderer/script_context_set.h" | 14 #include "extensions/renderer/script_context_set.h" |
13 #include "v8/include/v8.h" | 15 #include "v8/include/v8.h" |
14 | 16 |
15 namespace extensions { | 17 namespace extensions { |
16 | 18 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 v8::Local<v8::Object> obj, | 148 v8::Local<v8::Object> obj, |
147 const char* key) { | 149 const char* key) { |
148 obj->DeletePrivate(context, | 150 obj->DeletePrivate(context, |
149 v8::Private::ForApi( | 151 v8::Private::ForApi( |
150 context->GetIsolate(), | 152 context->GetIsolate(), |
151 v8::String::NewFromUtf8(context->GetIsolate(), key))) | 153 v8::String::NewFromUtf8(context->GetIsolate(), key))) |
152 .FromJust(); | 154 .FromJust(); |
153 } | 155 } |
154 | 156 |
155 } // namespace extensions | 157 } // namespace extensions |
OLD | NEW |