Index: third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp |
diff --git a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp |
index bdd886eff5e30c47c1fa60e3aa6587397e1c1f85..1e3dc90ee6c08a7b9445d14f51d849c2945d16bb 100644 |
--- a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp |
+++ b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp |
@@ -32,7 +32,7 @@ |
#include "core/html/parser/TextResourceDecoder.h" |
#include "core/inspector/ConsoleMessage.h" |
#include "core/loader/WorkerThreadableLoader.h" |
-#include "core/loader/resource/ScriptResource.h" |
+#include "core/loader/resource/ScriptResourceData.h" |
#include "core/origin_trials/OriginTrialContext.h" |
#include "core/workers/WorkerGlobalScope.h" |
#include "platform/HTTPNames.h" |
@@ -141,7 +141,7 @@ void WorkerScriptLoader::DidReceiveResponse( |
NotifyError(); |
return; |
} |
- if (!ScriptResource::MimeTypeAllowedByNosniff(response)) { |
+ if (!ScriptResourceData::MimeTypeAllowedByNosniff(response)) { |
execution_context_->AddConsoleMessage(ConsoleMessage::Create( |
kSecurityMessageSource, kErrorMessageLevel, |
"Refused to execute script from '" + url_.ElidedString() + |