Changeset 140915 in webkit


Ignore:
Timestamp:
Jan 26, 2013 12:15:26 PM (11 years ago)
Author:
weinig@apple.com
Message:

Hoist command line parsing into ChildProcessMain
https://bugs.webkit.org/show_bug.cgi?id=108010

Reviewed by Dan Bernstein.

  • NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm:

(NetworkProcessMain):

  • PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:

(PluginProcessMain):

  • Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h:

(WebKit::ChildProcessMain):

  • SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm:

(SharedWorkerProcessMain):

  • WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:

(WebContentProcessMain):

Location:
trunk/Source/WebKit2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r140914 r140915  
     12013-01-26  Sam Weinig  <sam@webkit.org>
     2
     3        Hoist command line parsing into ChildProcessMain
     4        https://bugs.webkit.org/show_bug.cgi?id=108010
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm:
     9        (NetworkProcessMain):
     10        * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
     11        (PluginProcessMain):
     12        * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h:
     13        (WebKit::ChildProcessMain):
     14        * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm:
     15        (SharedWorkerProcessMain):
     16        * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
     17        (WebContentProcessMain):
     18
    1192013-01-26  Sam Weinig  <sam@webkit.org>
    220
  • trunk/Source/WebKit2/NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm

    r140914 r140915  
    3838int NetworkProcessMain(int argc, char** argv)
    3939{
    40     CommandLine commandLine;
    41     if (!commandLine.parse(argc, argv))
    42         return EXIT_FAILURE;
    43 
    44     return ChildProcessMain<NetworkProcess, ChildProcessMainDelegate>(commandLine);
     40    return ChildProcessMain<NetworkProcess, ChildProcessMainDelegate>(argc, argv);
    4541}
    4642
  • trunk/Source/WebKit2/PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm

    r140914 r140915  
    104104int PluginProcessMain(int argc, char** argv)
    105105{
    106     CommandLine commandLine;
    107     if (!commandLine.parse(argc, argv))
    108         return EXIT_FAILURE;
    109 
    110     return ChildProcessMain<PluginProcess, PluginProcessMainDelegate>(commandLine);
     106    return ChildProcessMain<PluginProcess, PluginProcessMainDelegate>(argc, argv);
    111107}
    112108
  • trunk/Source/WebKit2/Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h

    r140914 r140915  
    5959
    6060template<typename ChildProcessType, typename ChildProcessMainDelegateType>
    61 int ChildProcessMain(const CommandLine& commandLine)
     61int ChildProcessMain(int argc, char** argv)
    6262{
     63    CommandLine commandLine;
     64    if (!commandLine.parse(argc, argv))
     65        return EXIT_FAILURE;
     66
    6367    ChildProcessMainDelegateType delegate(commandLine);
    6468
  • trunk/Source/WebKit2/SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm

    r140914 r140915  
    3838int SharedWorkerProcessMain(int argc, char** argv)
    3939{
    40     CommandLine commandLine;
    41     if (!commandLine.parse(argc, argv))
    42         return EXIT_FAILURE;
    43 
    44     return ChildProcessMain<SharedWorkerProcess, ChildProcessMainDelegate>(commandLine);
     40    return ChildProcessMain<SharedWorkerProcess, ChildProcessMainDelegate>(argc, argv);
    4541}
    4642
  • trunk/Source/WebKit2/WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm

    r140914 r140915  
    177177int WebContentProcessMain(int argc, char** argv)
    178178{
    179     CommandLine commandLine;
    180     if (!commandLine.parse(argc, argv))
    181         return EXIT_FAILURE;
    182 
    183     return ChildProcessMain<WebProcess, WebContentProcessMainDelegate>(commandLine);
     179    return ChildProcessMain<WebProcess, WebContentProcessMainDelegate>(argc, argv);
    184180}
Note: See TracChangeset for help on using the changeset viewer.