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

Side by Side Diff: public/web/WebRemoteFrame.h

Issue 1132133009: Plumb whether or not a frame is in shadow DOM to the embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 5 years, 7 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 | « public/web/WebLocalFrame.h ('k') | public/web/WebTreeScopeType.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 WebRemoteFrame_h 5 #ifndef WebRemoteFrame_h
6 #define WebRemoteFrame_h 6 #define WebRemoteFrame_h
7 7
8 #include "public/web/WebFrame.h" 8 #include "public/web/WebFrame.h"
9 #include "public/web/WebSandboxFlags.h" 9 #include "public/web/WebSandboxFlags.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 enum class WebTreeScopeType;
13 class WebFrameClient; 14 class WebFrameClient;
14 class WebRemoteFrameClient; 15 class WebRemoteFrameClient;
15 16
16 class WebRemoteFrame : public WebFrame { 17 class WebRemoteFrame : public WebFrame {
17 public: 18 public:
18 BLINK_EXPORT static WebRemoteFrame* create(WebRemoteFrameClient*); 19 BLINK_EXPORT static WebRemoteFrame* create(WebRemoteFrameClient*);
20 BLINK_EXPORT static WebRemoteFrame* create(WebTreeScopeType, WebRemoteFrameC lient*);
19 21
22 // Functions for the embedder replicate the frame tree between processes.
23 // TODO(dcheng): The embedder currently does not replicate local frames in
24 // insertion order, so the local child version takes a previous sibling to
25 // ensure that it is inserted into the correct location in the list of
26 // children.
27 virtual WebLocalFrame* createLocalChild(WebTreeScopeType, const WebString& n ame, WebSandboxFlags, WebFrameClient*, WebFrame* previousSibling) = 0;
20 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla gs, WebFrameClient*, WebFrame* previousSibling) = 0; 28 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla gs, WebFrameClient*, WebFrame* previousSibling) = 0;
21 29
30 virtual WebRemoteFrame* createRemoteChild(WebTreeScopeType, const WebString& name, WebSandboxFlags, WebRemoteFrameClient*) = 0;
22 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebSandboxF lags, WebRemoteFrameClient*) = 0; 31 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebSandboxF lags, WebRemoteFrameClient*) = 0;
23 32
24 // Transfer initial drawing parameters from a local frame. 33 // Transfer initial drawing parameters from a local frame.
25 virtual void initializeFromFrame(WebLocalFrame*) const = 0; 34 virtual void initializeFromFrame(WebLocalFrame*) const = 0;
26 35
27 // Set security origin replicated from another process. 36 // Set security origin replicated from another process.
28 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; 37 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0;
29 38
30 // Set sandbox flags replicated from another process. 39 // Set sandbox flags replicated from another process.
31 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; 40 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0;
32 41
33 // Set frame name replicated from another process. 42 // Set frame name replicated from another process.
34 virtual void setReplicatedName(const WebString&) const = 0; 43 virtual void setReplicatedName(const WebString&) const = 0;
35 44
36 virtual void DispatchLoadEventForFrameOwner() const = 0; 45 virtual void DispatchLoadEventForFrameOwner() const = 0;
37 46
38 virtual void didStartLoading() = 0; 47 virtual void didStartLoading() = 0;
39 virtual void didStopLoading() = 0; 48 virtual void didStopLoading() = 0;
49
50 protected:
51 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) { }
40 }; 52 };
41 53
42 } // namespace blink 54 } // namespace blink
43 55
44 #endif // WebRemoteFrame_h 56 #endif // WebRemoteFrame_h
OLDNEW
« no previous file with comments | « public/web/WebLocalFrame.h ('k') | public/web/WebTreeScopeType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698