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

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

Issue 901143002: Support deprecation warnings in shared/service workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 21 matching lines...) Expand all
32 #include "core/events/EventListener.h" 32 #include "core/events/EventListener.h"
33 #include "core/events/EventTarget.h" 33 #include "core/events/EventTarget.h"
34 #include "core/frame/DOMTimerCoordinator.h" 34 #include "core/frame/DOMTimerCoordinator.h"
35 #include "core/frame/DOMWindowBase64.h" 35 #include "core/frame/DOMWindowBase64.h"
36 #include "core/frame/UseCounter.h" 36 #include "core/frame/UseCounter.h"
37 #include "core/frame/csp/ContentSecurityPolicy.h" 37 #include "core/frame/csp/ContentSecurityPolicy.h"
38 #include "core/workers/WorkerEventQueue.h" 38 #include "core/workers/WorkerEventQueue.h"
39 #include "platform/heap/Handle.h" 39 #include "platform/heap/Handle.h"
40 #include "platform/network/ContentSecurityPolicyParsers.h" 40 #include "platform/network/ContentSecurityPolicyParsers.h"
41 #include "wtf/Assertions.h" 41 #include "wtf/Assertions.h"
42 #include "wtf/BitVector.h"
42 #include "wtf/HashMap.h" 43 #include "wtf/HashMap.h"
43 #include "wtf/OwnPtr.h" 44 #include "wtf/OwnPtr.h"
44 #include "wtf/PassRefPtr.h" 45 #include "wtf/PassRefPtr.h"
45 #include "wtf/RefCounted.h" 46 #include "wtf/RefCounted.h"
46 #include "wtf/RefPtr.h" 47 #include "wtf/RefPtr.h"
47 #include "wtf/text/AtomicStringHash.h" 48 #include "wtf/text/AtomicStringHash.h"
48 49
49 namespace blink { 50 namespace blink {
50 51
51 class ConsoleMessage; 52 class ConsoleMessage;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 virtual EventTarget* errorEventTarget() override final; 153 virtual EventTarget* errorEventTarget() override final;
153 virtual void didUpdateSecurityOrigin() override final { } 154 virtual void didUpdateSecurityOrigin() override final { }
154 155
155 KURL m_url; 156 KURL m_url;
156 String m_userAgent; 157 String m_userAgent;
157 158
158 mutable RefPtrWillBeMember<WorkerConsole> m_console; 159 mutable RefPtrWillBeMember<WorkerConsole> m_console;
159 mutable RefPtrWillBeMember<WorkerLocation> m_location; 160 mutable RefPtrWillBeMember<WorkerLocation> m_location;
160 mutable RefPtrWillBeMember<WorkerNavigator> m_navigator; 161 mutable RefPtrWillBeMember<WorkerNavigator> m_navigator;
161 162
163 mutable OwnPtr<BitVector> m_deprecationWarningBits;
sof 2015/02/05 08:48:18 Did you consider factoring UseCounter a bit so as
Kunihiko Sakamoto 2015/02/05 10:35:37 Factored it to UseCounter::CountBits class.
164
162 OwnPtr<WorkerScriptController> m_script; 165 OwnPtr<WorkerScriptController> m_script;
163 WorkerThread* m_thread; 166 WorkerThread* m_thread;
164 167
165 RefPtrWillBeMember<WorkerInspectorController> m_workerInspectorController; 168 RefPtrWillBeMember<WorkerInspectorController> m_workerInspectorController;
166 bool m_closing; 169 bool m_closing;
167 170
168 OwnPtrWillBeMember<WorkerEventQueue> m_eventQueue; 171 OwnPtrWillBeMember<WorkerEventQueue> m_eventQueue;
169 172
170 OwnPtrWillBeMember<WorkerClients> m_workerClients; 173 OwnPtrWillBeMember<WorkerClients> m_workerClients;
171 174
172 DOMTimerCoordinator m_timers; 175 DOMTimerCoordinator m_timers;
173 176
174 double m_timeOrigin; 177 double m_timeOrigin;
175 178
176 OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage; 179 OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage;
177 180
178 unsigned long m_workerExceptionUniqueIdentifier; 181 unsigned long m_workerExceptionUniqueIdentifier;
179 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi ngMessages; 182 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi ngMessages;
180 }; 183 };
181 184
182 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope()); 185 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope());
183 186
184 } // namespace blink 187 } // namespace blink
185 188
186 #endif // WorkerGlobalScope_h 189 #endif // WorkerGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698