| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 } | 128 } |
| 129 } | 129 } |
| 130 } | 130 } |
| 131 | 131 |
| 132 void FrameLoaderClientImpl::documentElementAvailable() | 132 void FrameLoaderClientImpl::documentElementAvailable() |
| 133 { | 133 { |
| 134 if (m_webFrame->client()) | 134 if (m_webFrame->client()) |
| 135 m_webFrame->client()->didCreateDocumentElement(m_webFrame); | 135 m_webFrame->client()->didCreateDocumentElement(m_webFrame); |
| 136 } | 136 } |
| 137 | 137 |
| 138 void FrameLoaderClientImpl::didExhaustMemoryAvailableForScript() | |
| 139 { | |
| 140 if (m_webFrame->client()) | |
| 141 m_webFrame->client()->didExhaustMemoryAvailableForScript(m_webFrame); | |
| 142 } | |
| 143 | |
| 144 void FrameLoaderClientImpl::didCreateScriptContext(v8::Handle<v8::Context> conte
xt, int extensionGroup, int worldId) | 138 void FrameLoaderClientImpl::didCreateScriptContext(v8::Handle<v8::Context> conte
xt, int extensionGroup, int worldId) |
| 145 { | 139 { |
| 146 WebViewImpl* webview = m_webFrame->viewImpl(); | 140 WebViewImpl* webview = m_webFrame->viewImpl(); |
| 147 if (webview->devToolsAgentPrivate()) | 141 if (webview->devToolsAgentPrivate()) |
| 148 webview->devToolsAgentPrivate()->didCreateScriptContext(m_webFrame, worl
dId); | 142 webview->devToolsAgentPrivate()->didCreateScriptContext(m_webFrame, worl
dId); |
| 149 if (m_webFrame->client()) | 143 if (m_webFrame->client()) |
| 150 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, extens
ionGroup, worldId); | 144 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, extens
ionGroup, worldId); |
| 151 } | 145 } |
| 152 | 146 |
| 153 void FrameLoaderClientImpl::willReleaseScriptContext(v8::Handle<v8::Context> con
text, int worldId) | 147 void FrameLoaderClientImpl::willReleaseScriptContext(v8::Handle<v8::Context> con
text, int worldId) |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); | 800 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); |
| 807 } | 801 } |
| 808 | 802 |
| 809 void FrameLoaderClientImpl::didStopAllLoaders() | 803 void FrameLoaderClientImpl::didStopAllLoaders() |
| 810 { | 804 { |
| 811 if (m_webFrame->client()) | 805 if (m_webFrame->client()) |
| 812 m_webFrame->client()->didAbortLoading(m_webFrame); | 806 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 813 } | 807 } |
| 814 | 808 |
| 815 } // namespace blink | 809 } // namespace blink |
| OLD | NEW |