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

Unified Diff: Source/core/workers/WorkerScriptLoaderClient.cpp

Issue 1190493002: move processContentSecurityPolicy to WorkerScriptLoader (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: (rebase) Created 5 years, 6 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
« no previous file with comments | « Source/core/workers/WorkerScriptLoaderClient.h ('k') | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerScriptLoaderClient.cpp
diff --git a/Source/core/workers/WorkerScriptLoaderClient.cpp b/Source/core/workers/WorkerScriptLoaderClient.cpp
deleted file mode 100644
index d223191628785d465aa94f96fe6371562387c45a..0000000000000000000000000000000000000000
--- a/Source/core/workers/WorkerScriptLoaderClient.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "core/workers/WorkerScriptLoaderClient.h"
-
-#include "core/frame/csp/ContentSecurityPolicy.h"
-#include "platform/network/ContentSecurityPolicyResponseHeaders.h"
-#include "platform/network/ResourceResponse.h"
-
-namespace blink {
-
-WorkerScriptLoaderClient::~WorkerScriptLoaderClient()
-{
-}
-
-PassRefPtr<ContentSecurityPolicy> WorkerScriptLoaderClient::contentSecurityPolicy()
-{
- return m_contentSecurityPolicy;
-}
-
-void WorkerScriptLoaderClient::processContentSecurityPolicy(const ResourceResponse& response)
-{
- if (!response.url().protocolIs("blob") && !response.url().protocolIs("file") && !response.url().protocolIs("filesystem")) {
- m_contentSecurityPolicy = ContentSecurityPolicy::create();
- m_contentSecurityPolicy->setOverrideURLForSelf(response.url());
- m_contentSecurityPolicy->didReceiveHeaders(ContentSecurityPolicyResponseHeaders(response));
- }
-}
-
-void WorkerScriptLoaderClient::setContentSecurityPolicy(PassRefPtr<ContentSecurityPolicy> contentSecurityPolicy)
-{
- m_contentSecurityPolicy = contentSecurityPolicy;
-}
-
-} // namespace blink
« no previous file with comments | « Source/core/workers/WorkerScriptLoaderClient.h ('k') | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698