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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 years, 8 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) 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Apple 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 29 matching lines...) Expand all
40 #include "core/frame/csp/ContentSecurityPolicy.h" 40 #include "core/frame/csp/ContentSecurityPolicy.h"
41 #include "core/workers/WorkerEventQueue.h" 41 #include "core/workers/WorkerEventQueue.h"
42 #include "core/workers/WorkerOrWorkletGlobalScope.h" 42 #include "core/workers/WorkerOrWorkletGlobalScope.h"
43 #include "platform/heap/Handle.h" 43 #include "platform/heap/Handle.h"
44 #include "platform/network/ContentSecurityPolicyParsers.h" 44 #include "platform/network/ContentSecurityPolicyParsers.h"
45 #include "wtf/Assertions.h" 45 #include "wtf/Assertions.h"
46 #include "wtf/HashMap.h" 46 #include "wtf/HashMap.h"
47 #include "wtf/ListHashSet.h" 47 #include "wtf/ListHashSet.h"
48 #include "wtf/OwnPtr.h" 48 #include "wtf/OwnPtr.h"
49 #include "wtf/PassRefPtr.h" 49 #include "wtf/PassRefPtr.h"
50 #include "wtf/RefCounted.h"
51 #include "wtf/RefPtr.h" 50 #include "wtf/RefPtr.h"
52 #include "wtf/text/AtomicStringHash.h" 51 #include "wtf/text/AtomicStringHash.h"
53 52
54 namespace blink { 53 namespace blink {
55 54
56 class ConsoleMessage; 55 class ConsoleMessage;
57 class ConsoleMessageStorage; 56 class ConsoleMessageStorage;
58 class ExceptionState; 57 class ExceptionState;
59 class V8AbstractEventListener; 58 class V8AbstractEventListener;
60 class WorkerClients; 59 class WorkerClients;
61 class WorkerConsole; 60 class WorkerConsole;
62 class WorkerInspectorController; 61 class WorkerInspectorController;
63 class WorkerLocation; 62 class WorkerLocation;
64 class WorkerNavigator; 63 class WorkerNavigator;
65 class WorkerThread; 64 class WorkerThread;
66 65
67 class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData, public S ecurityContext, public WorkerOrWorkletGlobalScope, public HeapSupplementable<Wor kerGlobalScope>, public DOMWindowBase64 { 66 class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData, public S ecurityContext, public WorkerOrWorkletGlobalScope, public Supplementable<WorkerG lobalScope>, public DOMWindowBase64 {
68 DEFINE_WRAPPERTYPEINFO(); 67 DEFINE_WRAPPERTYPEINFO();
69 REFCOUNTED_EVENT_TARGET(WorkerGlobalScope); 68 REFCOUNTED_EVENT_TARGET(WorkerGlobalScope);
70 USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScope); 69 USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScope);
71 public: 70 public:
72 ~WorkerGlobalScope() override; 71 ~WorkerGlobalScope() override;
73 72
74 bool isWorkerGlobalScope() const final { return true; } 73 bool isWorkerGlobalScope() const final { return true; }
75 74
76 ExecutionContext* getExecutionContext() const final; 75 ExecutionContext* getExecutionContext() const final;
77 ScriptWrappable* getScriptWrappable() const final 76 ScriptWrappable* getScriptWrappable() const final
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 unsigned long m_workerExceptionUniqueIdentifier; 209 unsigned long m_workerExceptionUniqueIdentifier;
211 HeapHashMap<unsigned long, Member<ConsoleMessage>> m_pendingMessages; 210 HeapHashMap<unsigned long, Member<ConsoleMessage>> m_pendingMessages;
212 HeapListHashSet<Member<V8AbstractEventListener>> m_eventListeners; 211 HeapListHashSet<Member<V8AbstractEventListener>> m_eventListeners;
213 }; 212 };
214 213
215 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope()); 214 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope());
216 215
217 } // namespace blink 216 } // namespace blink
218 217
219 #endif // WorkerGlobalScope_h 218 #endif // WorkerGlobalScope_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerClients.h ('k') | third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698