Changeset 160371 in webkit


Ignore:
Timestamp:
Dec 10, 2013 9:47:55 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Allow us to use network process with a single process model
https://bugs.webkit.org/show_bug.cgi?id=125507

Patch by Kwang Yul Seo <skyul@company100.net> on 2013-12-10
Reviewed by Brady Eidson.

Currently, WebContext::sendToNetworkingProcess and
WebContext::sendToNetworkingProcessRelaunchingIfNecessary assume that
network process is not used when the given process model is
ProcessModelSharedSecondaryProcess. This is not consistent with
WebContext::networkingProcessConnection which returns the networking
process connection for ProcessModelSharedSecondaryProcess.

  • UIProcess/WebContext.h:

(WebKit::WebContext::sendToNetworkingProcess):
(WebKit::WebContext::sendToNetworkingProcessRelaunchingIfNecessary):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160369 r160371  
     12013-12-10  Kwang Yul Seo  <skyul@company100.net>
     2
     3        Allow us to use network process with a single process model
     4        https://bugs.webkit.org/show_bug.cgi?id=125507
     5
     6        Reviewed by Brady Eidson.
     7
     8        Currently, WebContext::sendToNetworkingProcess and
     9        WebContext::sendToNetworkingProcessRelaunchingIfNecessary assume that
     10        network process is not used when the given process model is
     11        ProcessModelSharedSecondaryProcess. This is not consistent with
     12        WebContext::networkingProcessConnection which returns the networking
     13        process connection for ProcessModelSharedSecondaryProcess.
     14
     15        * UIProcess/WebContext.h:
     16        (WebKit::WebContext::sendToNetworkingProcess):
     17        (WebKit::WebContext::sendToNetworkingProcessRelaunchingIfNecessary):
     18
    1192013-12-10  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
    220
  • trunk/Source/WebKit2/UIProcess/WebContext.h

    r160300 r160371  
    517517    switch (m_processModel) {
    518518    case ProcessModelSharedSecondaryProcess:
     519#if ENABLE(NETWORK_PROCESS)
     520        if (m_usesNetworkProcess) {
     521            if (m_networkProcess->canSendMessage())
     522                m_networkProcess->send(std::forward<T>(message), 0);
     523            return;
     524        }
     525#endif
    519526        if (!m_processes.isEmpty() && m_processes[0]->canSendMessage())
    520527            m_processes[0]->send(std::forward<T>(message), 0);
     
    537544    switch (m_processModel) {
    538545    case ProcessModelSharedSecondaryProcess:
     546#if ENABLE(NETWORK_PROCESS)
     547        if (m_usesNetworkProcess) {
     548            ensureNetworkProcess();
     549            m_networkProcess->send(std::forward<T>(message), 0);
     550            return;
     551        }
     552#endif
    539553        ensureSharedWebProcess();
    540554        m_processes[0]->send(std::forward<T>(message), 0);
Note: See TracChangeset for help on using the changeset viewer.