Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp

Issue 2856173004: Clean up bindings/core/v8 (Part 5) (Closed)
Patch Set: Fix build Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 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 21 matching lines...) Expand all
32 32
33 #include <memory> 33 #include <memory>
34 34
35 #include "bindings/core/v8/ScriptController.h" 35 #include "bindings/core/v8/ScriptController.h"
36 #include "bindings/core/v8/ScriptSourceCode.h" 36 #include "bindings/core/v8/ScriptSourceCode.h"
37 #include "bindings/core/v8/ScriptValue.h" 37 #include "bindings/core/v8/ScriptValue.h"
38 #include "bindings/core/v8/SourceLocation.h" 38 #include "bindings/core/v8/SourceLocation.h"
39 #include "bindings/core/v8/V8ErrorHandler.h" 39 #include "bindings/core/v8/V8ErrorHandler.h"
40 #include "bindings/core/v8/V8Initializer.h" 40 #include "bindings/core/v8/V8Initializer.h"
41 #include "bindings/core/v8/V8ScriptRunner.h" 41 #include "bindings/core/v8/V8ScriptRunner.h"
42 #include "bindings/core/v8/WrapperTypeInfo.h"
43 #include "core/dom/ExecutionContext.h" 42 #include "core/dom/ExecutionContext.h"
44 #include "core/events/ErrorEvent.h" 43 #include "core/events/ErrorEvent.h"
45 #include "core/inspector/InspectorTraceEvents.h" 44 #include "core/inspector/InspectorTraceEvents.h"
46 #include "core/inspector/WorkerThreadDebugger.h" 45 #include "core/inspector/WorkerThreadDebugger.h"
47 #include "core/workers/WorkerGlobalScope.h" 46 #include "core/workers/WorkerGlobalScope.h"
48 #include "core/workers/WorkerOrWorkletGlobalScope.h" 47 #include "core/workers/WorkerOrWorkletGlobalScope.h"
49 #include "core/workers/WorkerThread.h" 48 #include "core/workers/WorkerThread.h"
50 #include "platform/bindings/V8DOMWrapper.h" 49 #include "platform/bindings/V8DOMWrapper.h"
51 #include "platform/bindings/V8ObjectConstructor.h" 50 #include "platform/bindings/V8ObjectConstructor.h"
51 #include "platform/bindings/WrapperTypeInfo.h"
52 #include "platform/heap/ThreadState.h" 52 #include "platform/heap/ThreadState.h"
53 #include "public/platform/Platform.h" 53 #include "public/platform/Platform.h"
54 #include "v8/include/v8.h" 54 #include "v8/include/v8.h"
55 55
56 namespace blink { 56 namespace blink {
57 57
58 class WorkerOrWorkletScriptController::ExecutionState final { 58 class WorkerOrWorkletScriptController::ExecutionState final {
59 STACK_ALLOCATED(); 59 STACK_ALLOCATED();
60 60
61 public: 61 public:
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 execution_state_->error_event_from_imported_script_ = error_event; 360 execution_state_->error_event_from_imported_script_ = error_event;
361 exception_state.RethrowV8Exception( 361 exception_state.RethrowV8Exception(
362 V8ThrowException::CreateError(isolate_, error_message)); 362 V8ThrowException::CreateError(isolate_, error_message));
363 } 363 }
364 364
365 DEFINE_TRACE(WorkerOrWorkletScriptController) { 365 DEFINE_TRACE(WorkerOrWorkletScriptController) {
366 visitor->Trace(global_scope_); 366 visitor->Trace(global_scope_);
367 } 367 }
368 368
369 } // namespace blink 369 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698