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

Side by Side Diff: third_party/WebKit/public/web/WebFrame.h

Issue 2046733003: Replicate WebInsecureRequestPolicy instead of a bool for strict mixed content checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@securitycontext
Patch Set: alexmos@ Created 4 years, 6 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 20 matching lines...) Expand all
31 #ifndef WebFrame_h 31 #ifndef WebFrame_h
32 #define WebFrame_h 32 #define WebFrame_h
33 33
34 #include "WebCompositionUnderline.h" 34 #include "WebCompositionUnderline.h"
35 #include "WebHistoryItem.h" 35 #include "WebHistoryItem.h"
36 #include "WebIconURL.h" 36 #include "WebIconURL.h"
37 #include "WebNode.h" 37 #include "WebNode.h"
38 #include "WebURLLoaderOptions.h" 38 #include "WebURLLoaderOptions.h"
39 #include "public/platform/WebCachePolicy.h" 39 #include "public/platform/WebCachePolicy.h"
40 #include "public/platform/WebCanvas.h" 40 #include "public/platform/WebCanvas.h"
41 #include "public/platform/WebInsecureRequestPolicy.h"
41 #include "public/platform/WebMessagePortChannel.h" 42 #include "public/platform/WebMessagePortChannel.h"
42 #include "public/platform/WebPrivateOwnPtr.h" 43 #include "public/platform/WebPrivateOwnPtr.h"
43 #include "public/platform/WebReferrerPolicy.h" 44 #include "public/platform/WebReferrerPolicy.h"
44 #include "public/platform/WebURL.h" 45 #include "public/platform/WebURL.h"
45 #include "public/platform/WebURLRequest.h" 46 #include "public/platform/WebURLRequest.h"
46 #include "public/web/WebFrameLoadType.h" 47 #include "public/web/WebFrameLoadType.h"
47 #include "public/web/WebTreeScopeType.h" 48 #include "public/web/WebTreeScopeType.h"
48 49
49 struct NPObject; 50 struct NPObject;
50 51
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 164
164 // The security origin of this frame. 165 // The security origin of this frame.
165 BLINK_EXPORT WebSecurityOrigin getSecurityOrigin() const; 166 BLINK_EXPORT WebSecurityOrigin getSecurityOrigin() const;
166 167
167 // Updates the sandbox flags in the frame's FrameOwner. This is used when 168 // Updates the sandbox flags in the frame's FrameOwner. This is used when
168 // this frame's parent is in another process and it dynamically updates 169 // this frame's parent is in another process and it dynamically updates
169 // this frame's sandbox flags. The flags won't take effect until the next 170 // this frame's sandbox flags. The flags won't take effect until the next
170 // navigation. 171 // navigation.
171 BLINK_EXPORT void setFrameOwnerSandboxFlags(WebSandboxFlags); 172 BLINK_EXPORT void setFrameOwnerSandboxFlags(WebSandboxFlags);
172 173
173 // Returns true if the frame is enforcing strict mixed content checking. 174 // The frame's insecure request policy.
174 BLINK_EXPORT bool shouldEnforceStrictMixedContentChecking() const; 175 BLINK_EXPORT WebInsecureRequestPolicy getInsecureRequestPolicy() const;
175 176
176 // Updates this frame's FrameOwner properties, such as scrolling, margin, 177 // Updates this frame's FrameOwner properties, such as scrolling, margin,
177 // or allowfullscreen. This is used when this frame's parent is in 178 // or allowfullscreen. This is used when this frame's parent is in
178 // another process and it dynamically updates these properties. 179 // another process and it dynamically updates these properties.
179 // TODO(dcheng): Currently, the update only takes effect on next frame 180 // TODO(dcheng): Currently, the update only takes effect on next frame
180 // navigation. This matches the in-process frame behavior. 181 // navigation. This matches the in-process frame behavior.
181 BLINK_EXPORT void setFrameOwnerProperties(const WebFrameOwnerProperties&); 182 BLINK_EXPORT void setFrameOwnerProperties(const WebFrameOwnerProperties&);
182 183
183 // Geometry ----------------------------------------------------------- 184 // Geometry -----------------------------------------------------------
184 185
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 WebFrame* m_firstChild; 611 WebFrame* m_firstChild;
611 WebFrame* m_lastChild; 612 WebFrame* m_lastChild;
612 613
613 WebFrame* m_opener; 614 WebFrame* m_opener;
614 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 615 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
615 }; 616 };
616 617
617 } // namespace blink 618 } // namespace blink
618 619
619 #endif 620 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698