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

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

Issue 307433003: Oilpan: Allocate all EventTarget derived types on the manged heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/workers/AbstractWorker.h ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class ScheduledAction; 53 class ScheduledAction;
54 class WorkerClients; 54 class WorkerClients;
55 class WorkerConsole; 55 class WorkerConsole;
56 class WorkerInspectorController; 56 class WorkerInspectorController;
57 class WorkerLocation; 57 class WorkerLocation;
58 class WorkerNavigator; 58 class WorkerNavigator;
59 class WorkerThread; 59 class WorkerThread;
60 60
61 class WorkerGlobalScope : public RefCountedWillBeRefCountedGarbageCollected< WorkerGlobalScope>, public ScriptWrappable, public SecurityContext, public Execu tionContext, public ExecutionContextClient, public WillBeHeapSupplementable<Work erGlobalScope>, public EventTargetWithInlineData, public DOMWindowBase64 { 61 class WorkerGlobalScope : public RefCountedWillBeRefCountedGarbageCollected< WorkerGlobalScope>, public ScriptWrappable, public SecurityContext, public Execu tionContext, public ExecutionContextClient, public WillBeHeapSupplementable<Work erGlobalScope>, public EventTargetWithInlineData, public DOMWindowBase64 {
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScope); 62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScope);
63 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollect ed<WorkerGlobalScope>); 63 REFCOUNTED_EVENT_TARGET(WorkerGlobalScope);
64 public: 64 public:
65 virtual ~WorkerGlobalScope(); 65 virtual ~WorkerGlobalScope();
66 66
67 virtual bool isWorkerGlobalScope() const OVERRIDE FINAL { return true; } 67 virtual bool isWorkerGlobalScope() const OVERRIDE FINAL { return true; }
68 68
69 virtual ExecutionContext* executionContext() const OVERRIDE FINAL; 69 virtual ExecutionContext* executionContext() const OVERRIDE FINAL;
70 70
71 virtual bool isSharedWorkerGlobalScope() const { return false; } 71 virtual bool isSharedWorkerGlobalScope() const { return false; }
72 virtual bool isDedicatedWorkerGlobalScope() const { return false; } 72 virtual bool isDedicatedWorkerGlobalScope() const { return false; }
73 virtual bool isServiceWorkerGlobalScope() const { return false; } 73 virtual bool isServiceWorkerGlobalScope() const { return false; }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 bool idleNotification(); 132 bool idleNotification();
133 133
134 double timeOrigin() const { return m_timeOrigin; } 134 double timeOrigin() const { return m_timeOrigin; }
135 135
136 WorkerClients* clients() { return m_workerClients.get(); } 136 WorkerClients* clients() { return m_workerClients.get(); }
137 137
138 using SecurityContext::securityOrigin; 138 using SecurityContext::securityOrigin;
139 using SecurityContext::contentSecurityPolicy; 139 using SecurityContext::contentSecurityPolicy;
140 140
141 virtual void trace(Visitor*); 141 virtual void trace(Visitor*) OVERRIDE;
142 142
143 protected: 143 protected:
144 WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, d ouble timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>); 144 WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, d ouble timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>);
145 void applyContentSecurityPolicyFromString(const String& contentSecurityP olicy, ContentSecurityPolicyHeaderType); 145 void applyContentSecurityPolicyFromString(const String& contentSecurityP olicy, ContentSecurityPolicyHeaderType);
146 146
147 virtual void logExceptionToConsole(const String& errorMessage, const Str ing& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) O VERRIDE; 147 virtual void logExceptionToConsole(const String& errorMessage, const Str ing& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) O VERRIDE;
148 void addMessageToWorkerConsole(MessageSource, MessageLevel, const String & message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallSt ack>, ScriptState*); 148 void addMessageToWorkerConsole(MessageSource, MessageLevel, const String & message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallSt ack>, ScriptState*);
149 149
150 private: 150 private:
151 virtual void refExecutionContext() OVERRIDE FINAL { ref(); } 151 virtual void refExecutionContext() OVERRIDE FINAL { ref(); }
(...skipping 27 matching lines...) Expand all
179 179
180 double m_timeOrigin; 180 double m_timeOrigin;
181 TerminationObserver* m_terminationObserver; 181 TerminationObserver* m_terminationObserver;
182 }; 182 };
183 183
184 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope()); 184 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope());
185 185
186 } // namespace WebCore 186 } // namespace WebCore
187 187
188 #endif // WorkerGlobalScope_h 188 #endif // WorkerGlobalScope_h
OLDNEW
« no previous file with comments | « Source/core/workers/AbstractWorker.h ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698