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

Side by Side Diff: Source/core/frame/FrameClient.h

Issue 573353002: Plumbing toward transitioning remote frame back to a local frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/Frame.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 FrameClient_h 5 #ifndef FrameClient_h
6 #define FrameClient_h 6 #define FrameClient_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 class Frame; 10 class Frame;
11 class LocalFrame; 11 class LocalFrame;
12 class MessageEvent; 12 class MessageEvent;
13 class ResourceRequest;
13 class SecurityOrigin; 14 class SecurityOrigin;
14 15
15 class FrameClient { 16 class FrameClient {
16 public: 17 public:
17 virtual Frame* opener() const = 0; 18 virtual Frame* opener() const = 0;
18 virtual void setOpener(Frame*) = 0; 19 virtual void setOpener(Frame*) = 0;
19 20
20 virtual Frame* parent() const = 0; 21 virtual Frame* parent() const = 0;
21 virtual Frame* top() const = 0; 22 virtual Frame* top() const = 0;
22 virtual Frame* previousSibling() const = 0; 23 virtual Frame* previousSibling() const = 0;
23 virtual Frame* nextSibling() const = 0; 24 virtual Frame* nextSibling() const = 0;
24 virtual Frame* firstChild() const = 0; 25 virtual Frame* firstChild() const = 0;
25 virtual Frame* lastChild() const = 0; 26 virtual Frame* lastChild() const = 0;
26 27
27 // Returns true if the embedder intercepted the postMessage call 28 // Returns true if the embedder intercepted the postMessage call
28 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/, Me ssageEvent*, LocalFrame* /*sourceFrame*/) const { return false; } 29 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/, Me ssageEvent*, LocalFrame* /*sourceFrame*/) const { return false; }
29 30
31 // Remote frame only:
32 virtual void navigate(const ResourceRequest&, bool shouldReplaceCurrentEntry ) { }
Nate Chapin 2014/09/17 19:42:54 Should we create a RemoteFrameClient/RemoteFrameCl
dcheng 2014/09/17 21:38:25 I think this makes sense. We didn't need it initia
33
30 virtual ~FrameClient() { } 34 virtual ~FrameClient() { }
31 }; 35 };
32 36
33 } // namespace blink 37 } // namespace blink
34 38
35 #endif // FrameClient_h 39 #endif // FrameClient_h
OLDNEW
« no previous file with comments | « Source/core/frame/Frame.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698