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

Unified Diff: content/worker/shared_worker_permission_client_proxy.cc

Issue 411283002: Remove disable-embedded-shared-worker flag and shared worker process related codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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 | « content/worker/shared_worker_permission_client_proxy.h ('k') | content/worker/websharedworker_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/worker/shared_worker_permission_client_proxy.cc
diff --git a/content/worker/shared_worker_permission_client_proxy.cc b/content/worker/shared_worker_permission_client_proxy.cc
deleted file mode 100644
index a7e0671bdacde1cf6a9459d36ab1b3b5a4ace582..0000000000000000000000000000000000000000
--- a/content/worker/shared_worker_permission_client_proxy.cc
+++ /dev/null
@@ -1,61 +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/worker/shared_worker_permission_client_proxy.h"
-
-#include "content/child/thread_safe_sender.h"
-#include "content/common/worker_messages.h"
-#include "third_party/WebKit/public/platform/WebString.h"
-#include "url/gurl.h"
-
-namespace content {
-
-SharedWorkerPermissionClientProxy::SharedWorkerPermissionClientProxy(
- const GURL& origin_url,
- bool is_unique_origin,
- int routing_id,
- ThreadSafeSender* thread_safe_sender)
- : origin_url_(origin_url),
- is_unique_origin_(is_unique_origin),
- routing_id_(routing_id),
- thread_safe_sender_(thread_safe_sender) {
-}
-
-SharedWorkerPermissionClientProxy::~SharedWorkerPermissionClientProxy() {
-}
-
-bool SharedWorkerPermissionClientProxy::allowDatabase(
- const blink::WebString& name,
- const blink::WebString& display_name,
- unsigned long estimated_size) {
- if (is_unique_origin_)
- return false;
- bool result = false;
- thread_safe_sender_->Send(new WorkerProcessHostMsg_AllowDatabase(
- routing_id_, origin_url_, name, display_name,
- estimated_size, &result));
- return result;
-}
-
-bool SharedWorkerPermissionClientProxy::requestFileSystemAccessSync() {
- if (is_unique_origin_)
- return false;
- bool result = false;
- thread_safe_sender_->Send(
- new WorkerProcessHostMsg_RequestFileSystemAccessSync(
- routing_id_, origin_url_, &result));
- return result;
-}
-
-bool SharedWorkerPermissionClientProxy::allowIndexedDB(
- const blink::WebString& name) {
- if (is_unique_origin_)
- return false;
- bool result = false;
- thread_safe_sender_->Send(new WorkerProcessHostMsg_AllowIndexedDB(
- routing_id_, origin_url_, name, &result));
- return result;
-}
-
-} // namespace content
« no previous file with comments | « content/worker/shared_worker_permission_client_proxy.h ('k') | content/worker/websharedworker_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698