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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 } | 215 } |
216 | 216 |
217 bool FrameLoaderClientImpl::allowScriptFromSource(bool enabledPerSettings, const
KURL& scriptURL) | 217 bool FrameLoaderClientImpl::allowScriptFromSource(bool enabledPerSettings, const
KURL& scriptURL) |
218 { | 218 { |
219 if (m_webFrame->contentSettingsClient()) | 219 if (m_webFrame->contentSettingsClient()) |
220 return m_webFrame->contentSettingsClient()->allowScriptFromSource(enable
dPerSettings, scriptURL); | 220 return m_webFrame->contentSettingsClient()->allowScriptFromSource(enable
dPerSettings, scriptURL); |
221 | 221 |
222 return enabledPerSettings; | 222 return enabledPerSettings; |
223 } | 223 } |
224 | 224 |
| 225 bool FrameLoaderClientImpl::allowKeygen(bool enabledPerSettings) |
| 226 { |
| 227 if (m_webFrame->contentSettingsClient()) |
| 228 return m_webFrame->contentSettingsClient()->allowKeygen(enabledPerSettin
gs); |
| 229 |
| 230 return enabledPerSettings; |
| 231 } |
| 232 |
225 bool FrameLoaderClientImpl::allowPlugins(bool enabledPerSettings) | 233 bool FrameLoaderClientImpl::allowPlugins(bool enabledPerSettings) |
226 { | 234 { |
227 if (m_webFrame->contentSettingsClient()) | 235 if (m_webFrame->contentSettingsClient()) |
228 return m_webFrame->contentSettingsClient()->allowPlugins(enabledPerSetti
ngs); | 236 return m_webFrame->contentSettingsClient()->allowPlugins(enabledPerSetti
ngs); |
229 | 237 |
230 return enabledPerSettings; | 238 return enabledPerSettings; |
231 } | 239 } |
232 | 240 |
233 bool FrameLoaderClientImpl::allowImage(bool enabledPerSettings, const KURL& imag
eURL) | 241 bool FrameLoaderClientImpl::allowImage(bool enabledPerSettings, const KURL& imag
eURL) |
234 { | 242 { |
(...skipping 26 matching lines...) Expand all Loading... |
261 | 269 |
262 return enabledPerSettings; | 270 return enabledPerSettings; |
263 } | 271 } |
264 | 272 |
265 void FrameLoaderClientImpl::didNotAllowScript() | 273 void FrameLoaderClientImpl::didNotAllowScript() |
266 { | 274 { |
267 if (m_webFrame->contentSettingsClient()) | 275 if (m_webFrame->contentSettingsClient()) |
268 m_webFrame->contentSettingsClient()->didNotAllowScript(); | 276 m_webFrame->contentSettingsClient()->didNotAllowScript(); |
269 } | 277 } |
270 | 278 |
| 279 void FrameLoaderClientImpl::didNotAllowKeygen() |
| 280 { |
| 281 if (m_webFrame->contentSettingsClient()) |
| 282 m_webFrame->contentSettingsClient()->didNotAllowKeygen(); |
| 283 |
| 284 } |
| 285 |
271 void FrameLoaderClientImpl::didNotAllowPlugins() | 286 void FrameLoaderClientImpl::didNotAllowPlugins() |
272 { | 287 { |
273 if (m_webFrame->contentSettingsClient()) | 288 if (m_webFrame->contentSettingsClient()) |
274 m_webFrame->contentSettingsClient()->didNotAllowPlugins(); | 289 m_webFrame->contentSettingsClient()->didNotAllowPlugins(); |
275 | 290 |
276 } | 291 } |
277 | 292 |
278 bool FrameLoaderClientImpl::hasWebView() const | 293 bool FrameLoaderClientImpl::hasWebView() const |
279 { | 294 { |
280 return m_webFrame->viewImpl(); | 295 return m_webFrame->viewImpl(); |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 | 981 |
967 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 982 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
968 { | 983 { |
969 if (m_webFrame->client()) { | 984 if (m_webFrame->client()) { |
970 m_webFrame->client()->suddenTerminationDisablerChanged( | 985 m_webFrame->client()->suddenTerminationDisablerChanged( |
971 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 986 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
972 } | 987 } |
973 } | 988 } |
974 | 989 |
975 } // namespace blink | 990 } // namespace blink |
OLD | NEW |