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

Unified Diff: chrome/renderer/worker_permission_client_proxy.cc

Issue 968983002: Rename blink::WebWorkerPermissionProxyClient to blink::WebWorkerContentSettingsProxyClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gypi typo Created 5 years, 10 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 | « chrome/renderer/worker_permission_client_proxy.h ('k') | content/content_renderer.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/worker_permission_client_proxy.cc
diff --git a/chrome/renderer/worker_permission_client_proxy.cc b/chrome/renderer/worker_permission_client_proxy.cc
deleted file mode 100644
index 983181cce709655b427d0fdc02e932024e60d917..0000000000000000000000000000000000000000
--- a/chrome/renderer/worker_permission_client_proxy.cc
+++ /dev/null
@@ -1,64 +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 "chrome/common/render_messages.h"
-#include "chrome/renderer/worker_permission_client_proxy.h"
-#include "content/public/renderer/render_frame.h"
-#include "content/public/renderer/render_thread.h"
-#include "ipc/ipc_sync_message_filter.h"
-#include "third_party/WebKit/public/platform/WebPermissionCallbacks.h"
-#include "third_party/WebKit/public/web/WebDocument.h"
-#include "third_party/WebKit/public/web/WebFrame.h"
-#include "third_party/WebKit/public/web/WebSecurityOrigin.h"
-
-WorkerPermissionClientProxy::WorkerPermissionClientProxy(
- content::RenderFrame* render_frame,
- blink::WebFrame* frame)
- : routing_id_(render_frame->GetRoutingID()),
- is_unique_origin_(false) {
- if (frame->document().securityOrigin().isUnique() ||
- frame->top()->document().securityOrigin().isUnique())
- is_unique_origin_ = true;
- sync_message_filter_ = content::RenderThread::Get()->GetSyncMessageFilter();
- document_origin_url_ = GURL(frame->document().securityOrigin().toString());
- top_frame_origin_url_ = GURL(
- frame->top()->document().securityOrigin().toString());
-}
-
-WorkerPermissionClientProxy::~WorkerPermissionClientProxy() {}
-
-bool WorkerPermissionClientProxy::allowDatabase(
- const blink::WebString& name,
- const blink::WebString& display_name,
- unsigned long estimated_size) {
- if (is_unique_origin_)
- return false;
-
- bool result = false;
- sync_message_filter_->Send(new ChromeViewHostMsg_AllowDatabase(
- routing_id_, document_origin_url_, top_frame_origin_url_,
- name, display_name, &result));
- return result;
-}
-
-bool WorkerPermissionClientProxy::requestFileSystemAccessSync() {
- if (is_unique_origin_)
- return false;
-
- bool result = false;
- sync_message_filter_->Send(new ChromeViewHostMsg_RequestFileSystemAccessSync(
- routing_id_, document_origin_url_, top_frame_origin_url_, &result));
- return result;
-}
-
-bool WorkerPermissionClientProxy::allowIndexedDB(
- const blink::WebString& name) {
- if (is_unique_origin_)
- return false;
-
- bool result = false;
- sync_message_filter_->Send(new ChromeViewHostMsg_AllowIndexedDB(
- routing_id_, document_origin_url_, top_frame_origin_url_, name, &result));
- return result;
-}
« no previous file with comments | « chrome/renderer/worker_permission_client_proxy.h ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698