|
Lines 39-45
a/Source/WebKit/UIProcess/WebProcessPool.cpp_sec1
|
| 39 |
#include "DownloadProxyMessages.h" |
39 |
#include "DownloadProxyMessages.h" |
| 40 |
#include "GamepadData.h" |
40 |
#include "GamepadData.h" |
| 41 |
#include "HighPerformanceGraphicsUsageSampler.h" |
41 |
#include "HighPerformanceGraphicsUsageSampler.h" |
|
|
42 |
#if ENABLE(LEGACY_CUSTOM_PROTOCOL_MANAGER) |
| 42 |
#include "LegacyCustomProtocolManagerMessages.h" |
43 |
#include "LegacyCustomProtocolManagerMessages.h" |
|
|
44 |
#endif |
| 43 |
#include "LogInitialization.h" |
45 |
#include "LogInitialization.h" |
| 44 |
#include "NetworkProcessCreationParameters.h" |
46 |
#include "NetworkProcessCreationParameters.h" |
| 45 |
#include "NetworkProcessMessages.h" |
47 |
#include "NetworkProcessMessages.h" |
|
Lines 366-375
void WebProcessPool::setAutomationClient(std::unique_ptr<API::AutomationClient>&
a/Source/WebKit/UIProcess/WebProcessPool.cpp_sec2
|
| 366 |
|
368 |
|
| 367 |
void WebProcessPool::setLegacyCustomProtocolManagerClient(std::unique_ptr<API::CustomProtocolManagerClient>&& customProtocolManagerClient) |
369 |
void WebProcessPool::setLegacyCustomProtocolManagerClient(std::unique_ptr<API::CustomProtocolManagerClient>&& customProtocolManagerClient) |
| 368 |
{ |
370 |
{ |
|
|
371 |
#if ENABLE(LEGACY_CUSTOM_PROTOCOL_MANAGER) |
| 369 |
if (!customProtocolManagerClient) |
372 |
if (!customProtocolManagerClient) |
| 370 |
m_customProtocolManagerClient = std::make_unique<API::CustomProtocolManagerClient>(); |
373 |
m_customProtocolManagerClient = std::make_unique<API::CustomProtocolManagerClient>(); |
| 371 |
else |
374 |
else |
| 372 |
m_customProtocolManagerClient = WTFMove(customProtocolManagerClient); |
375 |
m_customProtocolManagerClient = WTFMove(customProtocolManagerClient); |
|
|
376 |
#endif |
| 373 |
} |
377 |
} |
| 374 |
|
378 |
|
| 375 |
void WebProcessPool::setMaximumNumberOfProcesses(unsigned maximumNumberOfProcesses) |
379 |
void WebProcessPool::setMaximumNumberOfProcesses(unsigned maximumNumberOfProcesses) |
|
Lines 1638-1652
void WebProcessPool::setPlugInAutoStartOriginsFilteringOutEntriesAddedAfterTime(
a/Source/WebKit/UIProcess/WebProcessPool.cpp_sec3
|
| 1638 |
|
1642 |
|
| 1639 |
void WebProcessPool::registerSchemeForCustomProtocol(const String& scheme) |
1643 |
void WebProcessPool::registerSchemeForCustomProtocol(const String& scheme) |
| 1640 |
{ |
1644 |
{ |
|
|
1645 |
#if ENABLE(LEGACY_CUSTOM_PROTOCOL_MANAGER) |
| 1641 |
if (!globalURLSchemesWithCustomProtocolHandlers().contains(scheme)) |
1646 |
if (!globalURLSchemesWithCustomProtocolHandlers().contains(scheme)) |
| 1642 |
m_urlSchemesRegisteredForCustomProtocols.add(scheme); |
1647 |
m_urlSchemesRegisteredForCustomProtocols.add(scheme); |
| 1643 |
sendToNetworkingProcess(Messages::LegacyCustomProtocolManager::RegisterScheme(scheme)); |
1648 |
sendToNetworkingProcess(Messages::LegacyCustomProtocolManager::RegisterScheme(scheme)); |
|
|
1649 |
#endif |
| 1644 |
} |
1650 |
} |
| 1645 |
|
1651 |
|
| 1646 |
void WebProcessPool::unregisterSchemeForCustomProtocol(const String& scheme) |
1652 |
void WebProcessPool::unregisterSchemeForCustomProtocol(const String& scheme) |
| 1647 |
{ |
1653 |
{ |
|
|
1654 |
#if ENABLE(LEGACY_CUSTOM_PROTOCOL_MANAGER) |
| 1648 |
m_urlSchemesRegisteredForCustomProtocols.remove(scheme); |
1655 |
m_urlSchemesRegisteredForCustomProtocols.remove(scheme); |
| 1649 |
sendToNetworkingProcess(Messages::LegacyCustomProtocolManager::UnregisterScheme(scheme)); |
1656 |
sendToNetworkingProcess(Messages::LegacyCustomProtocolManager::UnregisterScheme(scheme)); |
|
|
1657 |
#endif |
| 1650 |
} |
1658 |
} |
| 1651 |
|
1659 |
|
| 1652 |
#if ENABLE(NETSCAPE_PLUGIN_API) |
1660 |
#if ENABLE(NETSCAPE_PLUGIN_API) |