| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 20 matching lines...) Expand all Loading... |
| 31 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" | 31 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" |
| 32 | 32 |
| 33 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 33 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
| 34 #include "bindings/core/v8/ScriptPromise.h" | 34 #include "bindings/core/v8/ScriptPromise.h" |
| 35 #include "bindings/core/v8/ScriptPromiseResolver.h" | 35 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 36 #include "bindings/core/v8/ScriptState.h" | 36 #include "bindings/core/v8/ScriptState.h" |
| 37 #include "bindings/core/v8/SourceLocation.h" | 37 #include "bindings/core/v8/SourceLocation.h" |
| 38 #include "bindings/core/v8/V8ThrowException.h" | 38 #include "bindings/core/v8/V8ThrowException.h" |
| 39 #include "core/dom/ExceptionCode.h" | 39 #include "core/dom/ExceptionCode.h" |
| 40 #include "core/events/Event.h" | 40 #include "core/events/Event.h" |
| 41 #include "core/fetch/MemoryCache.h" | |
| 42 #include "core/fetch/ResourceLoaderOptions.h" | |
| 43 #include "core/inspector/ConsoleMessage.h" | 41 #include "core/inspector/ConsoleMessage.h" |
| 44 #include "core/inspector/WorkerInspectorController.h" | 42 #include "core/inspector/WorkerInspectorController.h" |
| 45 #include "core/inspector/WorkerThreadDebugger.h" | 43 #include "core/inspector/WorkerThreadDebugger.h" |
| 46 #include "core/loader/ThreadableLoader.h" | 44 #include "core/loader/ThreadableLoader.h" |
| 47 #include "core/origin_trials/OriginTrialContext.h" | 45 #include "core/origin_trials/OriginTrialContext.h" |
| 48 #include "core/workers/WorkerClients.h" | 46 #include "core/workers/WorkerClients.h" |
| 49 #include "core/workers/WorkerThreadStartupData.h" | 47 #include "core/workers/WorkerThreadStartupData.h" |
| 50 #include "modules/EventTargetModules.h" | 48 #include "modules/EventTargetModules.h" |
| 51 #include "modules/fetch/GlobalFetch.h" | 49 #include "modules/fetch/GlobalFetch.h" |
| 52 #include "modules/serviceworkers/ServiceWorkerClients.h" | 50 #include "modules/serviceworkers/ServiceWorkerClients.h" |
| 53 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" | 51 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" |
| 54 #include "modules/serviceworkers/ServiceWorkerRegistration.h" | 52 #include "modules/serviceworkers/ServiceWorkerRegistration.h" |
| 55 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h" | 53 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h" |
| 56 #include "modules/serviceworkers/ServiceWorkerThread.h" | 54 #include "modules/serviceworkers/ServiceWorkerThread.h" |
| 57 #include "modules/serviceworkers/WaitUntilObserver.h" | 55 #include "modules/serviceworkers/WaitUntilObserver.h" |
| 58 #include "platform/Histogram.h" | 56 #include "platform/Histogram.h" |
| 57 #include "platform/loader/fetch/MemoryCache.h" |
| 58 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
| 59 #include "platform/network/ResourceRequest.h" | 59 #include "platform/network/ResourceRequest.h" |
| 60 #include "platform/weborigin/KURL.h" | 60 #include "platform/weborigin/KURL.h" |
| 61 #include "public/platform/Platform.h" | 61 #include "public/platform/Platform.h" |
| 62 #include "public/platform/WebURL.h" | 62 #include "public/platform/WebURL.h" |
| 63 #include "wtf/CurrentTime.h" | 63 #include "wtf/CurrentTime.h" |
| 64 #include "wtf/PtrUtil.h" | 64 #include "wtf/PtrUtil.h" |
| 65 #include <memory> | 65 #include <memory> |
| 66 #include <utility> | 66 #include <utility> |
| 67 | 67 |
| 68 namespace blink { | 68 namespace blink { |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 } | 254 } |
| 255 | 255 |
| 256 void ServiceWorkerGlobalScope::exceptionThrown(ErrorEvent* event) { | 256 void ServiceWorkerGlobalScope::exceptionThrown(ErrorEvent* event) { |
| 257 WorkerGlobalScope::exceptionThrown(event); | 257 WorkerGlobalScope::exceptionThrown(event); |
| 258 if (WorkerThreadDebugger* debugger = | 258 if (WorkerThreadDebugger* debugger = |
| 259 WorkerThreadDebugger::from(thread()->isolate())) | 259 WorkerThreadDebugger::from(thread()->isolate())) |
| 260 debugger->exceptionThrown(thread(), event); | 260 debugger->exceptionThrown(thread(), event); |
| 261 } | 261 } |
| 262 | 262 |
| 263 } // namespace blink | 263 } // namespace blink |
| OLD | NEW |