OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 12 matching lines...) Expand all Loading... |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "bindings/core/v8/V8PerContextData.h" | 31 #include "bindings/core/v8/V8PerContextData.h" |
32 | 32 |
| 33 #include <stdlib.h> |
| 34 #include <memory> |
33 #include "bindings/core/v8/ConditionalFeatures.h" | 35 #include "bindings/core/v8/ConditionalFeatures.h" |
34 #include "bindings/core/v8/ScriptState.h" | 36 #include "bindings/core/v8/ScriptState.h" |
35 #include "bindings/core/v8/V8Binding.h" | 37 #include "bindings/core/v8/V8Binding.h" |
36 #include "bindings/core/v8/V8ObjectConstructor.h" | 38 #include "bindings/core/v8/V8ObjectConstructor.h" |
37 #include "core/dom/Modulator.h" | 39 #include "core/dom/Modulator.h" |
38 #include "platform/InstanceCounters.h" | 40 #include "platform/InstanceCounters.h" |
39 #include "wtf/PtrUtil.h" | 41 #include "wtf/PtrUtil.h" |
40 #include "wtf/StringExtras.h" | 42 #include "wtf/StringExtras.h" |
41 #include <memory> | |
42 #include <stdlib.h> | |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 V8PerContextData::V8PerContextData(v8::Local<v8::Context> context) | 46 V8PerContextData::V8PerContextData(v8::Local<v8::Context> context) |
47 : m_isolate(context->GetIsolate()), | 47 : m_isolate(context->GetIsolate()), |
48 m_wrapperBoilerplates(m_isolate), | 48 m_wrapperBoilerplates(m_isolate), |
49 m_constructorMap(m_isolate), | 49 m_constructorMap(m_isolate), |
50 m_contextHolder(WTF::makeUnique<gin::ContextHolder>(m_isolate)), | 50 m_contextHolder(WTF::makeUnique<gin::ContextHolder>(m_isolate)), |
51 m_context(m_isolate, context), | 51 m_context(m_isolate, context), |
52 m_activityLogger(nullptr) { | 52 m_activityLogger(nullptr) { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 DCHECK(!m_modulator); | 193 DCHECK(!m_modulator); |
194 DCHECK(modulator); | 194 DCHECK(modulator); |
195 m_modulator = modulator; | 195 m_modulator = modulator; |
196 } | 196 } |
197 | 197 |
198 void V8PerContextData::clearModulator() { | 198 void V8PerContextData::clearModulator() { |
199 m_modulator = nullptr; | 199 m_modulator = nullptr; |
200 } | 200 } |
201 | 201 |
202 } // namespace blink | 202 } // namespace blink |
OLD | NEW |