Changeset 160989 in webkit


Ignore:
Timestamp:
Dec 23, 2013 1:07:46 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Build with network process unconditionally
https://bugs.webkit.org/show_bug.cgi?id=126128

Reviewed by Martin Robinson.

.:

  • Source/autotools/SetupAutomake.m4: Remove network process

conditional for Makefiles.

  • Source/autotools/SetupWebKitFeatures.m4: Remove network process

feature.

Source/WebKit2:

Build always with the network process enabled and decide whether
to use it or not using an environment variable. This makes a lot
easier to work on the network process and also to switch between
using it or not.

  • GNUmakefile.am: Make sure we always include the WebKit2Prefix.h.
  • UIProcess/API/gtk/WebKitWebContext.cpp:

(createDefaultWebContext): Use the network process when
WEBKIT_USE_NETWORK_PROCESS environment variable is present.

  • WebKit2Prefix.h: Always enable network process for GTK port.

Tools:

  • Scripts/webkitperl/FeatureList.pm: Remove network-process

feature command line option.

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r160812 r160989  
     12013-12-23  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Build with network process unconditionally
     4        https://bugs.webkit.org/show_bug.cgi?id=126128
     5
     6        Reviewed by Martin Robinson.
     7
     8        * Source/autotools/SetupAutomake.m4: Remove network process
     9        conditional for Makefiles.
     10        * Source/autotools/SetupWebKitFeatures.m4: Remove network process
     11        feature.
     12
    1132013-12-18  Gustavo Noronha Silva  <gns@gnome.org>
    214
  • trunk/Source/WebKit2/ChangeLog

    r160988 r160989  
     12013-12-23  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Build with network process unconditionally
     4        https://bugs.webkit.org/show_bug.cgi?id=126128
     5
     6        Reviewed by Martin Robinson.
     7
     8        Build always with the network process enabled and decide whether
     9        to use it or not using an environment variable. This makes a lot
     10        easier to work on the network process and also to switch between
     11        using it or not.
     12
     13        * GNUmakefile.am: Make sure we always include the WebKit2Prefix.h.
     14        * UIProcess/API/gtk/WebKitWebContext.cpp:
     15        (createDefaultWebContext): Use the network process when
     16        WEBKIT_USE_NETWORK_PROCESS environment variable is present.
     17        * WebKit2Prefix.h: Always enable network process for GTK port.
     18
    1192013-12-23  Brian Holt  <brian.holt@samsung.com>
    220
  • trunk/Source/WebKit2/GNUmakefile.am

    r160985 r160989  
    4646        $(global_cppflags) \
    4747        -fno-strict-aliasing \
     48        -include $(srcdir)/Source/WebKit2/WebKit2Prefix.h \
    4849        -I$(srcdir)/Source/WebKit2 \
    4950        -I$(srcdir)/Source \
     
    462463        $(top_builddir)/WebKit2/webkit2gtk-@WEBKITGTK_API_VERSION@.pc
    463464
    464 if ENABLE_NETWORK_PROCESS
     465if ENABLE_WEBKIT2
    465466libexec_PROGRAMS += \
    466467        Programs/WebKitNetworkProcess
     
    468469
    469470Programs_WebKitNetworkProcess_CPPFLAGS = \
     471        -include $(srcdir)/Source/WebKit2/WebKit2Prefix.h \
    470472        -I$(srcdir)/Source/WebKit2 \
    471473        -I$(srcdir)/Source/WebKit2/UIProcess/API/C \
     
    500502
    501503Programs_WebKitWebProcess_CPPFLAGS = \
     504        -include $(srcdir)/Source/WebKit2/WebKit2Prefix.h \
    502505        -I$(srcdir)/Source/WebKit2 \
    503506        -I$(srcdir)/Source/WebKit2/UIProcess/API/C \
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp

    r160632 r160989  
    207207    priv->context->setCacheModel(CacheModelPrimaryWebBrowser);
    208208#if ENABLE(NETWORK_PROCESS)
    209     priv->context->setUsesNetworkProcess(true);
     209    // FIXME: Temporary use an env var until we have API to set the process model. See https://bugs.webkit.org/show_bug.cgi?id=125463.
     210    priv->context->setUsesNetworkProcess(g_getenv("WEBKIT_USE_NETWORK_PROCESS"));
    210211#endif
    211212    priv->tlsErrorsPolicy = WEBKIT_TLS_ERRORS_POLICY_IGNORE;
  • trunk/Source/WebKit2/WebKit2Prefix.h

    r160584 r160989  
    6969#endif
    7070
     71#if PLATFORM(GTK)
     72#define ENABLE_NETWORK_PROCESS 1
     73#endif
     74
    7175/* When C++ exceptions are disabled, the C++ library defines |try| and |catch|
    7276* to allow C++ code that expects exceptions to build. These definitions
  • trunk/Source/autotools/SetupAutomake.m4

    r160302 r160989  
    1414# enabled because it determines if we build leveldb or not.
    1515AM_WEBKIT_FEATURE_CONDITIONAL([ENABLE_INDEXED_DATABASE])
    16 AM_WEBKIT_FEATURE_CONDITIONAL([ENABLE_NETWORK_PROCESS])
    1716
    1817# OS conditionals.
  • trunk/Source/autotools/SetupWebKitFeatures.m4

    r160441 r160989  
    156156    ENABLE_NETSCAPE_PLUGIN_API=1 \
    157157    ENABLE_NETWORK_INFO=0 \
    158     ENABLE_NETWORK_PROCESS=0 \
    159158    ENABLE_NOTIFICATIONS=0 \
    160159    ENABLE_ORIENTATION_EVENTS=0 \
  • trunk/Tools/ChangeLog

    r160987 r160989  
     12013-12-23  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Build with network process unconditionally
     4        https://bugs.webkit.org/show_bug.cgi?id=126128
     5
     6        Reviewed by Martin Robinson.
     7
     8        * Scripts/webkitperl/FeatureList.pm: Remove network-process
     9        feature command line option.
     10
    1112013-12-23  Carlos Garcia Campos  <cgarcia@igalia.com>
    212
  • trunk/Tools/Scripts/webkitperl/FeatureList.pm

    r160486 r160989  
    112112    $netscapePluginAPISupport,
    113113    $networkInfoSupport,
    114     $networkProcessSupport,
    115114    $nosniffSupport,
    116115    $notificationsSupport,
     
    486485    { option => "cloop", desc => "Force use of the llint c loop",
    487486      define => "ENABLE_LLINT_C_LOOP", default => 0, value => \$forceCLoop },
    488 
    489     { option => "network-process", desc => "Toggle Network Process support",
    490       define => "ENABLE_NETWORK_PROCESS", default => 0, value => \$networkProcessSupport },
    491487);
    492488
Note: See TracChangeset for help on using the changeset viewer.