Chromium Code Reviews

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 1685003002: Plumb the correct owner document through DocumentInit::m_owner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include "WebFrame.h" 8 #include "WebFrame.h"
9 #include "WebFrameLoadType.h" 9 #include "WebFrameLoadType.h"
10 10
(...skipping 13 matching lines...)
24 class WebTestInterfaceFactory; 24 class WebTestInterfaceFactory;
25 struct WebPrintPresetOptions; 25 struct WebPrintPresetOptions;
26 26
27 // Interface for interacting with in process frames. This contains methods that 27 // Interface for interacting with in process frames. This contains methods that
28 // require interacting with a frame's document. 28 // require interacting with a frame's document.
29 // FIXME: Move lots of methods from WebFrame in here. 29 // FIXME: Move lots of methods from WebFrame in here.
30 class WebLocalFrame : public WebFrame { 30 class WebLocalFrame : public WebFrame {
31 public: 31 public:
32 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). 32 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close().
33 // It is valid to pass a null client pointer. 33 // It is valid to pass a null client pointer.
34 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*) ; 34 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*, WebFrame* opener = nullptr);
35 35
36 // Used to create a provisional local frame in prepration for replacing a 36 // Used to create a provisional local frame in prepration for replacing a
37 // remote frame if the load commits. The returned frame is only partially 37 // remote frame if the load commits. The returned frame is only partially
38 // attached to the frame tree: it has the same parent as its potential 38 // attached to the frame tree: it has the same parent as its potential
39 // replacee but is invisible to the rest of the frames in the frame tree. 39 // replacee but is invisible to the rest of the frames in the frame tree.
40 // If the load commits, call swap() to fully attach this frame. 40 // If the load commits, call swap() to fully attach this frame.
41 BLINK_EXPORT static WebLocalFrame* createProvisional(WebFrameClient*, WebRem oteFrame*, WebSandboxFlags, const WebFrameOwnerProperties&); 41 BLINK_EXPORT static WebLocalFrame* createProvisional(WebFrameClient*, WebRem oteFrame*, WebSandboxFlags, const WebFrameOwnerProperties&);
42 42
43 // Returns the WebFrame associated with the current V8 context. This 43 // Returns the WebFrame associated with the current V8 context. This
44 // function can return 0 if the context is associated with a Document that 44 // function can return 0 if the context is associated with a Document that
(...skipping 286 matching lines...)
331 // to call these on a WebLocalFrame. 331 // to call these on a WebLocalFrame.
332 bool isWebLocalFrame() const override = 0; 332 bool isWebLocalFrame() const override = 0;
333 WebLocalFrame* toWebLocalFrame() override = 0; 333 WebLocalFrame* toWebLocalFrame() override = 0;
334 bool isWebRemoteFrame() const override = 0; 334 bool isWebRemoteFrame() const override = 0;
335 WebRemoteFrame* toWebRemoteFrame() override = 0; 335 WebRemoteFrame* toWebRemoteFrame() override = 0;
336 }; 336 };
337 337
338 } // namespace blink 338 } // namespace blink
339 339
340 #endif // WebLocalFrame_h 340 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine