summaryrefslogtreecommitdiffstats
path: root/content/renderer/websharedworker_proxy.cc
diff options
context:
space:
mode:
authortsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-12 20:55:38 +0000
committertsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-12 20:55:38 +0000
commitac0fdb30ccff125add97db11b0d83f07713d5e0b (patch)
treedcfe574201029af2d0a2697ea5db84e26ff78bd8 /content/renderer/websharedworker_proxy.cc
parent9e7572846ad7a0c34cf57a64fdc255c87b417b29 (diff)
downloadchromium_src-ac0fdb30ccff125add97db11b0d83f07713d5e0b.zip
chromium_src-ac0fdb30ccff125add97db11b0d83f07713d5e0b.tar.gz
chromium_src-ac0fdb30ccff125add97db11b0d83f07713d5e0b.tar.bz2
Revert 116954 - Pass Content-security-policy and header type from WebSharedWorkerProxy to WebSharedWorkerStub. WebKit side has changed, and need to start from scratch to avoid conflicts on rolls.
BUG=105482 Review URL: http://codereview.chromium.org/9154003 TBR=jam@chromium.org Review URL: http://codereview.chromium.org/9188046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/websharedworker_proxy.cc')
-rw-r--r--content/renderer/websharedworker_proxy.cc37
1 files changed, 9 insertions, 28 deletions
diff --git a/content/renderer/websharedworker_proxy.cc b/content/renderer/websharedworker_proxy.cc
index 03de1a7..5ee1ab8 100644
--- a/content/renderer/websharedworker_proxy.cc
+++ b/content/renderer/websharedworker_proxy.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -45,16 +45,13 @@ void WebSharedWorkerProxy::Disconnect() {
route_id_ = MSG_ROUTING_NONE;
}
-void WebSharedWorkerProxy::CreateWorkerContext(
- const GURL& script_url,
- bool is_shared,
- const string16& name,
- const string16& user_agent,
- const string16& source_code,
- const string16& content_security_policy,
- bool report_only,
- int pending_route_id,
- int64 script_resource_appcache_id) {
+void WebSharedWorkerProxy::CreateWorkerContext(const GURL& script_url,
+ bool is_shared,
+ const string16& name,
+ const string16& user_agent,
+ const string16& source_code,
+ int pending_route_id,
+ int64 script_resource_appcache_id) {
DCHECK(route_id_ == MSG_ROUTING_NONE);
ViewHostMsg_CreateWorker_Params params;
params.url = script_url;
@@ -75,8 +72,7 @@ void WebSharedWorkerProxy::CreateWorkerContext(
// connect might have already been called.
queued_messages_.insert(queued_messages_.begin(),
new WorkerMsg_StartWorkerContext(
- route_id_, script_url, user_agent, source_code,
- content_security_policy, report_only));
+ route_id_, script_url, user_agent, source_code));
}
bool WebSharedWorkerProxy::IsStarted() {
@@ -125,21 +121,6 @@ void WebSharedWorkerProxy::startWorkerContext(
long long script_resource_appcache_id) {
DCHECK(!isStarted());
CreateWorkerContext(script_url, true, name, user_agent, source_code,
- string16(), false, pending_route_id_,
- script_resource_appcache_id);
-}
-
-void WebSharedWorkerProxy::startWorkerContext(
- const WebKit::WebURL& script_url,
- const WebKit::WebString& name,
- const WebKit::WebString& user_agent,
- const WebKit::WebString& source_code,
- const WebKit::WebString& content_security_policy,
- bool report_only,
- long long script_resource_appcache_id) {
- DCHECK(!isStarted());
- CreateWorkerContext(script_url, true, name, user_agent, source_code,
- content_security_policy, report_only,
pending_route_id_, script_resource_appcache_id);
}