| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef WebWorkerContentSettingsClientProxy_h | |
| 6 #define WebWorkerContentSettingsClientProxy_h | |
| 7 | |
| 8 #include "public/platform/WebPermissionCallbacks.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class WebPermissionCallbacks; | |
| 13 class WebString; | |
| 14 | |
| 15 // Proxy interface to talk to the document's ContentSettingsClient | |
| 16 // implementation. | |
| 17 // This proxy is created by the embedder and is passed to the worker's | |
| 18 // WorkerGlobalScope in blink. Each allow method is called on the worker thread | |
| 19 // and may destructed on the worker thread. | |
| 20 class WebWorkerContentSettingsClientProxy { | |
| 21 public: | |
| 22 virtual ~WebWorkerContentSettingsClientProxy() { } | |
| 23 | |
| 24 // Deprecated: This function should be removed. | |
| 25 virtual bool allowDatabase(const WebString& name, const WebString& displayNa
me, unsigned long estimatedSize) | |
| 26 { | |
| 27 return true; | |
| 28 } | |
| 29 | |
| 30 virtual bool requestFileSystemAccessSync() | |
| 31 { | |
| 32 return true; | |
| 33 } | |
| 34 | |
| 35 virtual bool allowIndexedDB(const WebString& name) | |
| 36 { | |
| 37 return true; | |
| 38 } | |
| 39 }; | |
| 40 | |
| 41 } // namespace blink | |
| 42 | |
| 43 #endif // WebWorkerContentSettingsClientProxy_h | |
| OLD | NEW |