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

Unified Diff: public/web/WebWorkerContentSettingsClientProxy.h

Issue 968163003: Rename WorkerPermissionClient and friends to WorkerContentSettingsClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix Created 5 years, 9 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 | « public/web/WebSharedWorkerClient.h ('k') | public/web/WebWorkerPermissionClientProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWorkerContentSettingsClientProxy.h
diff --git a/public/web/WebWorkerContentSettingsClientProxy.h b/public/web/WebWorkerContentSettingsClientProxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..a5fee549df653ab0dbf8b5096c4c830fceead00f
--- /dev/null
+++ b/public/web/WebWorkerContentSettingsClientProxy.h
@@ -0,0 +1,43 @@
+// Copyright 2015 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.
+
+#ifndef WebWorkerContentSettingsClientProxy_h
+#define WebWorkerContentSettingsClientProxy_h
+
+#include "public/platform/WebPermissionCallbacks.h"
+
+namespace blink {
+
+class WebPermissionCallbacks;
+class WebString;
+
+// Proxy interface to talk to the document's ContentSettingsClient
+// implementation.
+// This proxy is created by the embedder and is passed to the worker's
+// WorkerGlobalScope in blink. Each allow method is called on the worker thread
+// and may destructed on the worker thread.
+class WebWorkerContentSettingsClientProxy {
+public:
+ virtual ~WebWorkerContentSettingsClientProxy() { }
+
+ // Deprecated: This function should be removed.
+ virtual bool allowDatabase(const WebString& name, const WebString& displayName, unsigned long estimatedSize)
+ {
+ return true;
+ }
+
+ virtual bool requestFileSystemAccessSync()
+ {
+ return true;
+ }
+
+ virtual bool allowIndexedDB(const WebString& name)
+ {
+ return true;
+ }
+};
+
+} // namespace blink
+
+#endif // WebWorkerContentSettingsClientProxy_h
« no previous file with comments | « public/web/WebSharedWorkerClient.h ('k') | public/web/WebWorkerPermissionClientProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698