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

Side by Side Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1197383002: Add WebLocalFrame::effectiveSandboxFlags() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/web/WebLocalFrameImpl.h ('k') | public/web/WebLocalFrame.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 /* 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 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2176 void WebLocalFrameImpl::setFrameWidget(WebFrameWidgetImpl* frameWidget) 2176 void WebLocalFrameImpl::setFrameWidget(WebFrameWidgetImpl* frameWidget)
2177 { 2177 {
2178 m_frameWidget = frameWidget; 2178 m_frameWidget = frameWidget;
2179 } 2179 }
2180 2180
2181 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const 2181 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const
2182 { 2182 {
2183 return m_frameWidget; 2183 return m_frameWidget;
2184 } 2184 }
2185 2185
2186 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const
2187 {
2188 if (!frame())
2189 return WebSandboxFlags::None;
2190 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2191 }
2192
2186 } // namespace blink 2193 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebLocalFrameImpl.h ('k') | public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698