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 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 , m_autofillClient(0) | 1458 , m_autofillClient(0) |
1459 , m_contentSettingsClient(0) | 1459 , m_contentSettingsClient(0) |
1460 , m_inputEventsScaleFactorForEmulation(1) | 1460 , m_inputEventsScaleFactorForEmulation(1) |
1461 , m_userMediaClientImpl(this) | 1461 , m_userMediaClientImpl(this) |
1462 , m_geolocationClientProxy(GeolocationClientProxy::create(client ? client->g
eolocationClient() : 0)) | 1462 , m_geolocationClientProxy(GeolocationClientProxy::create(client ? client->g
eolocationClient() : 0)) |
1463 , m_webDevToolsFrontend(0) | 1463 , m_webDevToolsFrontend(0) |
1464 #if ENABLE(OILPAN) | 1464 #if ENABLE(OILPAN) |
1465 , m_selfKeepAlive(this) | 1465 , m_selfKeepAlive(this) |
1466 #endif | 1466 #endif |
1467 { | 1467 { |
1468 setIndexedDBClientCreateFunction(IndexedDBClientImpl::create); | |
1469 frameCount++; | 1468 frameCount++; |
1470 } | 1469 } |
1471 | 1470 |
1472 WebLocalFrameImpl::WebLocalFrameImpl(WebRemoteFrame* oldWebFrame, WebFrameClient
* client) | 1471 WebLocalFrameImpl::WebLocalFrameImpl(WebRemoteFrame* oldWebFrame, WebFrameClient
* client) |
1473 : WebLocalFrameImpl(oldWebFrame->inShadowTree() ? WebTreeScopeType::Shadow :
WebTreeScopeType::Document, client) | 1472 : WebLocalFrameImpl(oldWebFrame->inShadowTree() ? WebTreeScopeType::Shadow :
WebTreeScopeType::Document, client) |
1474 { | 1473 { |
1475 } | 1474 } |
1476 | 1475 |
1477 WebLocalFrameImpl::~WebLocalFrameImpl() | 1476 WebLocalFrameImpl::~WebLocalFrameImpl() |
1478 { | 1477 { |
(...skipping 30 matching lines...) Expand all Loading... |
1509 return; | 1508 return; |
1510 | 1509 |
1511 if (m_client) | 1510 if (m_client) |
1512 providePushControllerTo(*m_frame, m_client->pushClient()); | 1511 providePushControllerTo(*m_frame, m_client->pushClient()); |
1513 | 1512 |
1514 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClient
Impl::create()); | 1513 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClient
Impl::create()); |
1515 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1514 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
1516 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); | 1515 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); |
1517 m_geolocationClientProxy->setController(GeolocationController::from(m_frame.
get())); | 1516 m_geolocationClientProxy->setController(GeolocationController::from(m_frame.
get())); |
1518 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->webMIDI
Client() : nullptr)); | 1517 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->webMIDI
Client() : nullptr)); |
| 1518 provideIndexedDBClientTo(*m_frame, IndexedDBClientImpl::create()); |
1519 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); | 1519 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
1520 provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::cr
eate(this)); | 1520 provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::cr
eate(this)); |
1521 | 1521 |
1522 bool enableWebBluetooth = RuntimeEnabledFeatures::webBluetoothEnabled(); | 1522 bool enableWebBluetooth = RuntimeEnabledFeatures::webBluetoothEnabled(); |
1523 #if OS(CHROMEOS) || OS(ANDROID) | 1523 #if OS(CHROMEOS) || OS(ANDROID) |
1524 enableWebBluetooth = true; | 1524 enableWebBluetooth = true; |
1525 #endif | 1525 #endif |
1526 | 1526 |
1527 if (enableWebBluetooth) | 1527 if (enableWebBluetooth) |
1528 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth(
) : nullptr); | 1528 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth(
) : nullptr); |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2168 return WebSandboxFlags::None; | 2168 return WebSandboxFlags::None; |
2169 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2169 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2170 } | 2170 } |
2171 | 2171 |
2172 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) | 2172 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) |
2173 { | 2173 { |
2174 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2174 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2175 } | 2175 } |
2176 | 2176 |
2177 } // namespace blink | 2177 } // namespace blink |
OLD | NEW |