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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" | 31 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" |
32 | 32 |
33 #include <memory> | 33 #include <memory> |
34 #include <utility> | 34 #include <utility> |
35 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 35 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
36 #include "bindings/core/v8/ScriptPromise.h" | 36 #include "bindings/core/v8/ScriptPromise.h" |
37 #include "bindings/core/v8/ScriptPromiseResolver.h" | 37 #include "bindings/core/v8/ScriptPromiseResolver.h" |
38 #include "bindings/core/v8/SourceLocation.h" | 38 #include "bindings/core/v8/SourceLocation.h" |
39 #include "bindings/core/v8/V8ThrowException.h" | |
40 #include "core/dom/ExceptionCode.h" | 39 #include "core/dom/ExceptionCode.h" |
41 #include "core/dom/ExecutionContext.h" | 40 #include "core/dom/ExecutionContext.h" |
42 #include "core/events/Event.h" | 41 #include "core/events/Event.h" |
43 #include "core/inspector/ConsoleMessage.h" | 42 #include "core/inspector/ConsoleMessage.h" |
44 #include "core/inspector/WorkerInspectorController.h" | 43 #include "core/inspector/WorkerInspectorController.h" |
45 #include "core/inspector/WorkerThreadDebugger.h" | 44 #include "core/inspector/WorkerThreadDebugger.h" |
46 #include "core/loader/ThreadableLoader.h" | 45 #include "core/loader/ThreadableLoader.h" |
47 #include "core/origin_trials/OriginTrialContext.h" | 46 #include "core/origin_trials/OriginTrialContext.h" |
48 #include "core/workers/WorkerClients.h" | 47 #include "core/workers/WorkerClients.h" |
49 #include "core/workers/WorkerThreadStartupData.h" | 48 #include "core/workers/WorkerThreadStartupData.h" |
50 #include "modules/EventTargetModules.h" | 49 #include "modules/EventTargetModules.h" |
51 #include "modules/fetch/GlobalFetch.h" | 50 #include "modules/fetch/GlobalFetch.h" |
52 #include "modules/serviceworkers/ServiceWorkerClients.h" | 51 #include "modules/serviceworkers/ServiceWorkerClients.h" |
53 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" | 52 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" |
54 #include "modules/serviceworkers/ServiceWorkerRegistration.h" | 53 #include "modules/serviceworkers/ServiceWorkerRegistration.h" |
55 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h" | 54 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h" |
56 #include "modules/serviceworkers/ServiceWorkerThread.h" | 55 #include "modules/serviceworkers/ServiceWorkerThread.h" |
57 #include "modules/serviceworkers/WaitUntilObserver.h" | 56 #include "modules/serviceworkers/WaitUntilObserver.h" |
58 #include "platform/Histogram.h" | 57 #include "platform/Histogram.h" |
59 #include "platform/bindings/ScriptState.h" | 58 #include "platform/bindings/ScriptState.h" |
| 59 #include "platform/bindings/V8ThrowException.h" |
60 #include "platform/loader/fetch/MemoryCache.h" | 60 #include "platform/loader/fetch/MemoryCache.h" |
61 #include "platform/loader/fetch/ResourceLoaderOptions.h" | 61 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
62 #include "platform/loader/fetch/ResourceRequest.h" | 62 #include "platform/loader/fetch/ResourceRequest.h" |
63 #include "platform/weborigin/KURL.h" | 63 #include "platform/weborigin/KURL.h" |
64 #include "platform/wtf/CurrentTime.h" | 64 #include "platform/wtf/CurrentTime.h" |
65 #include "platform/wtf/PtrUtil.h" | 65 #include "platform/wtf/PtrUtil.h" |
66 #include "public/platform/Platform.h" | 66 #include "public/platform/Platform.h" |
67 #include "public/platform/WebURL.h" | 67 #include "public/platform/WebURL.h" |
68 | 68 |
69 namespace blink { | 69 namespace blink { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 } | 237 } |
238 | 238 |
239 void ServiceWorkerGlobalScope::ExceptionThrown(ErrorEvent* event) { | 239 void ServiceWorkerGlobalScope::ExceptionThrown(ErrorEvent* event) { |
240 WorkerGlobalScope::ExceptionThrown(event); | 240 WorkerGlobalScope::ExceptionThrown(event); |
241 if (WorkerThreadDebugger* debugger = | 241 if (WorkerThreadDebugger* debugger = |
242 WorkerThreadDebugger::From(GetThread()->GetIsolate())) | 242 WorkerThreadDebugger::From(GetThread()->GetIsolate())) |
243 debugger->ExceptionThrown(GetThread(), event); | 243 debugger->ExceptionThrown(GetThread(), event); |
244 } | 244 } |
245 | 245 |
246 } // namespace blink | 246 } // namespace blink |
OLD | NEW |