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

Side by Side Diff: third_party/WebKit/Source/core/dom/ExecutionContext.h

Issue 1601283003: DevTools: deoilpanize inspector/v8 and related classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed. Created 4 years, 11 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 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. 3 * Copyright (C) 2012 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // not be used after the ExecutionContext is destroyed. 97 // not be used after the ExecutionContext is destroyed.
98 virtual DOMTimerCoordinator* timers() = 0; 98 virtual DOMTimerCoordinator* timers() = 0;
99 99
100 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) = 0; 100 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) = 0;
101 101
102 virtual SecurityContext& securityContext() = 0; 102 virtual SecurityContext& securityContext() = 0;
103 KURL contextURL() const { return virtualURL(); } 103 KURL contextURL() const { return virtualURL(); }
104 KURL contextCompleteURL(const String& url) const { return virtualCompleteURL (url); } 104 KURL contextCompleteURL(const String& url) const { return virtualCompleteURL (url); }
105 105
106 bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus) ; 106 bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus) ;
107 void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, int scriptId, PassR efPtrWillBeRawPtr<ScriptCallStack>, AccessControlStatus); 107 void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, int scriptId, PassR efPtr<ScriptCallStack>, AccessControlStatus);
108 108
109 virtual void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) = 0; 109 virtual void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) = 0;
110 virtual void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP tr<ScriptCallStack>) = 0; 110 virtual void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCal lStack>) = 0;
111 111
112 PublicURLManager& publicURLManager(); 112 PublicURLManager& publicURLManager();
113 113
114 virtual void removeURLFromMemoryCache(const KURL&); 114 virtual void removeURLFromMemoryCache(const KURL&);
115 115
116 void suspendActiveDOMObjects(); 116 void suspendActiveDOMObjects();
117 void resumeActiveDOMObjects(); 117 void resumeActiveDOMObjects();
118 void stopActiveDOMObjects(); 118 void stopActiveDOMObjects();
119 void postSuspendableTask(PassOwnPtr<SuspendableTask>); 119 void postSuspendableTask(PassOwnPtr<SuspendableTask>);
120 void notifyContextDestroyed() override; 120 void notifyContextDestroyed() override;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 #if !ENABLE(OILPAN) 173 #if !ENABLE(OILPAN)
174 virtual void refExecutionContext() = 0; 174 virtual void refExecutionContext() = 0;
175 virtual void derefExecutionContext() = 0; 175 virtual void derefExecutionContext() = 0;
176 #endif 176 #endif
177 // LifecycleContext implementation. 177 // LifecycleContext implementation.
178 178
179 unsigned m_circularSequentialID; 179 unsigned m_circularSequentialID;
180 180
181 bool m_inDispatchErrorEvent; 181 bool m_inDispatchErrorEvent;
182 class PendingException; 182 class PendingException;
183 OwnPtrWillBeMember<WillBeHeapVector<OwnPtrWillBeMember<PendingException>>> m _pendingExceptions; 183 OwnPtr<Vector<OwnPtr<PendingException>>> m_pendingExceptions;
184 184
185 bool m_activeDOMObjectsAreSuspended; 185 bool m_activeDOMObjectsAreSuspended;
186 bool m_activeDOMObjectsAreStopped; 186 bool m_activeDOMObjectsAreStopped;
187 187
188 OwnPtrWillBeMember<PublicURLManager> m_publicURLManager; 188 OwnPtrWillBeMember<PublicURLManager> m_publicURLManager;
189 189
190 // Counter that keeps track of how many window interaction calls are allowed 190 // Counter that keeps track of how many window interaction calls are allowed
191 // for this ExecutionContext. Callers are expected to call 191 // for this ExecutionContext. Callers are expected to call
192 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to 192 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to
193 // increment and decrement the counter. 193 // increment and decrement the counter.
194 int m_windowInteractionTokens; 194 int m_windowInteractionTokens;
195 195
196 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; 196 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks;
197 bool m_isRunSuspendableTasksScheduled; 197 bool m_isRunSuspendableTasksScheduled;
198 198
199 ReferrerPolicy m_referrerPolicy; 199 ReferrerPolicy m_referrerPolicy;
200 }; 200 };
201 201
202 } // namespace blink 202 } // namespace blink
203 203
204 #endif // ExecutionContext_h 204 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698