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

Unified Diff: third_party/WebKit/Source/core/frame/PerformanceMonitor.h

Issue 2502843002: DevTools: issue document.write(script) violation reports. (Closed)
Patch Set: rebaselined Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/PerformanceMonitor.h
diff --git a/third_party/WebKit/Source/core/frame/PerformanceMonitor.h b/third_party/WebKit/Source/core/frame/PerformanceMonitor.h
index 07e018c3460edbb2c87b7eab429e4bf9ebc88ef0..da35d061459834a174fb7b235461e1315f120dc6 100644
--- a/third_party/WebKit/Source/core/frame/PerformanceMonitor.h
+++ b/third_party/WebKit/Source/core/frame/PerformanceMonitor.h
@@ -31,7 +31,13 @@ class CORE_EXPORT PerformanceMonitor final
WTF_MAKE_NONCOPYABLE(PerformanceMonitor);
public:
- enum Violation : size_t { kLongTask, kLongLayout, kBlockedEvent, kAfterLast };
+ enum Violation : size_t {
+ kLongTask,
+ kLongLayout,
+ kBlockedEvent,
+ kBlockedParser,
+ kAfterLast
+ };
class CORE_EXPORT Client : public GarbageCollectedMixin {
public:
@@ -54,6 +60,7 @@ class CORE_EXPORT PerformanceMonitor final
static void didUpdateLayout(Document*);
static void willRecalculateStyle(Document*);
static void didRecalculateStyle(Document*);
+ static void documentWriteFetchScript(Document*);
static void reportGenericViolation(ExecutionContext*,
Violation,
const String& text,
@@ -85,6 +92,10 @@ class CORE_EXPORT PerformanceMonitor final
void didUpdateLayout();
void willRecalculateStyle();
void didRecalculateStyle();
+ void reportGenericViolation(Violation,
+ const String& text,
+ double time,
+ SourceLocation*);
// WebThread::TaskObserver implementation.
void willProcessTask() override;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698