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

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

Issue 793493003: Prepare to replicate sandbox flags for OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Second round of dcheng's comments Created 5 years, 11 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
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebSandboxFlags.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 10
10 namespace blink { 11 namespace blink {
11 12
12 class WebFrameClient; 13 class WebFrameClient;
13 class WebRemoteFrameClient; 14 class WebRemoteFrameClient;
14 15
15 class WebRemoteFrame : public WebFrame { 16 class WebRemoteFrame : public WebFrame {
16 public: 17 public:
17 BLINK_EXPORT static WebRemoteFrame* create(WebRemoteFrameClient*); 18 BLINK_EXPORT static WebRemoteFrame* create(WebRemoteFrameClient*);
18 19
20 // FIXME(alexmos): This will go away once the Chromium side is updated to pa ss sandbox flags.
19 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien t*) = 0; 21 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien t*) = 0;
22 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla gs, WebFrameClient*) = 0;
20 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr ameClient*) = 0; 23 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr ameClient*) = 0;
21 24
22 // Transfer initial drawing parameters from a local frame. 25 // Transfer initial drawing parameters from a local frame.
23 virtual void initializeFromFrame(WebLocalFrame*) const = 0; 26 virtual void initializeFromFrame(WebLocalFrame*) const = 0;
24 27
25 // Set security origin replicated from another process 28 // Set security origin replicated from another process.
26 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; 29 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0;
27 30
31 // Set sandbox flags replicated from another process.
32 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0;
33
28 virtual void didStartLoading() = 0; 34 virtual void didStartLoading() = 0;
29 virtual void didStopLoading() = 0; 35 virtual void didStopLoading() = 0;
30 }; 36 };
31 37
32 } // namespace blink 38 } // namespace blink
33 39
34 #endif // WebRemoteFrame_h 40 #endif // WebRemoteFrame_h
OLDNEW
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebSandboxFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698