diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-29 10:46:47 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-11-02 12:02:10 +0000 |
commit | 99677208ff3b216fdfec551fbe548da5520cd6fb (patch) | |
tree | 476a4865c10320249360e859d8fdd3e01833b03a /chromium/third_party/blink/public/web/web_frame.h | |
parent | c30a6232df03e1efbd9f3b226777b07e087a1122 (diff) | |
download | qtwebengine-chromium-99677208ff3b216fdfec551fbe548da5520cd6fb.tar.gz |
BASELINE: Update Chromium to 86.0.4240.124
Change-Id: Ide0ff151e94cd665ae6521a446995d34a9d1d644
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/public/web/web_frame.h')
-rw-r--r-- | chromium/third_party/blink/public/web/web_frame.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/chromium/third_party/blink/public/web/web_frame.h b/chromium/third_party/blink/public/web/web_frame.h index 1fd3970fcbd..521f5f69a33 100644 --- a/chromium/third_party/blink/public/web/web_frame.h +++ b/chromium/third_party/blink/public/web/web_frame.h @@ -33,6 +33,7 @@ #include <memory> #include "cc/paint/paint_canvas.h" +#include "third_party/blink/public/common/tokens/tokens.h" #include "third_party/blink/public/mojom/frame/tree_scope_type.mojom-shared.h" #include "third_party/blink/public/mojom/security_context/insecure_request_policy.mojom-shared.h" #include "third_party/blink/public/platform/web_common.h" @@ -43,7 +44,6 @@ namespace blink { class Frame; -class OpenedFrameTracker; class Visitor; class WebLocalFrame; class WebRemoteFrame; @@ -73,7 +73,9 @@ class BLINK_EXPORT WebFrame { // Returns the number of live WebFrame objects, used for leak checking. static int InstanceCount(); + // TODO(crbug.com/1096617): Remove the UnguessableToken version of this. static WebFrame* FromFrameToken(const base::UnguessableToken&); + static WebFrame* FromFrameToken(const FrameToken&); virtual bool IsWebLocalFrame() const = 0; virtual WebLocalFrame* ToWebLocalFrame() = 0; @@ -110,9 +112,6 @@ class BLINK_EXPORT WebFrame { // Returns the frame that opened this frame or 0 if there is none. WebFrame* Opener() const; - // Sets the frame that opened this one or 0 if there is none. - void SetOpener(WebFrame*); - // Reset the frame that opened this frame to 0. // This is executed between web tests runs void ClearOpener(); @@ -159,6 +158,7 @@ class BLINK_EXPORT WebFrame { // This identifier represents the stable identifier between a // LocalFrame <--> RenderFrameHostImpl or a // RemoteFrame <--> RenderFrameProxyHost in the browser process. + // TODO(crbug.com/1096617): Make this return a FrameToken instead. const base::UnguessableToken& GetFrameToken() const { return frame_token_; } #if INSIDE_BLINK @@ -177,7 +177,7 @@ class BLINK_EXPORT WebFrame { protected: explicit WebFrame(mojom::TreeScopeType, const base::UnguessableToken& frame_token); - virtual ~WebFrame(); + virtual ~WebFrame() = default; // Sets the parent WITHOUT fulling adding it to the frame tree. // Used to lie to a local frame that is replacing a remote frame, @@ -194,7 +194,6 @@ class BLINK_EXPORT WebFrame { private: #if INSIDE_BLINK - friend class OpenedFrameTracker; friend class WebFrameTest; static void TraceFrame(Visitor*, const WebFrame*); @@ -218,7 +217,6 @@ class BLINK_EXPORT WebFrame { WebFrame* last_child_; WebFrame* opener_; - std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; }; } // namespace blink |