| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "core/frame/LocalFrame.h" | 51 #include "core/frame/LocalFrame.h" |
| 52 #include "core/frame/csp/ContentSecurityPolicy.h" | 52 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 53 #include "core/inspector/ConsoleMessage.h" | 53 #include "core/inspector/ConsoleMessage.h" |
| 54 #include "core/inspector/MainThreadDebugger.h" | 54 #include "core/inspector/MainThreadDebugger.h" |
| 55 #include "core/workers/WorkerGlobalScope.h" | 55 #include "core/workers/WorkerGlobalScope.h" |
| 56 #include "platform/EventDispatchForbiddenScope.h" | 56 #include "platform/EventDispatchForbiddenScope.h" |
| 57 #include "platform/RuntimeEnabledFeatures.h" | 57 #include "platform/RuntimeEnabledFeatures.h" |
| 58 #include "platform/instrumentation/tracing/TraceEvent.h" | 58 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 59 #include "platform/loader/fetch/AccessControlStatus.h" | 59 #include "platform/loader/fetch/AccessControlStatus.h" |
| 60 #include "platform/weborigin/SecurityViolationReportingPolicy.h" | 60 #include "platform/weborigin/SecurityViolationReportingPolicy.h" |
| 61 #include "platform/wtf/AddressSanitizer.h" |
| 62 #include "platform/wtf/Assertions.h" |
| 63 #include "platform/wtf/PtrUtil.h" |
| 64 #include "platform/wtf/RefPtr.h" |
| 65 #include "platform/wtf/text/WTFString.h" |
| 66 #include "platform/wtf/typed_arrays/ArrayBufferContents.h" |
| 61 #include "public/platform/Platform.h" | 67 #include "public/platform/Platform.h" |
| 62 #include "public/platform/WebScheduler.h" | 68 #include "public/platform/WebScheduler.h" |
| 63 #include "public/platform/WebThread.h" | 69 #include "public/platform/WebThread.h" |
| 64 #include "v8/include/v8-debug.h" | 70 #include "v8/include/v8-debug.h" |
| 65 #include "v8/include/v8-profiler.h" | 71 #include "v8/include/v8-profiler.h" |
| 66 #include "wtf/AddressSanitizer.h" | |
| 67 #include "wtf/Assertions.h" | |
| 68 #include "wtf/PtrUtil.h" | |
| 69 #include "wtf/RefPtr.h" | |
| 70 #include "wtf/text/WTFString.h" | |
| 71 #include "wtf/typed_arrays/ArrayBufferContents.h" | |
| 72 | 72 |
| 73 namespace blink { | 73 namespace blink { |
| 74 | 74 |
| 75 static Frame* findFrame(v8::Isolate* isolate, | 75 static Frame* findFrame(v8::Isolate* isolate, |
| 76 v8::Local<v8::Object> host, | 76 v8::Local<v8::Object> host, |
| 77 v8::Local<v8::Value> data) { | 77 v8::Local<v8::Value> data) { |
| 78 const WrapperTypeInfo* type = WrapperTypeInfo::unwrap(data); | 78 const WrapperTypeInfo* type = WrapperTypeInfo::unwrap(data); |
| 79 | 79 |
| 80 if (V8Window::wrapperTypeInfo.equals(type)) { | 80 if (V8Window::wrapperTypeInfo.equals(type)) { |
| 81 v8::Local<v8::Object> windowWrapper = | 81 v8::Local<v8::Object> windowWrapper = |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 v8::Isolate::kMessageLog); | 577 v8::Isolate::kMessageLog); |
| 578 isolate->SetFatalErrorHandler(reportFatalErrorInWorker); | 578 isolate->SetFatalErrorHandler(reportFatalErrorInWorker); |
| 579 | 579 |
| 580 uint32_t here; | 580 uint32_t here; |
| 581 isolate->SetStackLimit(reinterpret_cast<uintptr_t>(&here) - | 581 isolate->SetStackLimit(reinterpret_cast<uintptr_t>(&here) - |
| 582 kWorkerMaxStackSize); | 582 kWorkerMaxStackSize); |
| 583 isolate->SetPromiseRejectCallback(promiseRejectHandlerInWorker); | 583 isolate->SetPromiseRejectCallback(promiseRejectHandlerInWorker); |
| 584 } | 584 } |
| 585 | 585 |
| 586 } // namespace blink | 586 } // namespace blink |
| OLD | NEW |