summaryrefslogtreecommitdiffstats
path: root/src/core/content_browser_client_qt.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-02-15 17:58:31 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-04-03 16:37:32 +0000
commitdd2acb8a0a5ccbbf34664987fdcf4b3a418c54f9 (patch)
treece784d2a3f8d21bd1a57ec562dfc121906411085 /src/core/content_browser_client_qt.h
parentcce649b65d31353754af9e34148c0e8d4068d3cf (diff)
Tie worker rights to cookie policy like Chromium doesv5.11.0-beta3
Instead of always allowing all workers, disallow when similar cookies would have been disallowed. This is following the same logic as Chromium is using. Change-Id: I6b9d6c63b894287f64171b138fe03ec080af5115 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/content_browser_client_qt.h')
-rw-r--r--src/core/content_browser_client_qt.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/core/content_browser_client_qt.h b/src/core/content_browser_client_qt.h
index 86bd2977c..5ef2cddfb 100644
--- a/src/core/content_browser_client_qt.h
+++ b/src/core/content_browser_client_qt.h
@@ -150,6 +150,25 @@ public:
int render_frame_id,
const net::CookieOptions& options) override;
+ bool AllowAppCache(const GURL& manifest_url,
+ const GURL& first_party,
+ content::ResourceContext* context) override;
+
+ bool AllowServiceWorker(const GURL& scope,
+ const GURL& first_party,
+ content::ResourceContext* context,
+ const base::Callback<content::WebContents*(void)>& wc_getter) override;
+
+ void AllowWorkerFileSystem(const GURL &url,
+ content::ResourceContext *context,
+ const std::vector<std::pair<int, int> > &render_frames,
+ base::Callback<void(bool)> callback) override;
+
+ bool AllowWorkerIndexedDB(const GURL &url,
+ const base::string16 &name,
+ content::ResourceContext *context,
+ const std::vector<std::pair<int, int> > &render_frames) override;
+
#if defined(Q_OS_LINUX)
void GetAdditionalMappedFilesForChildProcess(const base::CommandLine& command_line, int child_process_id, content::PosixFileDescriptorInfo* mappings) override;
#endif