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

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

Issue 2141673002: [DevTools] Always send a copy of worker message through the page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/ConsoleMessage.h
diff --git a/third_party/WebKit/Source/core/inspector/ConsoleMessage.h b/third_party/WebKit/Source/core/inspector/ConsoleMessage.h
index 4d0b11fc8b3e3df7ff1ffc6726a7d9bb510ff073..d6e316d93309378004e2ec7b262afea5d76ecb5b 100644
--- a/third_party/WebKit/Source/core/inspector/ConsoleMessage.h
+++ b/third_party/WebKit/Source/core/inspector/ConsoleMessage.h
@@ -29,6 +29,9 @@ public:
// This method captures current location.
static ConsoleMessage* createForRequest(MessageSource, MessageLevel, const String& message, const String& url, unsigned long requestIdentifier);
+ // This creates message from WorkerMessageSource.
+ static ConsoleMessage* createFromWorker(MessageLevel, const String& message, std::unique_ptr<SourceLocation>, const String& workerId);
+
~ConsoleMessage();
SourceLocation* location() const;
@@ -37,6 +40,7 @@ public:
MessageSource source() const;
MessageLevel level() const;
const String& message() const;
+ const String& workerId() const;
DECLARE_TRACE();
@@ -49,6 +53,7 @@ private:
std::unique_ptr<SourceLocation> m_location;
unsigned long m_requestIdentifier;
double m_timestamp;
+ String m_workerId;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameConsole.cpp ('k') | third_party/WebKit/Source/core/inspector/ConsoleMessage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698