| 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 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 if (m_client) | 1705 if (m_client) |
| 1705 providePushControllerTo(*m_frame, m_client->pushClient()); | 1706 providePushControllerTo(*m_frame, m_client->pushClient()); |
| 1706 | 1707 |
| 1707 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl
ientImpl::create()); | 1708 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl
ientImpl::create()); |
| 1708 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1709 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
| 1709 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); | 1710 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); |
| 1710 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); | 1711 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); |
| 1711 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); | 1712 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); |
| 1712 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); | 1713 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
| 1713 | 1714 |
| 1715 DurableStorageController::provideTo(*m_frame, m_client ? m_client->durab
leStorageDispatcher() : nullptr); |
| 1716 |
| 1714 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1717 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
| 1715 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); | 1718 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); |
| 1716 if (RuntimeEnabledFeatures::presentationEnabled()) | 1719 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1717 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); | 1720 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); |
| 1718 if (RuntimeEnabledFeatures::permissionsEnabled()) | 1721 if (RuntimeEnabledFeatures::permissionsEnabled()) |
| 1719 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); | 1722 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); |
| 1720 if (RuntimeEnabledFeatures::webVREnabled()) | 1723 if (RuntimeEnabledFeatures::webVREnabled()) |
| 1721 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); | 1724 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); |
| 1722 } | 1725 } |
| 1723 } | 1726 } |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2191 } | 2194 } |
| 2192 | 2195 |
| 2193 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2196 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
| 2194 { | 2197 { |
| 2195 if (!frame()) | 2198 if (!frame()) |
| 2196 return WebSandboxFlags::None; | 2199 return WebSandboxFlags::None; |
| 2197 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2200 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
| 2198 } | 2201 } |
| 2199 | 2202 |
| 2200 } // namespace blink | 2203 } // namespace blink |
| OLD | NEW |