blob: 6a814d0d7b63835a9097eaf6bc27807ffc1ba025 [file] [log] [blame]
// 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
namespace blink {
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() {}
virtual bool RequestFileSystemAccessSync() { return true; }
virtual bool AllowIndexedDB(const WebString& name) { return true; }
};
} // namespace blink
#endif // WebWorkerContentSettingsClientProxy_h