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

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: rebase Created 5 years 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..6b53a6656812d0dddcb6820ace7ca86db20bc008 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.h
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.h
@@ -35,7 +35,7 @@ namespace blink {
class Element;
class ScriptLoaderClient;
class ScriptSourceCode;
-
+class LocalFrame;
class CORE_EXPORT ScriptLoader : public NoBaseWillBeGarbageCollectedFinalized<ScriptLoader>, private ScriptResourceClient {
USING_FAST_MALLOC_WILL_BE_REMOVED(ScriptLoader);
@@ -92,6 +92,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