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

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

Issue 1291313002: [Oilpan] Move WorkerScriptController to Oilpan heap on Oilpan build (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Work for comments Created 5 years, 4 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 #endif 160 #endif
161 161
162 const KURL& virtualURL() const final; 162 const KURL& virtualURL() const final;
163 KURL virtualCompleteURL(const String&) const final; 163 KURL virtualCompleteURL(const String&) const final;
164 164
165 void reportBlockedScriptExecutionToInspector(const String& directiveText) fi nal; 165 void reportBlockedScriptExecutionToInspector(const String& directiveText) fi nal;
166 166
167 EventTarget* errorEventTarget() final; 167 EventTarget* errorEventTarget() final;
168 void didUpdateSecurityOrigin() final { } 168 void didUpdateSecurityOrigin() final { }
169 169
170 void clearScript() { m_script.clear(); } 170 void clearScript();
171 void clearInspector(); 171 void clearInspector();
172 172
173 static void removeURLFromMemoryCacheInternal(const KURL&); 173 static void removeURLFromMemoryCacheInternal(const KURL&);
174 174
175 KURL m_url; 175 KURL m_url;
176 String m_userAgent; 176 String m_userAgent;
177 V8CacheOptions m_v8CacheOptions; 177 V8CacheOptions m_v8CacheOptions;
178 178
179 mutable PersistentWillBeMember<WorkerConsole> m_console; 179 mutable PersistentWillBeMember<WorkerConsole> m_console;
180 mutable PersistentWillBeMember<WorkerLocation> m_location; 180 mutable PersistentWillBeMember<WorkerLocation> m_location;
181 mutable PersistentWillBeMember<WorkerNavigator> m_navigator; 181 mutable PersistentWillBeMember<WorkerNavigator> m_navigator;
182 182
183 mutable UseCounter::CountBits m_deprecationWarningBits; 183 mutable UseCounter::CountBits m_deprecationWarningBits;
184 184
185 OwnPtr<WorkerScriptController> m_script; 185 OwnPtrWillBeMember<WorkerScriptController> m_script;
186 WorkerThread* m_thread; 186 WorkerThread* m_thread;
187 187
188 RefPtrWillBeMember<WorkerInspectorController> m_workerInspectorController; 188 RefPtrWillBeMember<WorkerInspectorController> m_workerInspectorController;
189 bool m_closing; 189 bool m_closing;
190 190
191 OwnPtrWillBeMember<WorkerEventQueue> m_eventQueue; 191 OwnPtrWillBeMember<WorkerEventQueue> m_eventQueue;
192 192
193 OwnPtrWillBeMember<WorkerClients> m_workerClients; 193 OwnPtrWillBeMember<WorkerClients> m_workerClients;
194 194
195 DOMTimerCoordinator m_timers; 195 DOMTimerCoordinator m_timers;
196 196
197 double m_timeOrigin; 197 double m_timeOrigin;
198 198
199 OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage; 199 OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage;
200 200
201 unsigned long m_workerExceptionUniqueIdentifier; 201 unsigned long m_workerExceptionUniqueIdentifier;
202 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi ngMessages; 202 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi ngMessages;
203 }; 203 };
204 204
205 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope()); 205 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope());
206 206
207 } // namespace blink 207 } // namespace blink
208 208
209 #endif // WorkerGlobalScope_h 209 #endif // WorkerGlobalScope_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/WorkerScriptController.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698