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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLogAgent.h

Issue 2474073005: DevTools: add the logging aspect into the PerformanceMonitor (Closed)
Patch Set: test fixed 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/inspector/InspectorLogAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLogAgent.h b/third_party/WebKit/Source/core/inspector/InspectorLogAgent.h
index ae1f9c157fe3971c64b5c498d49a114dbbd14fdc..d9de42d89b6b8c69bd00d2b15d556be375a061c4 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLogAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorLogAgent.h
@@ -13,13 +13,14 @@ namespace blink {
class ConsoleMessage;
class ConsoleMessageStorage;
+class PerformanceMonitor;
class CORE_EXPORT InspectorLogAgent
: public InspectorBaseAgent<protocol::Log::Metainfo> {
WTF_MAKE_NONCOPYABLE(InspectorLogAgent);
public:
- explicit InspectorLogAgent(ConsoleMessageStorage*);
+ InspectorLogAgent(ConsoleMessageStorage*, PerformanceMonitor*);
~InspectorLogAgent() override;
DECLARE_VIRTUAL_TRACE();
@@ -32,10 +33,12 @@ class CORE_EXPORT InspectorLogAgent
Response enable() override;
Response disable() override;
Response clear() override;
+ Response setReportViolationsEnabled(bool) override;
private:
bool m_enabled;
Member<ConsoleMessageStorage> m_storage;
+ Member<PerformanceMonitor> m_performanceMonitor;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698