OLD | NEW |
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 class WebFrameClient; | 13 class WebFrameClient; |
14 class WebRemoteFrameClient; | 14 class WebRemoteFrameClient; |
15 | 15 |
16 class WebRemoteFrame : public WebFrame { | 16 class WebRemoteFrame : public WebFrame { |
17 public: | 17 public: |
18 BLINK_EXPORT static WebRemoteFrame* create(WebRemoteFrameClient*); | 18 BLINK_EXPORT static WebRemoteFrame* create(WebRemoteFrameClient*); |
19 | 19 |
20 // FIXME(alexmos): This will go away once the Chromium side is updated to pa
ss sandbox flags. | |
21 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien
t*) = 0; | |
22 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla
gs, WebFrameClient*) = 0; | 20 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla
gs, WebFrameClient*) = 0; |
23 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr
ameClient*) = 0; | 21 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr
ameClient*) = 0; |
24 | 22 |
25 // Transfer initial drawing parameters from a local frame. | 23 // Transfer initial drawing parameters from a local frame. |
26 virtual void initializeFromFrame(WebLocalFrame*) const = 0; | 24 virtual void initializeFromFrame(WebLocalFrame*) const = 0; |
27 | 25 |
28 // Set security origin replicated from another process. | 26 // Set security origin replicated from another process. |
29 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; | 27 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; |
30 | 28 |
31 // Set sandbox flags replicated from another process. | 29 // Set sandbox flags replicated from another process. |
32 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; | 30 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; |
33 | 31 |
34 virtual void didStartLoading() = 0; | 32 virtual void didStartLoading() = 0; |
35 virtual void didStopLoading() = 0; | 33 virtual void didStopLoading() = 0; |
36 }; | 34 }; |
37 | 35 |
38 } // namespace blink | 36 } // namespace blink |
39 | 37 |
40 #endif // WebRemoteFrame_h | 38 #endif // WebRemoteFrame_h |
OLD | NEW |