Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 1850023002: Consume Mojo services directly in Blink's WebUSB implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/installedapp/InstalledAppController.h"
162 #include "modules/notifications/NotificationPermissionClient.h" 162 #include "modules/notifications/NotificationPermissionClient.h"
163 #include "modules/permissions/PermissionController.h" 163 #include "modules/permissions/PermissionController.h"
164 #include "modules/presentation/PresentationController.h" 164 #include "modules/presentation/PresentationController.h"
165 #include "modules/push_messaging/PushController.h" 165 #include "modules/push_messaging/PushController.h"
166 #include "modules/screen_orientation/ScreenOrientationController.h" 166 #include "modules/screen_orientation/ScreenOrientationController.h"
167 #include "modules/vr/VRController.h" 167 #include "modules/vr/VRController.h"
168 #include "modules/wake_lock/ScreenWakeLock.h" 168 #include "modules/wake_lock/ScreenWakeLock.h"
169 #include "modules/webusb/USBController.h"
170 #include "platform/ScriptForbiddenScope.h" 169 #include "platform/ScriptForbiddenScope.h"
171 #include "platform/TraceEvent.h" 170 #include "platform/TraceEvent.h"
172 #include "platform/UserGestureIndicator.h" 171 #include "platform/UserGestureIndicator.h"
173 #include "platform/clipboard/ClipboardUtilities.h" 172 #include "platform/clipboard/ClipboardUtilities.h"
174 #include "platform/fonts/FontCache.h" 173 #include "platform/fonts/FontCache.h"
175 #include "platform/graphics/GraphicsContext.h" 174 #include "platform/graphics/GraphicsContext.h"
176 #include "platform/graphics/GraphicsLayerClient.h" 175 #include "platform/graphics/GraphicsLayerClient.h"
177 #include "platform/graphics/paint/ClipRecorder.h" 176 #include "platform/graphics/paint/ClipRecorder.h"
178 #include "platform/graphics/paint/DrawingRecorder.h" 177 #include "platform/graphics/paint/DrawingRecorder.h"
179 #include "platform/graphics/paint/SkPictureBuilder.h" 178 #include "platform/graphics/paint/SkPictureBuilder.h"
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 1531
1533 if (enableWebBluetooth) 1532 if (enableWebBluetooth)
1534 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth( ) : nullptr); 1533 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth( ) : nullptr);
1535 1534
1536 if (RuntimeEnabledFeatures::screenOrientationEnabled()) 1535 if (RuntimeEnabledFeatures::screenOrientationEnabled())
1537 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we bScreenOrientationClient() : nullptr); 1536 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we bScreenOrientationClient() : nullptr);
1538 if (RuntimeEnabledFeatures::presentationEnabled()) 1537 if (RuntimeEnabledFeatures::presentationEnabled())
1539 PresentationController::provideTo(*m_frame, m_client ? m_client->present ationClient() : nullptr); 1538 PresentationController::provideTo(*m_frame, m_client ? m_client->present ationClient() : nullptr);
1540 if (RuntimeEnabledFeatures::permissionsEnabled()) 1539 if (RuntimeEnabledFeatures::permissionsEnabled())
1541 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio nClient() : nullptr); 1540 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio nClient() : nullptr);
1542 if (RuntimeEnabledFeatures::webUSBEnabled())
1543 USBController::provideTo(*m_frame, m_client ? m_client->usbClient() : nu llptr);
1544 if (RuntimeEnabledFeatures::webVREnabled()) 1541 if (RuntimeEnabledFeatures::webVREnabled())
1545 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : n ullptr); 1542 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : n ullptr);
1546 if (RuntimeEnabledFeatures::wakeLockEnabled()) 1543 if (RuntimeEnabledFeatures::wakeLockEnabled())
1547 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockClient( ) : nullptr); 1544 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockClient( ) : nullptr);
1548 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) 1545 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
1549 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl:: create()); 1546 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl:: create());
1550 if (RuntimeEnabledFeatures::installedAppEnabled()) 1547 if (RuntimeEnabledFeatures::installedAppEnabled())
1551 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install edAppClient() : nullptr); 1548 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install edAppClient() : nullptr);
1552 } 1549 }
1553 1550
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
2175 return WebSandboxFlags::None; 2172 return WebSandboxFlags::None;
2176 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2173 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2177 } 2174 }
2178 2175
2179 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) 2176 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags)
2180 { 2177 {
2181 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2178 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2182 } 2179 }
2183 2180
2184 } // namespace blink 2181 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698