Source/WebCore/ChangeLog

 12013-02-07 Balazs Kelemen <kbalazs@webkit.org>
 2
 3 [WK2][EFL] Set up NetworkProcess
 4 https://bugs.webkit.org/show_bug.cgi?id=108832
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Define NetworkStorageSession::isPrivateBrowsingSession for soup as well.
 9
 10 No change in behavior so no new tests.
 11
 12 * platform/network/NetworkStorageSession.h:
 13 (WebCore::NetworkStorageSession::isPrivateBrowsingSession):
 14 (NetworkStorageSession):
 15 * platform/network/soup/NetworkStorageSessionSoup.cpp:
 16 (WebCore::NetworkStorageSession::NetworkStorageSession):
 17
1182013-02-08 Anton Vayvod <avayvod@chromium.org>
219
320 [Text Autosizing] Split isAutosizingCluster into three independent checks

Source/WebKit2/ChangeLog

 12013-02-07 Balazs Kelemen <kbalazs@webkit.org>
 2
 3 [WK2][EFL] Set up NetworkProcess
 4 https://bugs.webkit.org/show_bug.cgi?id=108832
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Make EFL build with ENABLE_NETWORK_PROCESS. By default it is disabled.
 9 The patch adds the necessary platform specific bits and stubs for
 10 UNIX_DOMAIN_SOCKETS, the SOUP network backend and EFL and it adds the
 11 related files to the CMake build system. Some refactoring were also made.
 12
 13 * CMakeLists.txt:
 14 * NetworkProcess/NetworkProcess.cpp:
 15 (WebKit::NetworkProcess::NetworkProcess):
 16 (WebKit::NetworkProcess::createNetworkConnectionToWebProcess):
 17 Add platform specific IPC code for UNIX_DOMAIN_SOCKETS.
 18
 19 * NetworkProcess/NetworkResourceLoadScheduler.cpp: Fix mistyping for case
 20 sensitive systems.
 21 * NetworkProcess/NetworkResourceLoader.cpp:
 22 (WebKit::NetworkResourceLoader::start):
 23 * NetworkProcess/RemoteNetworkingContext.h: Renamed from Source/WebKit2/NetworkProcess/mac/RemoteNetworkingContext.h.
 24 (WebKit):
 25 (RemoteNetworkingContext):
 26 (WebKit::RemoteNetworkingContext::create):
 27 (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
 28 (WebKit::RemoteNetworkingContext::setNeedsSiteSpecificQuirks):
 29 (WebKit::RemoteNetworkingContext::setLocalFileContentSniffingEnabled):
 30 This should be a cross-platform interface so I lifted the header from the mac directory.
 31 Removed mac specific arguments from constructor, added setters instead. Added Soup specific bits.
 32
 33 * NetworkProcess/SyncNetworkResourceLoader.cpp:
 34 (WebKit::SyncNetworkResourceLoader::start):
 35
 36 * NetworkProcess/efl/NetworkProcessEfl.cpp: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 37 (WebKit::NetworkProcess::platformInitializeNetworkProcess):
 38 (WebKit::NetworkProcess::platformSetCacheModel):
 39 (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
 40 Only stubs for now.
 41
 42 * NetworkProcess/mac/RemoteNetworkingContext.mm:
 43 * NetworkProcess/soup/NetworkResourceLoadSchedulerSoup.cpp:
 44 (WebKit::NetworkResourceLoadScheduler::platformInitializeMaximumHTTPConnectionCountPerHost):
 45 Copied hard-coded constant from ResourceRequestSoup.cpp with comment.
 46
 47 * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp: Copied from Source/WebKit2/WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp.
 48 (WebKit::RemoteNetworkingContext::~RemoteNetworkingContext):
 49 (WebKit::RemoteNetworkingContext::isValid):
 50 (WebKit::RemoteNetworkingContext::initiatingPageID):
 51 (WebKit::RemoteNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
 52 (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
 53 (WebKit::RemoteNetworkingContext::destroyPrivateBrowsingSession):
 54 (WebKit::RemoteNetworkingContext::storageSession):
 55 (WebKit::RemoteNetworkingContext::privateBrowsingSession):
 56 RemoteNetworkingContext for soup, without private browsing support yet.
 57
 58 (WebKit):
 59 * NetworkProcess/unix/NetworkProcessMainUnix.cpp: Copied from Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp.
 60 (WebKit::NetworkProcessMain):
 61 (WebKit):
 62 * NetworkProcess/unix/NetworkProcessMainUnix.h: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 63 (WebKit): Common entry point for Unix ports. Correct RunLoop initializaton for EFL has been posponed.
 64
 65 * PlatformEfl.cmake:
 66 * Shared/ProcessExecutablePath.h:
 67 (WebKit):
 68 * Shared/WebResourceBuffer.h: Changed forward declaration of ShareableResource to actual
 69 include because GCC requires a definition of the type for passing it in a PassOwnPtr.
 70 * Shared/efl/ProcessExecutablePathEfl.cpp:
 71 (WebKit):
 72 (WebKit::executablePathOfNetworkProcess):
 73 * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
 74 (WebKit::ProcessLauncher::launchProcess):
 75
 76 * UIProcess/Network/NetworkProcessProxy.cpp:
 77 (WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch):
 78 (WebKit::NetworkProcessProxy::didCreateNetworkConnectionToWebProcess):
 79 Guards and handle UNIX_DOMAIN_SOCKETS case.
 80
 81 * UIProcess/Network/soup/NetworkProcessProxySoup.cpp: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 82 (WebKit::NetworkProcessProxy::platformGetLaunchOptions):
 83 * UIProcess/soup/WebContextSoup.cpp: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 84 (WebKit::WebContext::platformInitializeNetworkProcess):
 85 * WebKit2.xcodeproj/project.pbxproj:
 86
 87 * WebProcess/Network/WebResourceLoader.cpp:
 88 (WebKit::WebResourceLoader::didReceiveResponseWithCertificateInfo):
 89 (WebKit):
 90 * WebProcess/Network/WebResourceLoader.h:
 91 (WebResourceLoader):
 92 * WebProcess/Network/WebResourceLoader.messages.in:
 93 Added guards where it is appropriate.
 94
 95 * WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp:
 96 (WebKit::internalError):
 97 (WebKit):
 98 * WebProcess/WebProcess.cpp:
 99 (WebKit::WebProcess::ensureNetworkProcessConnection):
 100 Handle UNIX_DOMAIN_SOCKETS case.
 101 * unix/NetworkMainUnix.cpp: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 102 (main): Common stub for the executable for unix ports.
 103
 104 * CMakeLists.txt:
 105 * NetworkProcess/NetworkProcess.cpp:
 106 (WebKit::NetworkProcess::NetworkProcess):
 107 (WebKit::NetworkProcess::createNetworkConnectionToWebProcess):
 108 * NetworkProcess/NetworkResourceLoadScheduler.cpp:
 109 * NetworkProcess/NetworkResourceLoader.cpp:
 110 (WebKit::NetworkResourceLoader::start):
 111 * NetworkProcess/RemoteNetworkingContext.h: Renamed from Source/WebKit2/NetworkProcess/mac/RemoteNetworkingContext.h.
 112 (WebKit::RemoteNetworkingContext::create):
 113 (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
 114 (RemoteNetworkingContext):
 115 (WebKit::RemoteNetworkingContext::setNeedsSiteSpecificQuirks):
 116 (WebKit::RemoteNetworkingContext::setLocalFileContentSniffingEnabled):
 117 * NetworkProcess/SyncNetworkResourceLoader.cpp:
 118 (WebKit::SyncNetworkResourceLoader::start):
 119 * NetworkProcess/efl/NetworkProcessEfl.cpp: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 120 (WebKit::NetworkProcess::platformInitializeNetworkProcess):
 121 (WebKit::NetworkProcess::platformSetCacheModel):
 122 (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
 123 * NetworkProcess/mac/RemoteNetworkingContext.mm:
 124 * NetworkProcess/soup/NetworkResourceLoadSchedulerSoup.cpp: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 125 (WebKit::NetworkResourceLoadScheduler::platformInitializeMaximumHTTPConnectionCountPerHost):
 126 * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp: Copied from Source/WebKit2/WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp.
 127 (WebKit::RemoteNetworkingContext::~RemoteNetworkingContext):
 128 (WebKit::RemoteNetworkingContext::isValid):
 129 (WebKit::RemoteNetworkingContext::initiatingPageID):
 130 (WebKit::RemoteNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
 131 (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
 132 (WebKit::RemoteNetworkingContext::destroyPrivateBrowsingSession):
 133 (WebKit::RemoteNetworkingContext::storageSession):
 134 (WebKit::RemoteNetworkingContext::privateBrowsingSession):
 135 (WebKit):
 136 * NetworkProcess/unix/NetworkProcessMainUnix.cpp: Copied from Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp.
 137 (WebKit::NetworkProcessMain):
 138 (WebKit):
 139 * NetworkProcess/unix/NetworkProcessMainUnix.h: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 140 (WebKit):
 141 * PlatformEfl.cmake:
 142 * Shared/ProcessExecutablePath.h:
 143 (WebKit):
 144 * Shared/WebResourceBuffer.h:
 145 * Shared/efl/ProcessExecutablePathEfl.cpp:
 146 (WebKit):
 147 (WebKit::executablePathOfNetworkProcess):
 148 * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
 149 (WebKit::ProcessLauncher::launchProcess):
 150 * UIProcess/Network/NetworkProcessProxy.cpp:
 151 (WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch):
 152 (WebKit::NetworkProcessProxy::didCreateNetworkConnectionToWebProcess):
 153 * UIProcess/Network/soup/NetworkProcessProxySoup.cpp: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 154 (WebKit::NetworkProcessProxy::platformGetLaunchOptions):
 155 * UIProcess/soup/WebContextSoup.cpp: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 156 (WebKit::WebContext::platformInitializeNetworkProcess):
 157 * WebKit2.xcodeproj/project.pbxproj:
 158 * WebProcess/Network/WebResourceLoader.cpp:
 159 (WebKit::WebResourceLoader::didReceiveResponseWithCertificateInfo):
 160 (WebKit):
 161 * WebProcess/Network/WebResourceLoader.h:
 162 (WebResourceLoader):
 163 * WebProcess/Network/WebResourceLoader.messages.in:
 164 * WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp:
 165 (WebKit::internalError):
 166 (WebKit):
 167 * WebProcess/WebProcess.cpp:
 168 (WebKit::WebProcess::ensureNetworkProcessConnection):
 169 * unix/NetworkMainUnix.cpp: Copied from Source/WebKit2/Shared/WebResourceBuffer.h.
 170 (main):
 171
11722013-02-06 Balazs Kelemen <kbalazs@webkit.org>
2173
3174 [WK2][Unix][Refactoring] Get rid of socket creation code duplicates

Source/WebCore/platform/network/NetworkStorageSession.h

@@public:
5858#elif USE(SOUP)
5959 void setSoupSession(SoupSession* session) { m_session = session; }
6060 SoupSession* soupSession() const { return m_session; }
 61 bool isPrivateBrowsingSession() const { return m_isPrivate; }
6162#else
6263 NetworkStorageSession(NetworkingContext*);
6364 ~NetworkStorageSession();

@@private:
7374#elif USE(SOUP)
7475 NetworkStorageSession(SoupSession*);
7576 SoupSession* m_session;
 77 bool m_isPrivate;
7678#else
7779 RefPtr<NetworkingContext> m_context;
7880#endif

Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp

@@namespace WebCore {
3535
3636NetworkStorageSession::NetworkStorageSession(SoupSession* session)
3737 : m_session(session)
 38 , m_isPrivate(false)
3839{
3940}
4041

Source/WebKit2/CMakeLists.txt

11set(WebKit2_INCLUDE_DIRECTORIES
22 "${WEBKIT2_DIR}"
 3 "${WEBKIT2_DIR}/NetworkProcess"
34 "${WEBKIT2_DIR}/Platform"
45 "${WEBKIT2_DIR}/Platform/CoreIPC"
56 "${WEBKIT2_DIR}/PluginProcess"

@@set(WebKit2_INCLUDE_DIRECTORIES
1112 "${WEBKIT2_DIR}/Shared/CoreIPCSupport"
1213 "${WEBKIT2_DIR}/Shared/Downloads"
1314 "${WEBKIT2_DIR}/Shared/Network"
 15 "${WEBKIT2_DIR}/Shared/Network/CustomProtocols"
1416 "${WEBKIT2_DIR}/Shared/Plugins"
1517 "${WEBKIT2_DIR}/Shared/Plugins/Netscape"
1618 "${WEBKIT2_DIR}/Shared/Plugins/Netscape/x11"

@@set(WebKit2_INCLUDE_DIRECTORIES
2325 "${WEBKIT2_DIR}/UIProcess/Downloads"
2426 "${WEBKIT2_DIR}/UIProcess/InspectorServer"
2527 "${WEBKIT2_DIR}/UIProcess/Launcher"
 28 "${WEBKIT2_DIR}/UIProcess/Network"
2629 "${WEBKIT2_DIR}/UIProcess/Notifications"
2730 "${WEBKIT2_DIR}/UIProcess/Plugins"
2831 "${WEBKIT2_DIR}/UIProcess/Storage"

@@set(WebKit2_INCLUDE_DIRECTORIES
4043 "${WEBKIT2_DIR}/WebProcess/InjectedBundle/DOM"
4144 "${WEBKIT2_DIR}/WebProcess/Launching"
4245 "${WEBKIT2_DIR}/WebProcess/MediaCache"
 46 "${WEBKIT2_DIR}/WebProcess/Network"
4347 "${WEBKIT2_DIR}/WebProcess/Notifications"
4448 "${WEBKIT2_DIR}/WebProcess/Plugins"
4549 "${WEBKIT2_DIR}/WebProcess/Plugins/Netscape"

@@set(WebKit2_INCLUDE_DIRECTORIES
118122)
119123
120124set(WebKit2_SOURCES
 125 NetworkProcess/HostRecord.cpp
 126 NetworkProcess/NetworkConnectionToWebProcess.cpp
 127 NetworkProcess/NetworkProcess.cpp
 128 NetworkProcess/NetworkResourceLoader.cpp
 129 NetworkProcess/NetworkResourceLoadScheduler.cpp
 130 NetworkProcess/SchedulableLoader.cpp
 131 NetworkProcess/SyncNetworkResourceLoader.cpp
 132
121133 Platform/Logging.cpp
122134 Platform/Module.cpp
123135 Platform/WorkQueue.cpp

@@set(WebKit2_SOURCES
158170 Shared/SecurityOriginData.cpp
159171 Shared/SessionState.cpp
160172 Shared/ShareableBitmap.cpp
 173 Shared/ShareableResource.cpp
161174 Shared/StatisticsData.cpp
162175 Shared/UpdateInfo.cpp
163176 Shared/VisitedLinkTable.cpp

@@set(WebKit2_SOURCES
190203 Shared/WebProcessCreationParameters.cpp
191204 Shared/WebRenderLayer.cpp
192205 Shared/WebRenderObject.cpp
 206 Shared/WebResourceBuffer.cpp
193207 Shared/WebTouchEvent.cpp
194208 Shared/WebURLRequest.cpp
195209 Shared/WebURLResponse.cpp

@@set(WebKit2_SOURCES
223237 Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp
224238 Shared/CoordinatedGraphics/WebCustomFilterProgramProxy.cpp
225239
 240 Shared/Network/NetworkProcessCreationParameters.cpp
 241 Shared/Network/NetworkResourceLoadParameters.cpp
 242
226243 Shared/Plugins/NPIdentifierData.cpp
227244 Shared/Plugins/NPObjectMessageReceiver.cpp
228245 Shared/Plugins/NPObjectProxy.cpp

@@set(WebKit2_SOURCES
355372
356373 UIProcess/Launcher/ProcessLauncher.cpp
357374
 375 UIProcess/Network/NetworkProcessProxy.cpp
 376
358377 UIProcess/Notifications/NotificationPermissionRequest.cpp
359378 UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp
360379 UIProcess/Notifications/WebNotification.cpp

@@set(WebKit2_SOURCES
367386 UIProcess/Plugins/PluginProcessProxy.cpp
368387 UIProcess/Plugins/WebPluginSiteDataManager.cpp
369388
 389 UIProcess/soup/WebContextSoup.cpp
 390
370391 WebProcess/WebConnectionToUIProcess.cpp
371392 WebProcess/WebProcess.cpp
372393

@@set(WebKit2_SOURCES
429450
430451 WebProcess/NetworkInfo/WebNetworkInfoManager.cpp
431452
 453 WebProcess/Network/NetworkProcessConnection.cpp
 454 WebProcess/Network/WebResourceLoadScheduler.cpp
 455 WebProcess/Network/WebResourceLoader.cpp
 456
432457 WebProcess/Notifications/NotificationPermissionRequestManager.cpp
433458 WebProcess/Notifications/WebNotificationManager.cpp
434459

@@set(WebKit2_SOURCES
495520)
496521
497522set(WebKit2_MESSAGES_IN_FILES
 523 NetworkProcess/NetworkConnectionToWebProcess.messages.in
 524 NetworkProcess/NetworkProcess.messages.in
 525
498526 PluginProcess/PluginControllerProxy.messages.in
499527 PluginProcess/PluginProcess.messages.in
500528 PluginProcess/WebProcessConnection.messages.in

@@set(WebKit2_MESSAGES_IN_FILES
527555
528556 UIProcess/Downloads/DownloadProxy.messages.in
529557
 558 UIProcess/Network/NetworkProcessProxy.messages.in
 559
530560 UIProcess/Notifications/WebNotificationManagerProxy.messages.in
531561
532562 UIProcess/Plugins/PluginProcessProxy.messages.in

@@set(WebKit2_MESSAGES_IN_FILES
549579
550580 WebProcess/MediaCache/WebMediaCacheManager.messages.in
551581
 582 WebProcess/Network/NetworkProcessConnection.messages.in
 583 WebProcess/Network/WebResourceLoader.messages.in
 584
552585 WebProcess/NetworkInfo/WebNetworkInfoManager.messages.in
553586
554587 WebProcess/Notifications/WebNotificationManager.messages.in

Source/WebKit2/NetworkProcess/NetworkProcess.cpp

11/*
22 * Copyright (C) 2012 Apple Inc. All rights reserved.
 3 * Copyright (C) 2013 University of Szeged. All rights reserved.
34 *
45 * Redistribution and use in source and binary forms, with or without
56 * modification, are permitted provided that the following conditions

@@NetworkProcess::NetworkProcess()
6364{
6465 addSupplement<AuthenticationManager>();
6566 addSupplement<WebCookieManager>();
 67#if ENABLE(CUSTOM_PROTOCOLS)
6668 addSupplement<CustomProtocolManager>();
 69#endif
6770}
6871
6972NetworkProcess::~NetworkProcess()

@@void NetworkProcess::createNetworkConnectionToWebProcess()
180183
181184 CoreIPC::Attachment clientPort(listeningPort, MACH_MSG_TYPE_MAKE_SEND);
182185 parentProcessConnection()->send(Messages::NetworkProcessProxy::DidCreateNetworkConnectionToWebProcess(clientPort), 0);
183 #else
184  notImplemented();
 186#elif USE(UNIX_DOMAIN_SOCKETS)
 187 CoreIPC::Connection::Identifier serverIdentifier, clientIdentifier;
 188 bool success = CoreIPC::Connection::createServerAndClientIdentifiers(serverIdentifier, clientIdentifier);
 189 ASSERT_UNUSED(success, success);
 190
 191 RefPtr<NetworkConnectionToWebProcess> connection = NetworkConnectionToWebProcess::create(serverIdentifier);
 192 m_webProcessConnections.append(connection.release());
 193
 194 CoreIPC::Attachment clientSocket(clientIdentifier);
 195 parentProcessConnection()->send(Messages::NetworkProcessProxy::DidCreateNetworkConnectionToWebProcess(clientSocket), 0);
185196#endif
186197}
187198

Source/WebKit2/NetworkProcess/NetworkResourceLoadScheduler.cpp

44#include "HostRecord.h"
55#include "Logging.h"
66#include "NetworkConnectionToWebProcess.h"
7 #include "NetworkProcessconnectionMessages.h"
 7#include "NetworkProcessConnectionMessages.h"
88#include "NetworkResourceLoadParameters.h"
99#include "NetworkResourceLoader.h"
1010#include "SyncNetworkResourceLoader.h"

Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp

@@void NetworkResourceLoader::start()
7777 // Explicit ref() balanced by a deref() in NetworkResourceLoader::resourceHandleStopped()
7878 ref();
7979
80  // FIXME (NetworkProcess): Create RemoteNetworkingContext with actual settings.
81  m_networkingContext = RemoteNetworkingContext::create(false, false, inPrivateBrowsingMode(), shouldClearReferrerOnHTTPSToHTTPRedirect());
 80 // FIXME (NetworkProcess): Set platform specific settings.
 81 m_networkingContext = RemoteNetworkingContext::create(inPrivateBrowsingMode(), shouldClearReferrerOnHTTPSToHTTPRedirect());
8282
8383 consumeSandboxExtensions();
8484

Source/WebKit2/NetworkProcess/RemoteNetworkingContext.h

 1/*
 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
 3 * Copyright (C) 2013 University of Szeged. All rights reserved.
 4 *
 5 * Redistribution and use in source and binary forms, with or without
 6 * modification, are permitted provided that the following conditions
 7 * are met:
 8 * 1. Redistributions of source code must retain the above copyright
 9 * notice, this list of conditions and the following disclaimer.
 10 * 2. Redistributions in binary form must reproduce the above copyright
 11 * notice, this list of conditions and the following disclaimer in the
 12 * documentation and/or other materials provided with the distribution.
 13 *
 14 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
 15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 16 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 18 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 24 * THE POSSIBILITY OF SUCH DAMAGE.
 25 */
 26
 27#ifndef RemoteNetworkingContext_h
 28#define RemoteNetworkingContext_h
 29
 30#include <WebCore/NetworkingContext.h>
 31
 32namespace WebKit {
 33
 34class RemoteNetworkingContext : public WebCore::NetworkingContext {
 35public:
 36 static PassRefPtr<RemoteNetworkingContext> create(bool privateBrowsingEnabled, bool shouldClearReferrerOnHTTPSToHTTPRedirect)
 37 {
 38 return adoptRef(new RemoteNetworkingContext(privateBrowsingEnabled, shouldClearReferrerOnHTTPSToHTTPRedirect));
 39 }
 40 virtual ~RemoteNetworkingContext();
 41
 42 static void setPrivateBrowsingStorageSessionIdentifierBase(const String&);
 43 static void ensurePrivateBrowsingSession();
 44 static void destroyPrivateBrowsingSession();
 45
 46 static WebCore::NetworkStorageSession& privateBrowsingSession(); // Can only be called when the session exists.
 47
 48 virtual bool shouldClearReferrerOnHTTPSToHTTPRedirect() const OVERRIDE
 49 {
 50 return m_shouldClearReferrerOnHTTPSToHTTPRedirect;
 51 }
 52
 53private:
 54 RemoteNetworkingContext(bool privateBrowsingEnabled, bool shouldClearReferrerOnHTTPSToHTTPRedirect)
 55 : m_privateBrowsingEnabled(privateBrowsingEnabled)
 56 , m_shouldClearReferrerOnHTTPSToHTTPRedirect(shouldClearReferrerOnHTTPSToHTTPRedirect)
 57 { }
 58
 59 virtual WebCore::NetworkStorageSession& storageSession() const OVERRIDE;
 60 virtual bool isValid() const OVERRIDE;
 61
 62#if PLATFORM(MAC)
 63 void setNeedsSiteSpecificQuirks(bool value) { m_needsSiteSpecificQuirks = value; }
 64 void setLocalFileContentSniffingEnabled(bool value) { m_localFileContentSniffingEnabled = value; }
 65
 66 virtual bool needsSiteSpecificQuirks() const OVERRIDE;
 67 virtual bool localFileContentSniffingEnabled() const OVERRIDE;
 68 virtual NSOperationQueue *scheduledOperationQueue() const OVERRIDE;
 69 virtual WebCore::ResourceError blockedError(const WebCore::ResourceRequest&) const OVERRIDE;
 70#endif
 71
 72#if USE(SOUP)
 73 virtual uint64_t initiatingPageID() const;
 74#endif
 75
 76#if PLATFORM(MAC)
 77 bool m_needsSiteSpecificQuirks;
 78 bool m_localFileContentSniffingEnabled;
 79#endif
 80
 81 bool m_privateBrowsingEnabled;
 82 bool m_shouldClearReferrerOnHTTPSToHTTPRedirect;
 83};
 84
 85}
 86
 87#endif // RemoteNetworkingContext_h

Source/WebKit2/NetworkProcess/SyncNetworkResourceLoader.cpp

@@void SyncNetworkResourceLoader::start()
5858 ResourceResponse response;
5959 Vector<char> data;
6060
61  // FIXME (NetworkProcess): Create RemoteNetworkingContext with actual settings.
62  RefPtr<RemoteNetworkingContext> networkingContext = RemoteNetworkingContext::create(false, false, inPrivateBrowsingMode(), shouldClearReferrerOnHTTPSToHTTPRedirect());
 61 // FIXME (NetworkProcess): Set platform specific settings.
 62 RefPtr<RemoteNetworkingContext> networkingContext = RemoteNetworkingContext::create(inPrivateBrowsingMode(), shouldClearReferrerOnHTTPSToHTTPRedirect());
6363
6464 consumeSandboxExtensions();
6565

Source/WebKit2/NetworkProcess/efl/NetworkProcessEfl.cpp

 1/*
 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 * 1. Redistributions of source code must retain the above copyright
 8 * notice, this list of conditions and the following disclaimer.
 9 * 2. Redistributions in binary form must reproduce the above copyright
 10 * notice, this list of conditions and the following disclaimer in the
 11 * documentation and/or other materials provided with the distribution.
 12 *
 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
 14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 23 * THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#include "config.h"
 27#if ENABLE(NETWORK_PROCESS)
 28#include "NetworkProcess.h"
 29
 30#include "NetworkProcessCreationParameters.h"
 31#include <WebCore/NotImplemented.h>
 32
 33using namespace WebCore;
 34
 35namespace WebKit {
 36
 37void NetworkProcess::platformInitializeNetworkProcess(const NetworkProcessCreationParameters&)
 38{
 39}
 40
 41void NetworkProcess::platformSetCacheModel(CacheModel)
 42{
 43 notImplemented();
 44}
 45
 46void NetworkProcess::allowSpecificHTTPSCertificateForHost(const PlatformCertificateInfo&, const String&)
 47{
 48 notImplemented();
 49}
 50
 51} // namespace WebKit
 52
 53#endif

Source/WebKit2/NetworkProcess/mac/RemoteNetworkingContext.h

1 /*
2  * Copyright (C) 2012 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23  * THE POSSIBILITY OF SUCH DAMAGE.
24  */
25 
26 #ifndef RemoteNetworkingContext_h
27 #define RemoteNetworkingContext_h
28 
29 #include <WebCore/NetworkingContext.h>
30 
31 namespace WebKit {
32 
33 class RemoteNetworkingContext : public WebCore::NetworkingContext {
34 public:
35  static PassRefPtr<RemoteNetworkingContext> create(bool needsSiteSpecificQuirks, bool localFileContentSniffingEnabled, bool privateBrowsingEnabled, bool shouldClearReferrerOnHTTPSToHTTPRedirect)
36  {
37  return adoptRef(new RemoteNetworkingContext(needsSiteSpecificQuirks, localFileContentSniffingEnabled, privateBrowsingEnabled, shouldClearReferrerOnHTTPSToHTTPRedirect));
38  }
39  virtual ~RemoteNetworkingContext();
40 
41  static void setPrivateBrowsingStorageSessionIdentifierBase(const String&);
42  static void ensurePrivateBrowsingSession();
43  static void destroyPrivateBrowsingSession();
44 
45  static WebCore::NetworkStorageSession& privateBrowsingSession(); // Can only be called when the session exists.
46 
47  virtual bool shouldClearReferrerOnHTTPSToHTTPRedirect() const OVERRIDE;
48 
49 private:
50  RemoteNetworkingContext(bool needsSiteSpecificQuirks, bool localFileContentSniffingEnabled, bool privateBrowsingEnabled, bool m_shouldClearReferrerOnHTTPSToHTTPRedirect);
51 
52  virtual bool isValid() const OVERRIDE;
53 
54  virtual bool needsSiteSpecificQuirks() const OVERRIDE;
55  virtual bool localFileContentSniffingEnabled() const OVERRIDE;
56  virtual WebCore::NetworkStorageSession& storageSession() const OVERRIDE;
57  virtual NSOperationQueue *scheduledOperationQueue() const OVERRIDE;
58  virtual WebCore::ResourceError blockedError(const WebCore::ResourceRequest&) const OVERRIDE;
59 
60  bool m_needsSiteSpecificQuirks;
61  bool m_localFileContentSniffingEnabled;
62  bool m_privateBrowsingEnabled;
63  bool m_shouldClearReferrerOnHTTPSToHTTPRedirect;
64 };
65 
66 }
67 
68 #endif // RemoteNetworkingContext_h

Source/WebKit2/NetworkProcess/mac/RemoteNetworkingContext.mm

@@static OwnPtr<NetworkStorageSession>& privateBrowsingStorageSession()
4242 return session;
4343}
4444
45 bool RemoteNetworkingContext::shouldClearReferrerOnHTTPSToHTTPRedirect() const
46 {
47  return m_shouldClearReferrerOnHTTPSToHTTPRedirect;
48 }
49 
50 RemoteNetworkingContext::RemoteNetworkingContext(bool needsSiteSpecificQuirks, bool localFileContentSniffingEnabled, bool privateBrowsingEnabled, bool shouldClearReferrerOnHTTPSToHTTPRedirect)
51  : m_needsSiteSpecificQuirks(needsSiteSpecificQuirks)
52  , m_localFileContentSniffingEnabled(localFileContentSniffingEnabled)
53  , m_privateBrowsingEnabled(privateBrowsingEnabled)
54  , m_shouldClearReferrerOnHTTPSToHTTPRedirect(shouldClearReferrerOnHTTPSToHTTPRedirect)
55 {
56 }
57 
5845RemoteNetworkingContext::~RemoteNetworkingContext()
5946{
6047}

Source/WebKit2/NetworkProcess/soup/NetworkResourceLoadSchedulerSoup.cpp

 1/*
 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 * 1. Redistributions of source code must retain the above copyright
 8 * notice, this list of conditions and the following disclaimer.
 9 * 2. Redistributions in binary form must reproduce the above copyright
 10 * notice, this list of conditions and the following disclaimer in the
 11 * documentation and/or other materials provided with the distribution.
 12 *
 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
 14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 23 * THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#include "config.h"
 27#if ENABLE(NETWORK_PROCESS)
 28
 29#include "NetworkResourceLoadScheduler.h"
 30
 31namespace WebKit {
 32
 33unsigned NetworkResourceLoadScheduler::platformInitializeMaximumHTTPConnectionCountPerHost()
 34{
 35 // See: ResourceRequestSoup.cpp
 36 return 10000;
 37}
 38
 39} // namespace WebKit
 40
 41#endif

Source/WebKit2/NetworkProcess/soup/RemoteNetworkingContextSoup.cpp

 1/*
 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
 3 * Copyright (C) 2013 University of Szeged. All rights reserved.
 4 *
 5 * Redistribution and use in source and binary forms, with or without
 6 * modification, are permitted provided that the following conditions
 7 * are met:
 8 * 1. Redistributions of source code must retain the above copyright
 9 * notice, this list of conditions and the following disclaimer.
 10 * 2. Redistributions in binary form must reproduce the above copyright
 11 * notice, this list of conditions and the following disclaimer in the
 12 * documentation and/or other materials provided with the distribution.
 13 *
 14 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
 15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 16 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 18 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 24 * THE POSSIBILITY OF SUCH DAMAGE.
 25 */
 26
 27#include "config.h"
 28#if ENABLE(NETWORK_PROCESS)
 29#include "RemoteNetworkingContext.h"
 30
 31#include <WebCore/NetworkStorageSession.h>
 32#include <WebCore/NotImplemented.h>
 33#include <WebCore/ResourceHandle.h>
 34
 35using namespace WebCore;
 36
 37namespace WebKit {
 38
 39RemoteNetworkingContext::~RemoteNetworkingContext()
 40{
 41}
 42
 43bool RemoteNetworkingContext::isValid() const
 44{
 45 return true;
 46}
 47
 48uint64_t RemoteNetworkingContext::initiatingPageID() const
 49{
 50 notImplemented();
 51 return 0;
 52}
 53
 54void RemoteNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase(const String&)
 55{
 56 notImplemented();
 57}
 58
 59void RemoteNetworkingContext::ensurePrivateBrowsingSession()
 60{
 61 notImplemented();
 62}
 63
 64void RemoteNetworkingContext::destroyPrivateBrowsingSession()
 65{
 66 notImplemented();
 67}
 68
 69NetworkStorageSession& RemoteNetworkingContext::storageSession() const
 70{
 71 return NetworkStorageSession::defaultStorageSession();
 72}
 73
 74NetworkStorageSession& RemoteNetworkingContext::privateBrowsingSession()
 75{
 76 notImplemented();
 77 return NetworkStorageSession::defaultStorageSession();
 78}
 79
 80}
 81
 82#endif // ENABLE(NETWORK_PROCESS)

Source/WebKit2/NetworkProcess/unix/NetworkProcessMainUnix.cpp

 1/*
 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
 4 *
 5 * Redistribution and use in source and binary forms, with or without
 6 * modification, are permitted provided that the following conditions
 7 * are met:
 8 * 1. Redistributions of source code must retain the above copyright
 9 * notice, this list of conditions and the following disclaimer.
 10 * 2. Redistributions in binary form must reproduce the above copyright
 11 * notice, this list of conditions and the following disclaimer in the
 12 * documentation and/or other materials provided with the distribution.
 13 *
 14 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS''
 15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 16 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 18 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 24 * THE POSSIBILITY OF SUCH DAMAGE.
 25 */
 26
 27#include "config.h"
 28#if ENABLE(NETWORK_PROCESS)
 29#include "NetworkProcessMainUnix.h"
 30
 31#include "WKBase.h"
 32#include <WebCore/RunLoop.h>
 33#include <WebKit2/NetworkProcess.h>
 34#include <error.h>
 35#include <runtime/InitializeThreading.h>
 36#include <stdlib.h>
 37#include <wtf/MainThread.h>
 38
 39#if PLATFORM(GTK)
 40#include <gtk/gtk.h>
 41#endif
 42
 43using namespace WebCore;
 44
 45namespace WebKit {
 46
 47WK_EXPORT int NetworkProcessMain(int argc, char* argv[])
 48{
 49 if (argc != 2)
 50 return 1;
 51
 52#if PLATFORM(GTK)
 53 gtk_init(&argc, &argv);
 54#endif
 55
 56 // FIXME: Event loop is not initialized correctly for EFL. For EFL we should should either
 57 // initialize ecore or use the glib-only RunLoop implementation in the network process.
 58
 59 JSC::initializeThreading();
 60 WTF::initializeMainThread();
 61
 62 RunLoop::initializeMainRunLoop();
 63
 64 // FIXME: handle proxy settings.
 65
 66 errno = 0;
 67 long int socket = strtol(argv[1], 0, 10);
 68 if (errno)
 69 return 1;
 70
 71 ChildProcessInitializationParameters parameters;
 72 parameters.connectionIdentifier = int(socket);
 73
 74 NetworkProcess::shared().initialize(parameters);
 75
 76 RunLoop::run();
 77
 78 return 0;
 79}
 80
 81} // namespace WebKit
 82
 83#endif // ENABLE(NETWORK_PROCESS)

Source/WebKit2/NetworkProcess/unix/NetworkProcessMainUnix.h

 1/*
 2 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
 3 * Copyright (C) 2013 University of Szeged. All rights reserved.
 4 *
 5 * Redistribution and use in source and binary forms, with or without
 6 * modification, are permitted provided that the following conditions
 7 * are met:
 8 * 1. Redistributions of source code must retain the above copyright
 9 * notice, this list of conditions and the following disclaimer.
 10 * 2. Redistributions in binary form must reproduce the above copyright
 11 * notice, this list of conditions and the following disclaimer in the
 12 * documentation and/or other materials provided with the distribution.
 13 *
 14 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
 15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 16 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 18 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 24 * THE POSSIBILITY OF SUCH DAMAGE.
 25 */
 26
 27#ifndef NetworkProcessMainUnix_h
 28#define NetworkProcessMainUnix_h
 29
 30#include <WebKit2/WKBase.h>
 31
 32namespace WebKit {
 33
 34WK_EXPORT int NetworkProcessMain(int argc, char* argv[]);
 35
 36} // namespace WebKit
 37
 38#endif // WebProcessMainEfl_h

Source/WebKit2/PlatformEfl.cmake

11list(APPEND WebKit2_SOURCES
 2 NetworkProcess/efl/NetworkProcessEfl.cpp
 3 NetworkProcess/soup/NetworkResourceLoadSchedulerSoup.cpp
 4 NetworkProcess/soup/RemoteNetworkingContextSoup.cpp
 5 NetworkProcess/unix/NetworkProcessMainUnix.cpp
 6
27 Platform/efl/LoggingEfl.cpp
38 Platform/efl/ModuleEfl.cpp
49 Platform/efl/WorkQueueEfl.cpp

@@list(APPEND WebKit2_SOURCES
109114 UIProcess/efl/WebProcessProxyEfl.cpp
110115 UIProcess/efl/WebView.cpp
111116
 117 UIProcess/soup/WebContextSoup.cpp
 118
112119 UIProcess/InspectorServer/efl/WebInspectorServerEfl.cpp
113120 UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp
114121

@@list(APPEND WebKit2_SOURCES
118125
119126 UIProcess/Launcher/efl/ProcessLauncherEfl.cpp
120127
 128 UIProcess/Network/soup/NetworkProcessProxySoup.cpp
 129
121130 UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
122131 UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
123132

@@list(APPEND WebKit2_INCLUDE_DIRECTORIES
163172 "${WEBCORE_DIR}/platform/network/soup"
164173 "${WEBCORE_DIR}/platform/text/enchant"
165174 "${WEBCORE_DIR}/svg/graphics"
 175 "${WEBKIT2_DIR}/NetworkProcess/unix"
166176 "${WEBKIT2_DIR}/Shared/Downloads/soup"
167177 "${WEBKIT2_DIR}/Shared/efl"
168178 "${WEBKIT2_DIR}/Shared/soup"

@@if (ENABLE_PLUGIN_PROCESS)
323333 install(TARGETS ${PluginProcess_EXECUTABLE_NAME} DESTINATION "${EXEC_INSTALL_DIR}")
324334endif () # ENABLE_PLUGIN_PROCESS
325335
 336if (ENABLE_NETWORK_PROCESS)
 337 set(NetworkProcess_EXECUTABLE_NAME NetworkProcess)
 338 list(APPEND NetworkProcess_INCLUDE_DIRECTORIES
 339 "${WEBKIT2_DIR}/NetworkProcess"
 340 )
 341
 342 include_directories(${NetworkProcess_INCLUDE_DIRECTORIES})
 343
 344 list(APPEND NetworkProcess_SOURCES
 345 ${WEBKIT2_DIR}/unix/NetworkMainUnix.cpp
 346 )
 347
 348 set(NetworkProcess_LIBRARIES
 349 ${WebKit2_LIBRARY_NAME}
 350 )
 351
 352 add_executable(${NetworkProcess_EXECUTABLE_NAME} ${NetworkProcess_SOURCES})
 353 target_link_libraries(${NetworkProcess_EXECUTABLE_NAME} ${NetworkProcess_LIBRARIES})
 354 install(TARGETS ${NetworkProcess_EXECUTABLE_NAME} DESTINATION "${EXEC_INSTALL_DIR}")
 355endif ()
 356
326357include_directories(${THIRDPARTY_DIR}/gtest/include)
327358
328359set(EWK2UnitTests_LIBRARIES

@@add_definitions(-DTEST_RESOURCES_DIR=\"${TEST_RESOURCES_DIR}\"
353384 -DLIBEXECDIR=\"${CMAKE_INSTALL_PREFIX}/${EXEC_INSTALL_DIR}\"
354385 -DWEBPROCESSNAME=\"${WebProcess_EXECUTABLE_NAME}\"
355386 -DPLUGINPROCESSNAME=\"${PluginProcess_EXECUTABLE_NAME}\"
 387 -DNETWORKPROCESSNAME=\"${NetworkProcess_EXECUTABLE_NAME}\"
356388)
357389
358390add_library(ewk2UnitTestUtils

Source/WebKit2/Shared/ProcessExecutablePath.h

@@namespace WebKit {
3232
3333String executablePathOfWebProcess();
3434String executablePathOfPluginProcess();
 35#if ENABLE(NETWORK_PROCESS)
 36String executablePathOfNetworkProcess();
 37#endif
3538
3639}
3740

Source/WebKit2/Shared/WebResourceBuffer.h

2626#ifndef WebResourceBuffer_h
2727#define WebResourceBuffer_h
2828
 29#include "ShareableResource.h"
2930#include <WebCore/ResourceBuffer.h>
3031
3132namespace WebKit {
3233
33 class ShareableResource;
34 
3534class WebResourceBuffer : public WebCore::ResourceBuffer {
3635public:
3736 static PassRefPtr<WebResourceBuffer> create(PassRefPtr<ShareableResource> resource) { return adoptRef(new WebResourceBuffer(resource)); }

Source/WebKit2/Shared/efl/ProcessExecutablePathEfl.cpp

@@String executablePathOfPluginProcess()
7474 return webKitPluginProcessName;
7575}
7676
 77#if ENABLE(NETWORK_PROCESS)
 78String executablePathOfNetworkProcess()
 79{
 80 DEFINE_STATIC_LOCAL(const String, webKitNetworkProcessName, (findProcessPath(NETWORKPROCESSNAME)));
 81
 82 return webKitNetworkProcessName;
 83}
 84#endif
 85
7786} // namespace WebKit

Source/WebKit2/UIProcess/Launcher/efl/ProcessLauncherEfl.cpp

@@void ProcessLauncher::launchProcess()
5151 pluginPath = m_launchOptions.extraInitializationData.get("plugin-path").utf8();
5252 break;
5353#endif
 54#if ENABLE(NETWORK_PROCESS)
 55 case NetworkProcess:
 56 executablePath = executablePathOfNetworkProcess().utf8();
 57 break;
 58#endif
5459 default:
5560 ASSERT_NOT_REACHED();
5661 return;

Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp

2929#if ENABLE(NETWORK_PROCESS)
3030
3131#include "AuthenticationChallengeProxy.h"
32 #include "CustomProtocolManagerProxyMessages.h"
3332#include "DownloadProxyMessages.h"
3433#include "NetworkProcessCreationParameters.h"
3534#include "NetworkProcessMessages.h"
3635#include "WebContext.h"
3736#include "WebProcessMessages.h"
 37#include <WebCore/NotImplemented.h>
3838#include <WebCore/RunLoop.h>
3939
4040#if USE(SECURITY_FRAMEWORK)
4141#include "SecItemShimProxy.h"
4242#endif
4343
 44#if ENABLE(CUSTOM_PROTOCOLS)
 45#include "CustomProtocolManagerProxyMessages.h"
 46#endif
 47
4448#define MESSAGE_CHECK(assertion) MESSAGE_CHECK_BASE(assertion, connection())
4549
4650using namespace WebCore;

@@void NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch()
100104
101105#if PLATFORM(MAC)
102106 reply->send(CoreIPC::Attachment(0, MACH_MSG_TYPE_MOVE_SEND));
 107#elif USE(UNIX_DOMAIN_SOCKETS)
 108 reply->send(CoreIPC::Attachment());
103109#else
104110 notImplemented();
105111#endif

@@void NetworkProcessProxy::didCreateNetworkConnectionToWebProcess(const CoreIPC::
150156
151157#if PLATFORM(MAC)
152158 reply->send(CoreIPC::Attachment(connectionIdentifier.port(), MACH_MSG_TYPE_MOVE_SEND));
 159#elif USE(UNIX_DOMAIN_SOCKETS)
 160 reply->send(connectionIdentifier);
153161#else
154162 notImplemented();
155163#endif

Source/WebKit2/UIProcess/Network/soup/NetworkProcessProxySoup.cpp

 1/*
 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 * 1. Redistributions of source code must retain the above copyright
 8 * notice, this list of conditions and the following disclaimer.
 9 * 2. Redistributions in binary form must reproduce the above copyright
 10 * notice, this list of conditions and the following disclaimer in the
 11 * documentation and/or other materials provided with the distribution.
 12 *
 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
 14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 23 * THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#include "config.h"
 27#if ENABLE(NETWORK_PROCESS)
 28
 29#include "NetworkProcessProxy.h"
 30
 31namespace WebKit {
 32
 33void NetworkProcessProxy::platformGetLaunchOptions(ProcessLauncher::LaunchOptions& launchOptions)
 34{
 35}
 36
 37}
 38
 39#endif // ENABLE(NETWORK_PROCESS)

Source/WebKit2/UIProcess/soup/WebContextSoup.cpp

 1/*
 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 * 1. Redistributions of source code must retain the above copyright
 8 * notice, this list of conditions and the following disclaimer.
 9 * 2. Redistributions in binary form must reproduce the above copyright
 10 * notice, this list of conditions and the following disclaimer in the
 11 * documentation and/or other materials provided with the distribution.
 12 *
 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
 14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 23 * THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#include "config.h"
 27#if ENABLE(NETWORK_PROCESS)
 28#include "WebContext.h"
 29
 30#include "NetworkProcessCreationParameters.h"
 31
 32namespace WebKit {
 33
 34void WebContext::platformInitializeNetworkProcess(NetworkProcessCreationParameters&)
 35{
 36}
 37
 38}
 39
 40#endif

Source/WebKit2/WebKit2.xcodeproj/project.pbxproj

24722472 E1A31734134CEA80007C9A4F /* AttributedString.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AttributedString.mm; sourceTree = "<group>"; };
24732473 E1AEA22D14687BDB00804569 /* WKFullKeyboardAccessWatcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKFullKeyboardAccessWatcher.h; sourceTree = "<group>"; };
24742474 E1AEA22E14687BDB00804569 /* WKFullKeyboardAccessWatcher.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKFullKeyboardAccessWatcher.mm; sourceTree = "<group>"; };
2475  E1B78470163F24690007B692 /* RemoteNetworkingContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteNetworkingContext.h; sourceTree = "<group>"; };
 2475 E1B78470163F24690007B692 /* RemoteNetworkingContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RemoteNetworkingContext.h; path = NetworkProcess/RemoteNetworkingContext.h; sourceTree = "<group>"; };
24762476 E1B78472163F253E0007B692 /* RemoteNetworkingContext.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteNetworkingContext.mm; sourceTree = "<group>"; };
24772477 E1CC1B8E12D7EADF00625838 /* PrintInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PrintInfo.h; sourceTree = "<group>"; };
24782478 E1CC1B8F12D7EADF00625838 /* PrintInfoMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PrintInfoMac.mm; sourceTree = "<group>"; };

33333333 51FD18B41651FBAD00DBE1CE /* NetworkResourceLoader.h */,
33343334 51829DA31637C70C000953D6 /* NetworkResourceLoadScheduler.cpp */,
33353335 51829DA41637C70C000953D6 /* NetworkResourceLoadScheduler.h */,
 3336 E1B78470163F24690007B692 /* RemoteNetworkingContext.h */,
33363337 519B4FF216A9EA970066874D /* SchedulableLoader.cpp */,
33373338 519B4FF316A9EA970066874D /* SchedulableLoader.h */,
33383339 51815B9D16A622210054501F /* SyncNetworkResourceLoader.cpp */,

33473348 E17AE2C116B9C139001C42F1 /* com.apple.WebKit.NetworkProcess.sb.in */,
33483349 51A8A6151627F3F9000D90E9 /* NetworkProcessMac.mm */,
33493350 512C068F16390E6900ABB911 /* NetworkResourceLoadSchedulerMac.mm */,
3350  E1B78470163F24690007B692 /* RemoteNetworkingContext.h */,
33513351 E1B78472163F253E0007B692 /* RemoteNetworkingContext.mm */,
33523352 );
33533353 name = mac;

58965896 );
58975897 runOnlyForDeploymentPostprocessing = 0;
58985898 shellPath = /bin/sh;
5899  shellScript = "if [[ \"${CONFIGURATION}\" == \"Production\" ]]; then\n exit\nfi\n\nXPC_SERVICES_PATH=\"${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/WebKit2.framework/Versions/A/XPCServices\"\nmkdir -p \"${XPC_SERVICES_PATH}\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.WebContent.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.WebContent.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.WebContent.Development.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.WebContent.Development.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Networking.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.Networking.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Networking.Development.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.Networking.Development.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.32.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.32.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.64.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.64.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.Development.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.Development.xpc\"\n";
 5899 shellScript = "if [[ \"${CONFIGURATION}\" == \"Production\" ]]; then\n exit\nfi\n\nXPC_SERVICES_PATH=\"${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/WebKit2.framework/Versions/A/XPCServices\"\nmkdir -p \"${XPC_SERVICES_PATH}\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.WebContent.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.WebContent.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.WebContent.Development.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.WebContent.Development.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Networking.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.Networking.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Networking.Development.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.Networking.Development.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.32.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.32.xpc\"\nditto \"${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.64.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.64.xpc\"\nditto \"${BUILT_
 5900PRODUCTS_DIR}/com.apple.WebKit.Plugin.Development.xpc\" \"${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.Development.xpc\"\n";
59005901 };
59015902 C0CE72841247E66800BC0EC4 /* Generate Derived Sources */ = {
59025903 isa = PBXShellScriptBuildPhase;

Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp

@@void WebResourceLoader::didReceiveResponseWithCertificateInfo(const ResourceResp
8383{
8484 LOG(Network, "(WebProcess) WebResourceLoader::didReceiveResponseWithCertificateInfo for '%s'. Status %d.", m_coreLoader->url().string().utf8().data(), response.httpStatusCode());
8585 ResourceResponse responseCopy(response);
 86#if USE(CFNETWORK)
8687 responseCopy.setCertificateChain(certificateInfo.certificateChain());
 88#endif
8789 m_coreLoader->didReceiveResponse(responseCopy);
8890}
8991

@@void WebResourceLoader::didReceiveResource(const ShareableResource::Handle& hand
123125 m_coreLoader->didFinishLoading(finishTime);
124126}
125127
 128#if USE(PROTECTION_SPACE_AUTH_CALLBACK)
126129void WebResourceLoader::canAuthenticateAgainstProtectionSpace(const ProtectionSpace& protectionSpace, bool& result)
127130{
128131 result = m_coreLoader->canAuthenticateAgainstProtectionSpace(protectionSpace);
129132}
 133#endif
130134
131135} // namespace WebKit
132136

Source/WebKit2/WebProcess/Network/WebResourceLoader.h

@@private:
8080 void didFailResourceLoad(const WebCore::ResourceError&);
8181 void didReceiveResource(const ShareableResource::Handle&, double finishTime);
8282
 83#if USE(PROTECTION_SPACE_AUTH_CALLBACK)
8384 void canAuthenticateAgainstProtectionSpace(const WebCore::ProtectionSpace&, bool& result);
 85#endif
8486
8587 RefPtr<WebCore::ResourceLoader> m_coreLoader;
8688};

Source/WebKit2/WebProcess/Network/WebResourceLoader.messages.in

2020# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2121# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2222
 23#if ENABLE(NETWORK_PROCESS)
 24
2325messages -> WebResourceLoader LegacyReceiver {
2426
2527 CancelResourceLoader()

@@messages -> WebResourceLoader LegacyReceiver {
3133 DidFinishResourceLoad(double finishTime)
3234 DidFailResourceLoad(WebCore::ResourceError error)
3335
 36#if USE(PROTECTION_SPACE_AUTH_CALLBACK)
3437 CanAuthenticateAgainstProtectionSpace(WebCore::ProtectionSpace protectionSpace) -> (bool response)
 38#endif
3539
3640 // DidReceiveResource is for when we have the entire resource data available at once, such as when the resource is cached in memory
3741 DidReceiveResource(WebKit::ShareableResource::Handle resource, double finishTime)
3842}
 43
 44#endif // ENABLE(NETWORK_PROCESS)

Source/WebKit2/WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp

2626#include "config.h"
2727#include "WebErrors.h"
2828
 29#include "WebError.h"
2930#include <WebCore/ErrorsEfl.h>
3031#include <WebCore/ResourceError.h>
3132#include <WebCore/ResourceRequest.h>
3233#include <WebCore/ResourceResponse.h>
 34#include <WebKit2/WKError.h>
3335
3436using namespace WebCore;
3537

@@ResourceError pluginWillHandleLoadError(const ResourceResponse& response)
7072 return WebCore::pluginWillHandleLoadError(response);
7173}
7274
 75WebCore::ResourceError internalError(const WebCore::KURL& url)
 76{
 77 return ResourceError(WebError::webKitErrorDomain(), kWKErrorInternal, url.string(), ASCIILiteral("Internal error"));
 78}
 79
7380} // namespace WebKit

Source/WebKit2/WebProcess/WebProcess.cpp

@@void WebProcess::ensureNetworkProcessConnection()
342342
343343#if PLATFORM(MAC)
344344 CoreIPC::Connection::Identifier connectionIdentifier(encodedConnectionIdentifier.port());
345  if (CoreIPC::Connection::identifierIsNull(connectionIdentifier))
346  return;
 345#elif USE(UNIX_DOMAIN_SOCKETS)
 346 CoreIPC::Connection::Identifier connectionIdentifier = encodedConnectionIdentifier.releaseFileDescriptor();
347347#else
348348 ASSERT_NOT_REACHED();
349349#endif
 350 if (CoreIPC::Connection::identifierIsNull(connectionIdentifier))
 351 return;
350352 m_networkProcessConnection = NetworkProcessConnection::create(connectionIdentifier);
351353}
352354#endif // ENABLE(NETWORK_PROCESS)

Source/WebKit2/unix/NetworkMainUnix.cpp

 1/*
 2 * Copyright (C) 2013 University of Szeged. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 * 1. Redistributions of source code must retain the above copyright
 8 * notice, this list of conditions and the following disclaimer.
 9 * 2. Redistributions in binary form must reproduce the above copyright
 10 * notice, this list of conditions and the following disclaimer in the
 11 * documentation and/or other materials provided with the distribution.
 12 *
 13 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ``AS IS''
 14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 23 * THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#include "config.h"
 27#if ENABLE(NETWORK_PROCESS)
 28
 29#include "NetworkProcessMainUnix.h"
 30
 31int main(int argc, char** argv)
 32{
 33 return WebKit::NetworkProcessMain(argc, argv);
 34}
 35
 36#endif

Source/cmakeconfig.h.cmake

8484#cmakedefine01 ENABLE_NOSNIFF
8585#cmakedefine01 ENABLE_NETSCAPE_PLUGIN_API
8686#cmakedefine01 ENABLE_NETWORK_INFO
 87#cmakedefine01 ENABLE_NETWORK_PROCESS
8788#cmakedefine01 ENABLE_NOTIFICATIONS
8889#cmakedefine01 ENABLE_ORIENTATION_EVENTS
8990#cmakedefine01 ENABLE_PAGE_POPUP

ChangeLog

 12013-02-07 Balazs Kelemen <kbalazs@webkit.org>
 2
 3 [WK2][EFL] Set up NetworkProcess
 4 https://bugs.webkit.org/show_bug.cgi?id=108832
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * Source/cmakeconfig.h.cmake:
 9 Add the ENABLE_NETWORK_PROCESS flag.
 10
1112013-02-08 Tomas Popela <tpopela@redhat.com>
212
313 [GTK] Include files from DerivedSources/webkitdom for introspection