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/page/PrintContext.h" | 151 #include "core/page/PrintContext.h" |
152 #include "core/paint/PaintLayer.h" | 152 #include "core/paint/PaintLayer.h" |
153 #include "core/paint/ScopeRecorder.h" | 153 #include "core/paint/ScopeRecorder.h" |
154 #include "core/paint/TransformRecorder.h" | 154 #include "core/paint/TransformRecorder.h" |
155 #include "core/timing/DOMWindowPerformance.h" | 155 #include "core/timing/DOMWindowPerformance.h" |
156 #include "core/timing/Performance.h" | 156 #include "core/timing/Performance.h" |
157 #include "modules/app_banner/AppBannerController.h" | 157 #include "modules/app_banner/AppBannerController.h" |
158 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" | 158 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" |
159 #include "modules/bluetooth/BluetoothSupplement.h" | 159 #include "modules/bluetooth/BluetoothSupplement.h" |
160 #include "modules/geolocation/GeolocationController.h" | 160 #include "modules/geolocation/GeolocationController.h" |
| 161 #include "modules/installedapp/InstalledAppController.h" |
161 #include "modules/notifications/NotificationPermissionClient.h" | 162 #include "modules/notifications/NotificationPermissionClient.h" |
162 #include "modules/permissions/PermissionController.h" | 163 #include "modules/permissions/PermissionController.h" |
163 #include "modules/presentation/PresentationController.h" | 164 #include "modules/presentation/PresentationController.h" |
164 #include "modules/push_messaging/PushController.h" | 165 #include "modules/push_messaging/PushController.h" |
165 #include "modules/screen_orientation/ScreenOrientationController.h" | 166 #include "modules/screen_orientation/ScreenOrientationController.h" |
166 #include "modules/vr/VRController.h" | 167 #include "modules/vr/VRController.h" |
167 #include "modules/wake_lock/ScreenWakeLock.h" | 168 #include "modules/wake_lock/ScreenWakeLock.h" |
168 #include "modules/webusb/USBController.h" | 169 #include "modules/webusb/USBController.h" |
169 #include "platform/ScriptForbiddenScope.h" | 170 #include "platform/ScriptForbiddenScope.h" |
170 #include "platform/TraceEvent.h" | 171 #include "platform/TraceEvent.h" |
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1551 if (RuntimeEnabledFeatures::permissionsEnabled()) | 1552 if (RuntimeEnabledFeatures::permissionsEnabled()) |
1552 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); | 1553 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); |
1553 if (RuntimeEnabledFeatures::webUSBEnabled()) | 1554 if (RuntimeEnabledFeatures::webUSBEnabled()) |
1554 USBController::provideTo(*m_frame, m_client ? m_client->usbClient()
: nullptr); | 1555 USBController::provideTo(*m_frame, m_client ? m_client->usbClient()
: nullptr); |
1555 if (RuntimeEnabledFeatures::webVREnabled()) | 1556 if (RuntimeEnabledFeatures::webVREnabled()) |
1556 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); | 1557 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); |
1557 if (RuntimeEnabledFeatures::wakeLockEnabled()) | 1558 if (RuntimeEnabledFeatures::wakeLockEnabled()) |
1558 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli
ent() : nullptr); | 1559 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli
ent() : nullptr); |
1559 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) | 1560 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
1560 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientIm
pl::create()); | 1561 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientIm
pl::create()); |
| 1562 if (RuntimeEnabledFeatures::installedAppEnabled()) { |
| 1563 InstalledAppController::provideTo(*m_frame, m_client ? m_client->ins
talledAppClient() : nullptr); |
| 1564 } |
1561 } | 1565 } |
1562 } | 1566 } |
1563 | 1567 |
1564 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner,
const AtomicString& name, const AtomicString& uniqueName) | 1568 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner,
const AtomicString& name, const AtomicString& uniqueName) |
1565 { | 1569 { |
1566 setCoreFrame(LocalFrame::create(m_frameLoaderClientImpl.get(), host, owner))
; | 1570 setCoreFrame(LocalFrame::create(m_frameLoaderClientImpl.get(), host, owner))
; |
1567 frame()->tree().setPrecalculatedName(name, uniqueName); | 1571 frame()->tree().setPrecalculatedName(name, uniqueName); |
1568 // We must call init() after m_frame is assigned because it is referenced | 1572 // We must call init() after m_frame is assigned because it is referenced |
1569 // during init(). Note that this may dispatch JS events; the frame may be | 1573 // during init(). Note that this may dispatch JS events; the frame may be |
1570 // detached after init() returns. | 1574 // detached after init() returns. |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2188 return WebSandboxFlags::None; | 2192 return WebSandboxFlags::None; |
2189 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2193 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2190 } | 2194 } |
2191 | 2195 |
2192 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) | 2196 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) |
2193 { | 2197 { |
2194 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2198 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2195 } | 2199 } |
2196 | 2200 |
2197 } // namespace blink | 2201 } // namespace blink |
OLD | NEW |