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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptLoader.h

Issue 1413193010: Add counters for various ways of loading scripts with bad mimetypes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix code and tests, passing again Created 5 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/dom/ScriptLoader.h
diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.h b/third_party/WebKit/Source/core/dom/ScriptLoader.h
index b449c45f057cb462922183df9d12f379d0222103..11ef2638385391a2f7fe51d7a12fa5ada691c544 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.h
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.h
@@ -35,6 +35,7 @@ namespace blink {
class Element;
class ScriptLoaderClient;
class ScriptSourceCode;
+class LocalFrame;
class CORE_EXPORT ScriptLoader : public NoBaseWillBeGarbageCollectedFinalized<ScriptLoader>, private ScriptResourceClient {
@@ -92,6 +93,7 @@ protected:
private:
bool ignoresLoadRequest() const;
bool isScriptForEventSupported() const;
+ void logScriptMimetype(ScriptResource*, LocalFrame*, String);
bool fetchScript(const String& sourceUrl, FetchRequest::DeferOption);

Powered by Google App Engine
This is Rietveld 408576698