Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(903)

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: Trim thingie Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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...) Expand all
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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // to call these on a WebLocalFrame. 312 // to call these on a WebLocalFrame.
313 bool isWebLocalFrame() const override = 0; 313 bool isWebLocalFrame() const override = 0;
314 WebLocalFrame* toWebLocalFrame() override = 0; 314 WebLocalFrame* toWebLocalFrame() override = 0;
315 bool isWebRemoteFrame() const override = 0; 315 bool isWebRemoteFrame() const override = 0;
316 WebRemoteFrame* toWebRemoteFrame() override = 0; 316 WebRemoteFrame* toWebRemoteFrame() override = 0;
317 }; 317 };
318 318
319 } // namespace blink 319 } // namespace blink
320 320
321 #endif // WebLocalFrame_h 321 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698