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

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

Issue 2006893004: Store SourceLocation in ErrorEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2010603002
Patch Set: rebased Created 4 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
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(ErrorEvent*, PassOwnPtr<SourceLocation>, AccessControlS tatus); 107 void reportException(ErrorEvent*, AccessControlStatus);
108 108
109 virtual void addConsoleMessage(ConsoleMessage*) = 0; 109 virtual void addConsoleMessage(ConsoleMessage*) = 0;
110 virtual void logExceptionToConsole(const String& errorMessage, PassOwnPtr<So urceLocation>) = 0; 110 virtual void logExceptionToConsole(const String& errorMessage, PassOwnPtr<So urceLocation>) = 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();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; 183 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks;
184 bool m_isRunSuspendableTasksScheduled; 184 bool m_isRunSuspendableTasksScheduled;
185 185
186 ReferrerPolicy m_referrerPolicy; 186 ReferrerPolicy m_referrerPolicy;
187 }; 187 };
188 188
189 } // namespace blink 189 } // namespace blink
190 190
191 #endif // ExecutionContext_h 191 #endif // ExecutionContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698