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

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

Issue 2116563003: [DevTools] Report unhandled exceptions and promise rejections through Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after ExceptionDetails change Created 4 years, 5 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
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*, AccessControlStatus); 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, std::unique_p tr<SourceLocation>) = 0; 110 virtual void exceptionThrown(const String& errorMessage, std::unique_ptr<Sou rceLocation>) = 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(std::unique_ptr<SuspendableTask>); 119 void postSuspendableTask(std::unique_ptr<SuspendableTask>);
120 void notifyContextDestroyed() override; 120 void notifyContextDestroyed() override;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks; 188 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks;
189 bool m_isRunSuspendableTasksScheduled; 189 bool m_isRunSuspendableTasksScheduled;
190 190
191 ReferrerPolicy m_referrerPolicy; 191 ReferrerPolicy m_referrerPolicy;
192 }; 192 };
193 193
194 } // namespace blink 194 } // namespace blink
195 195
196 #endif // ExecutionContext_h 196 #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