Index: content/renderer/websharedworker_proxy.cc |
diff --git a/content/renderer/websharedworker_proxy.cc b/content/renderer/websharedworker_proxy.cc |
index 190a35c59cfda690deeaf2d68606e708996c2a59..6fea849521c0e315fde7ddabc927bd641ef6c7bd 100644 |
--- a/content/renderer/websharedworker_proxy.cc |
+++ b/content/renderer/websharedworker_proxy.cc |
@@ -127,8 +127,10 @@ void WebSharedWorkerProxy::startWorkerContext( |
const WebKit::WebString& source_code, |
const WebKit::WebString& content_security_policy, |
WebKit::WebContentSecurityPolicyType policy_type, |
- long long script_resource_appcache_id) { |
+ long long script_resource_appcache_id, |
+ bool is_controller) { |
DCHECK(!isStarted()); |
+ DCHECK(!is_controller); // renderers can't create controllers directly |
CreateWorkerContext( |
script_url, true, name, user_agent, source_code, content_security_policy, |
policy_type, pending_route_id_, script_resource_appcache_id); |
@@ -184,4 +186,7 @@ void WebSharedWorkerProxy::OnWorkerCreated() { |
} |
} |
+void WebSharedWorkerProxy::dispatchFetchEvent(int request_id, |
+ WebKit::WebController::Request* request) { NOTREACHED(); } |
+ |
} // namespace content |