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

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

Issue 838903002: Replicate sandbox flags for OOPIF (Blink part 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@iframe-sandbox-flags-part1
Patch Set: Address Daniel's comments. Move sandbox flags inheritance to FrameLoader::effectiveSandboxFlags(). 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 #include "../platform/WebColor.h" 34 #include "../platform/WebColor.h"
35 #include "WebAXObject.h" 35 #include "WebAXObject.h"
36 #include "WebDOMMessageEvent.h" 36 #include "WebDOMMessageEvent.h"
37 #include "WebDataSource.h" 37 #include "WebDataSource.h"
38 #include "WebFrame.h" 38 #include "WebFrame.h"
39 #include "WebHistoryCommitType.h" 39 #include "WebHistoryCommitType.h"
40 #include "WebHistoryItem.h" 40 #include "WebHistoryItem.h"
41 #include "WebIconURL.h" 41 #include "WebIconURL.h"
42 #include "WebNavigationPolicy.h" 42 #include "WebNavigationPolicy.h"
43 #include "WebNavigationType.h" 43 #include "WebNavigationType.h"
44 #include "WebSandboxFlags.h"
44 #include "WebSecurityOrigin.h" 45 #include "WebSecurityOrigin.h"
45 #include "WebTextDirection.h" 46 #include "WebTextDirection.h"
46 #include "public/platform/WebCommon.h" 47 #include "public/platform/WebCommon.h"
47 #include "public/platform/WebFileSystem.h" 48 #include "public/platform/WebFileSystem.h"
48 #include "public/platform/WebFileSystemType.h" 49 #include "public/platform/WebFileSystemType.h"
49 #include "public/platform/WebStorageQuotaCallbacks.h" 50 #include "public/platform/WebStorageQuotaCallbacks.h"
50 #include "public/platform/WebStorageQuotaType.h" 51 #include "public/platform/WebStorageQuotaType.h"
51 #include "public/platform/WebURLError.h" 52 #include "public/platform/WebURLError.h"
52 #include "public/platform/WebURLRequest.h" 53 #include "public/platform/WebURLRequest.h"
53 #include <v8.h> 54 #include <v8.h>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // document of a main frame. After this, it is no longer safe to show a 143 // document of a main frame. After this, it is no longer safe to show a
143 // pending navigation's URL, because a URL spoof is possible. 144 // pending navigation's URL, because a URL spoof is possible.
144 virtual void didAccessInitialDocument(WebLocalFrame*) { } 145 virtual void didAccessInitialDocument(WebLocalFrame*) { }
145 146
146 // A child frame was created in this frame. This is called when the frame 147 // A child frame was created in this frame. This is called when the frame
147 // is created and initialized. Takes the name of the new frame, the parent 148 // is created and initialized. Takes the name of the new frame, the parent
148 // frame and returns a new WebFrame. The WebFrame is considered in-use 149 // frame and returns a new WebFrame. The WebFrame is considered in-use
149 // until frameDetached() is called on it. 150 // until frameDetached() is called on it.
150 // Note: If you override this, you should almost certainly be overriding 151 // Note: If you override this, you should almost certainly be overriding
151 // frameDetached(). 152 // frameDetached().
152 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f rameName) { return 0; } 153 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f rameName, WebSandboxFlags sandboxFlags) { return nullptr; }
153 154
154 // This frame set its opener to null, disowning it. 155 // This frame set its opener to null, disowning it.
155 // See http://html.spec.whatwg.org/#dom-opener. 156 // See http://html.spec.whatwg.org/#dom-opener.
156 virtual void didDisownOpener(WebLocalFrame*) { } 157 virtual void didDisownOpener(WebLocalFrame*) { }
157 158
158 // This frame has been detached from the view, but has not been closed yet. 159 // This frame has been detached from the view, but has not been closed yet.
159 virtual void frameDetached(WebFrame*) { } 160 virtual void frameDetached(WebFrame*) { }
160 161
161 // This frame has become focused.. 162 // This frame has become focused..
162 virtual void frameFocused() { } 163 virtual void frameFocused() { }
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 virtual bool enterFullscreen() { return false; } 612 virtual bool enterFullscreen() { return false; }
612 virtual bool exitFullscreen() { return false; } 613 virtual bool exitFullscreen() { return false; }
613 614
614 protected: 615 protected:
615 virtual ~WebFrameClient() { } 616 virtual ~WebFrameClient() { }
616 }; 617 };
617 618
618 } // namespace blink 619 } // namespace blink
619 620
620 #endif 621 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698