OLD | NEW |
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 Loading... |
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 |
OLD | NEW |