| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 #include "core/paint/ScopeRecorder.h" | 151 #include "core/paint/ScopeRecorder.h" |
| 152 #include "core/paint/TransformRecorder.h" | 152 #include "core/paint/TransformRecorder.h" |
| 153 #include "core/timing/DOMWindowPerformance.h" | 153 #include "core/timing/DOMWindowPerformance.h" |
| 154 #include "core/timing/Performance.h" | 154 #include "core/timing/Performance.h" |
| 155 #include "modules/app_banner/AppBannerController.h" | 155 #include "modules/app_banner/AppBannerController.h" |
| 156 #include "modules/geolocation/GeolocationController.h" | 156 #include "modules/geolocation/GeolocationController.h" |
| 157 #include "modules/notifications/NotificationPermissionClient.h" | 157 #include "modules/notifications/NotificationPermissionClient.h" |
| 158 #include "modules/permissions/PermissionController.h" | 158 #include "modules/permissions/PermissionController.h" |
| 159 #include "modules/presentation/PresentationController.h" | 159 #include "modules/presentation/PresentationController.h" |
| 160 #include "modules/push_messaging/PushController.h" | 160 #include "modules/push_messaging/PushController.h" |
| 161 #include "modules/quota/DurableStorageController.h" |
| 161 #include "modules/screen_orientation/ScreenOrientationController.h" | 162 #include "modules/screen_orientation/ScreenOrientationController.h" |
| 162 #include "modules/vr/VRController.h" | 163 #include "modules/vr/VRController.h" |
| 163 #include "platform/ScriptForbiddenScope.h" | 164 #include "platform/ScriptForbiddenScope.h" |
| 164 #include "platform/TraceEvent.h" | 165 #include "platform/TraceEvent.h" |
| 165 #include "platform/UserGestureIndicator.h" | 166 #include "platform/UserGestureIndicator.h" |
| 166 #include "platform/clipboard/ClipboardUtilities.h" | 167 #include "platform/clipboard/ClipboardUtilities.h" |
| 167 #include "platform/fonts/FontCache.h" | 168 #include "platform/fonts/FontCache.h" |
| 168 #include "platform/graphics/GraphicsContext.h" | 169 #include "platform/graphics/GraphicsContext.h" |
| 169 #include "platform/graphics/GraphicsLayerClient.h" | 170 #include "platform/graphics/GraphicsLayerClient.h" |
| 170 #include "platform/graphics/paint/ClipRecorder.h" | 171 #include "platform/graphics/paint/ClipRecorder.h" |
| (...skipping 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1701 if (m_client) | 1702 if (m_client) |
| 1702 providePushControllerTo(*m_frame, m_client->pushClient()); | 1703 providePushControllerTo(*m_frame, m_client->pushClient()); |
| 1703 | 1704 |
| 1704 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl
ientImpl::create()); | 1705 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl
ientImpl::create()); |
| 1705 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1706 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
| 1706 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); | 1707 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); |
| 1707 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); | 1708 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); |
| 1708 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); | 1709 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); |
| 1709 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); | 1710 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
| 1710 | 1711 |
| 1712 DurableStorageController::provideTo(*m_frame, m_client ? m_client->durab
leStorageDispatcher() : nullptr); |
| 1713 |
| 1711 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1714 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
| 1712 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); | 1715 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); |
| 1713 if (RuntimeEnabledFeatures::presentationEnabled()) | 1716 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1714 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); | 1717 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); |
| 1715 if (RuntimeEnabledFeatures::permissionsEnabled()) | 1718 if (RuntimeEnabledFeatures::permissionsEnabled()) |
| 1716 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); | 1719 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); |
| 1717 if (RuntimeEnabledFeatures::webVREnabled()) | 1720 if (RuntimeEnabledFeatures::webVREnabled()) |
| 1718 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); | 1721 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); |
| 1719 } | 1722 } |
| 1720 } | 1723 } |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2188 } | 2191 } |
| 2189 | 2192 |
| 2190 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2193 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
| 2191 { | 2194 { |
| 2192 if (!frame()) | 2195 if (!frame()) |
| 2193 return WebSandboxFlags::None; | 2196 return WebSandboxFlags::None; |
| 2194 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2197 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
| 2195 } | 2198 } |
| 2196 | 2199 |
| 2197 } // namespace blink | 2200 } // namespace blink |
| OLD | NEW |