| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "core/inspector/MainThreadDebugger.h" | 53 #include "core/inspector/MainThreadDebugger.h" |
| 54 #include "core/loader/FrameLoader.h" | 54 #include "core/loader/FrameLoader.h" |
| 55 #include "core/origin_trials/OriginTrialContext.h" | 55 #include "core/origin_trials/OriginTrialContext.h" |
| 56 #include "platform/Histogram.h" | 56 #include "platform/Histogram.h" |
| 57 #include "platform/RuntimeEnabledFeatures.h" | 57 #include "platform/RuntimeEnabledFeatures.h" |
| 58 #include "platform/ScriptForbiddenScope.h" | 58 #include "platform/ScriptForbiddenScope.h" |
| 59 #include "platform/heap/Handle.h" | 59 #include "platform/heap/Handle.h" |
| 60 #include "platform/instrumentation/tracing/TraceEvent.h" | 60 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 61 #include "platform/weborigin/SecurityOrigin.h" | 61 #include "platform/weborigin/SecurityOrigin.h" |
| 62 #include "platform/weborigin/SecurityViolationReportingPolicy.h" | 62 #include "platform/weborigin/SecurityViolationReportingPolicy.h" |
| 63 #include "platform/wtf/Assertions.h" |
| 63 #include "v8/include/v8.h" | 64 #include "v8/include/v8.h" |
| 64 #include "wtf/Assertions.h" | |
| 65 | 65 |
| 66 namespace blink { | 66 namespace blink { |
| 67 | 67 |
| 68 void LocalWindowProxy::disposeContext(GlobalDetachmentBehavior behavior) { | 68 void LocalWindowProxy::disposeContext(GlobalDetachmentBehavior behavior) { |
| 69 if (m_lifecycle != Lifecycle::ContextIsInitialized) | 69 if (m_lifecycle != Lifecycle::ContextIsInitialized) |
| 70 return; | 70 return; |
| 71 | 71 |
| 72 ScriptState::Scope scope(m_scriptState.get()); | 72 ScriptState::Scope scope(m_scriptState.get()); |
| 73 v8::Local<v8::Context> context = m_scriptState->context(); | 73 v8::Local<v8::Context> context = m_scriptState->context(); |
| 74 // The embedder could run arbitrary code in response to the | 74 // The embedder could run arbitrary code in response to the |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 | 436 |
| 437 setSecurityToken(origin); | 437 setSecurityToken(origin); |
| 438 } | 438 } |
| 439 | 439 |
| 440 LocalWindowProxy::LocalWindowProxy(v8::Isolate* isolate, | 440 LocalWindowProxy::LocalWindowProxy(v8::Isolate* isolate, |
| 441 LocalFrame& frame, | 441 LocalFrame& frame, |
| 442 RefPtr<DOMWrapperWorld> world) | 442 RefPtr<DOMWrapperWorld> world) |
| 443 : WindowProxy(isolate, frame, std::move(world)) {} | 443 : WindowProxy(isolate, frame, std::move(world)) {} |
| 444 | 444 |
| 445 } // namespace blink | 445 } // namespace blink |
| OLD | NEW |