| 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 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1829 return fromFrame(toLocalFrame(toHTMLFrameElementBase(element)->contentFrame(
))); | 1829 return fromFrame(toLocalFrame(toHTMLFrameElementBase(element)->contentFrame(
))); |
| 1830 } | 1830 } |
| 1831 | 1831 |
| 1832 WebViewImpl* WebLocalFrameImpl::viewImpl() const | 1832 WebViewImpl* WebLocalFrameImpl::viewImpl() const |
| 1833 { | 1833 { |
| 1834 if (!frame()) | 1834 if (!frame()) |
| 1835 return 0; | 1835 return 0; |
| 1836 return WebViewImpl::fromPage(frame()->page()); | 1836 return WebViewImpl::fromPage(frame()->page()); |
| 1837 } | 1837 } |
| 1838 | 1838 |
| 1839 WebDevToolsAgentImpl* WebLocalFrameImpl::devToolsAgentImpl() const | |
| 1840 { | |
| 1841 return m_devToolsAgent.get(); | |
| 1842 } | |
| 1843 | |
| 1844 WebDataSourceImpl* WebLocalFrameImpl::dataSourceImpl() const | 1839 WebDataSourceImpl* WebLocalFrameImpl::dataSourceImpl() const |
| 1845 { | 1840 { |
| 1846 return static_cast<WebDataSourceImpl*>(dataSource()); | 1841 return static_cast<WebDataSourceImpl*>(dataSource()); |
| 1847 } | 1842 } |
| 1848 | 1843 |
| 1849 WebDataSourceImpl* WebLocalFrameImpl::provisionalDataSourceImpl() const | 1844 WebDataSourceImpl* WebLocalFrameImpl::provisionalDataSourceImpl() const |
| 1850 { | 1845 { |
| 1851 return static_cast<WebDataSourceImpl*>(provisionalDataSource()); | 1846 return static_cast<WebDataSourceImpl*>(provisionalDataSource()); |
| 1852 } | 1847 } |
| 1853 | 1848 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2217 } | 2212 } |
| 2218 | 2213 |
| 2219 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2214 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
| 2220 { | 2215 { |
| 2221 if (!frame()) | 2216 if (!frame()) |
| 2222 return WebSandboxFlags::None; | 2217 return WebSandboxFlags::None; |
| 2223 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2218 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
| 2224 } | 2219 } |
| 2225 | 2220 |
| 2226 } // namespace blink | 2221 } // namespace blink |
| OLD | NEW |