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 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla
gs, WebFrameClient*) = 0; | 20 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla
gs, WebFrameClient*) = 0; |
| 21 |
| 22 // FIXME(alexmos): remove once Chrome side is updated to use sandbox flags. |
21 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr
ameClient*) = 0; | 23 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr
ameClient*) = 0; |
| 24 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebSandboxF
lags, WebRemoteFrameClient*) = 0; |
22 | 25 |
23 // Transfer initial drawing parameters from a local frame. | 26 // Transfer initial drawing parameters from a local frame. |
24 virtual void initializeFromFrame(WebLocalFrame*) const = 0; | 27 virtual void initializeFromFrame(WebLocalFrame*) const = 0; |
25 | 28 |
26 // Set security origin replicated from another process. | 29 // Set security origin replicated from another process. |
27 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; | 30 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; |
28 | 31 |
29 // Set sandbox flags replicated from another process. | 32 // Set sandbox flags replicated from another process. |
30 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; | 33 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; |
31 | 34 |
32 // Set frame name replicated from another process. | 35 // Set frame name replicated from another process. |
33 virtual void setReplicatedName(const WebString&) const = 0; | 36 virtual void setReplicatedName(const WebString&) const = 0; |
34 | 37 |
35 virtual void didStartLoading() = 0; | 38 virtual void didStartLoading() = 0; |
36 virtual void didStopLoading() = 0; | 39 virtual void didStopLoading() = 0; |
37 }; | 40 }; |
38 | 41 |
39 } // namespace blink | 42 } // namespace blink |
40 | 43 |
41 #endif // WebRemoteFrame_h | 44 #endif // WebRemoteFrame_h |
OLD | NEW |