Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / web / WebWorkerContentSettingsClientProxy.h
blob9522630523e5960bad77251b9ecbb5f52286f0be
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WebWorkerContentSettingsClientProxy_h
6 #define WebWorkerContentSettingsClientProxy_h
8 namespace blink {
10 class WebString;
12 // Proxy interface to talk to the document's ContentSettingsClient
13 // implementation.
14 // This proxy is created by the embedder and is passed to the worker's
15 // WorkerGlobalScope in blink. Each allow method is called on the worker thread
16 // and may destructed on the worker thread.
17 class WebWorkerContentSettingsClientProxy {
18 public:
19 virtual ~WebWorkerContentSettingsClientProxy() { }
21 // Deprecated: This function should be removed.
22 virtual bool allowDatabase(const WebString& name, const WebString& displayName, unsigned long estimatedSize)
24 return true;
27 virtual bool requestFileSystemAccessSync()
29 return true;
32 virtual bool allowIndexedDB(const WebString& name)
34 return true;
38 } // namespace blink
40 #endif // WebWorkerContentSettingsClientProxy_h