Index: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h |
index 251e58d8d84e5903d7882644edaf0b7373b91870..f6cef443e11845d424f04a9ccd719b64675b6703 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h |
@@ -7,6 +7,7 @@ |
#include "core/CoreExport.h" |
#include "platform/heap/Handle.h" |
+#include "platform/weborigin/KURL.h" |
#include "wtf/RefCounted.h" |
#include <v8.h> |
@@ -82,6 +83,8 @@ public: |
v8::ScriptCompiler::StreamedSource::Encoding encoding() const { return m_encoding; } |
+ const KURL& scriptURL() const { return m_scriptURL; } |
caseq
2016/03/18 23:36:04
We only care for the string representation of URL,
horo
2016/03/23 07:06:05
Done.
|
+ |
static void setSmallScriptThresholdForTesting(size_t threshold) |
{ |
s_smallScriptThreshold = threshold; |
@@ -136,6 +139,9 @@ private: |
// For recording metrics for different types of scripts separately. |
Type m_scriptType; |
+ // Keep the script URL for event tracing. |
+ KURL m_scriptURL; |
+ |
mutable Mutex m_mutex; |
// Encoding of the streamed script. Saved for sanity checking purposes. |