diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-11-12 14:46:24 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-11-28 15:06:47 +0100 |
commit | 496bb6214668dbcf559a10be132f2fb4cfc67922 (patch) | |
tree | 3f914301195074bb2658c3d14e55ad7784f6fe42 /src/core/content_browser_client_qt.h | |
parent | 631f1dd72027207cf6c49a380671c58f096a37a5 (diff) |
Switch navigationRequested to using NavigationThrottle
NavigationThrottle will work both with and with-out network-service,
and simplifies our interception logic.
Change-Id: Ie75ca739eab9b8751a7e8e65bb472cc8fc5f0598
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/core/content_browser_client_qt.h')
-rw-r--r-- | src/core/content_browser_client_qt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/content_browser_client_qt.h b/src/core/content_browser_client_qt.h index f5b03a8d9..5d8a1519c 100644 --- a/src/core/content_browser_client_qt.h +++ b/src/core/content_browser_client_qt.h @@ -216,6 +216,11 @@ public: const base::RepeatingCallback<content::WebContents *()> &wc_getter, content::NavigationUIData *navigation_ui_data, int frame_tree_node_id) override; + std::vector<std::unique_ptr<content::NavigationThrottle>> CreateThrottlesForNavigation( + content::NavigationHandle *navigation_handle) override; + + bool IsHandledURL(const GURL &url) override; + static std::string getUserAgent(); std::string GetUserAgent() override { return getUserAgent(); } |