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 // TODO(dcarney): Remove this when UnsafePersistent is removed. | |
6 #define V8_ALLOW_ACCESS_TO_RAW_HANDLE_CONSTRUCTOR | |
7 | |
8 #include "chrome/renderer/extensions/object_backed_native_handler.h" | 5 #include "chrome/renderer/extensions/object_backed_native_handler.h" |
9 | 6 |
10 #include "base/logging.h" | 7 #include "base/logging.h" |
11 #include "base/memory/linked_ptr.h" | 8 #include "base/memory/linked_ptr.h" |
12 #include "chrome/renderer/extensions/chrome_v8_context.h" | 9 #include "chrome/renderer/extensions/chrome_v8_context.h" |
13 #include "chrome/renderer/extensions/console.h" | 10 #include "chrome/renderer/extensions/console.h" |
14 #include "chrome/renderer/extensions/module_system.h" | 11 #include "chrome/renderer/extensions/module_system.h" |
15 #include "v8/include/v8.h" | 12 #include "v8/include/v8.h" |
16 | 13 |
17 namespace extensions { | 14 namespace extensions { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 handler_function_value.As<v8::External>()->Value()); | 91 handler_function_value.As<v8::External>()->Value()); |
95 data->Delete(v8::String::NewFromUtf8(isolate, kHandlerFunction)); | 92 data->Delete(v8::String::NewFromUtf8(isolate, kHandlerFunction)); |
96 } | 93 } |
97 router_data_.Clear(); | 94 router_data_.Clear(); |
98 object_template_.reset(); | 95 object_template_.reset(); |
99 context_ = NULL; | 96 context_ = NULL; |
100 NativeHandler::Invalidate(); | 97 NativeHandler::Invalidate(); |
101 } | 98 } |
102 | 99 |
103 } // namespace extensions | 100 } // namespace extensions |
OLD | NEW |