| Index: content/renderer/shared_worker_repository.cc
|
| diff --git a/content/renderer/shared_worker_repository.cc b/content/renderer/shared_worker_repository.cc
|
| deleted file mode 100644
|
| index cc6ca68117a5a0ad88c43c7689828834b301006d..0000000000000000000000000000000000000000
|
| --- a/content/renderer/shared_worker_repository.cc
|
| +++ /dev/null
|
| @@ -1,55 +0,0 @@
|
| -// Copyright 2013 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 "content/renderer/shared_worker_repository.h"
|
| -
|
| -#include "content/child/child_thread_impl.h"
|
| -#include "content/common/view_messages.h"
|
| -#include "content/renderer/render_frame_impl.h"
|
| -#include "content/renderer/websharedworker_proxy.h"
|
| -
|
| -namespace content {
|
| -
|
| -SharedWorkerRepository::SharedWorkerRepository(RenderFrameImpl* render_frame)
|
| - : render_frame_(render_frame){};
|
| -
|
| -SharedWorkerRepository::~SharedWorkerRepository() = default;
|
| -
|
| -std::unique_ptr<blink::WebSharedWorkerConnector>
|
| -SharedWorkerRepository::createSharedWorkerConnector(
|
| - const blink::WebURL& url,
|
| - const blink::WebString& name,
|
| - DocumentID document_id,
|
| - const blink::WebString& content_security_policy,
|
| - blink::WebContentSecurityPolicyType security_policy_type,
|
| - blink::WebAddressSpace creation_address_space,
|
| - blink::WebSharedWorkerCreationContextType creation_context_type,
|
| - blink::WebWorkerCreationError* error) {
|
| - ViewHostMsg_CreateWorker_Params params;
|
| - params.url = url;
|
| - params.name = name.utf16();
|
| - params.content_security_policy = content_security_policy.utf16();
|
| - params.security_policy_type = security_policy_type;
|
| - params.document_id = document_id;
|
| - params.render_frame_route_id = render_frame_->GetRoutingID();
|
| - params.creation_address_space = creation_address_space;
|
| - params.creation_context_type = creation_context_type;
|
| - ViewHostMsg_CreateWorker_Reply reply;
|
| - render_frame_->Send(new ViewHostMsg_CreateWorker(params, &reply));
|
| - *error = reply.error;
|
| - documents_with_workers_.insert(document_id);
|
| - return base::MakeUnique<WebSharedWorkerProxy>(
|
| - ChildThreadImpl::current()->GetRouter(), reply.route_id);
|
| -}
|
| -
|
| -void SharedWorkerRepository::documentDetached(DocumentID document) {
|
| - std::set<DocumentID>::iterator iter = documents_with_workers_.find(document);
|
| - if (iter != documents_with_workers_.end()) {
|
| - // Notify the browser process that the document has shut down.
|
| - render_frame_->Send(new ViewHostMsg_DocumentDetached(document));
|
| - documents_with_workers_.erase(iter);
|
| - }
|
| -}
|
| -
|
| -} // namespace content
|
|
|