Title: [221874] trunk/Source/WebKit
Revision
221874
Author
[email protected]
Date
2017-09-11 13:52:58 -0700 (Mon, 11 Sep 2017)

Log Message

[WinCairo] Add entry Web Process files for wincairo webkit
https://bugs.webkit.org/show_bug.cgi?id=176570

Patch by Stephan Szabo <[email protected]> on 2017-09-11
Reviewed by Alex Christensen.

* PlatformWin.cmake:
* WebProcess/EntryPoint/win/WebProcessMain.cpp: Added.
* WebProcess/win/WebProcessMainWin.cpp: Added.
* WebProcess/win/WebProcessMainWin.h: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (221873 => 221874)


--- trunk/Source/WebKit/ChangeLog	2017-09-11 20:45:26 UTC (rev 221873)
+++ trunk/Source/WebKit/ChangeLog	2017-09-11 20:52:58 UTC (rev 221874)
@@ -1,3 +1,15 @@
+2017-09-11  Stephan Szabo  <[email protected]>
+
+        [WinCairo] Add entry Web Process files for wincairo webkit
+        https://bugs.webkit.org/show_bug.cgi?id=176570
+
+        Reviewed by Alex Christensen.
+
+        * PlatformWin.cmake:
+        * WebProcess/EntryPoint/win/WebProcessMain.cpp: Added.
+        * WebProcess/win/WebProcessMainWin.cpp: Added.
+        * WebProcess/win/WebProcessMainWin.h: Added.
+
 2017-09-11  Alex Christensen  <[email protected]>
 
         Add WKUIDelegatePrivate equivalent of WKPageUIClient's decidePolicyForGeolocationPermissionRequest

Modified: trunk/Source/WebKit/PlatformWin.cmake (221873 => 221874)


--- trunk/Source/WebKit/PlatformWin.cmake	2017-09-11 20:45:26 UTC (rev 221873)
+++ trunk/Source/WebKit/PlatformWin.cmake	2017-09-11 20:52:58 UTC (rev 221874)
@@ -18,6 +18,8 @@
     NetworkProcess/win/SystemProxyWin.cpp
 
     StorageProcess/win/StorageProcessMainWin.cpp
+
+    WebProcess/win/WebProcessMainWin.cpp
 )
 
 # DerivedSources/_javascript_Core/inspector/InspectorBackendCommands.js is
@@ -62,6 +64,7 @@
 set(WebKit2CommonSystemIncludeDirectories ${WebKit2_SYSTEM_INCLUDE_DIRECTORIES})
 
 list(APPEND WebProcess_SOURCES
+    WebProcess/EntryPoint/win/WebProcessMain.cpp
 )
 
 list(APPEND NetworkProcess_SOURCES

Added: trunk/Source/WebKit/WebProcess/EntryPoint/win/WebProcessMain.cpp (0 => 221874)


--- trunk/Source/WebKit/WebProcess/EntryPoint/win/WebProcessMain.cpp	                        (rev 0)
+++ trunk/Source/WebKit/WebProcess/EntryPoint/win/WebProcessMain.cpp	2017-09-11 20:52:58 UTC (rev 221874)
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2017 Sony Interactive Entertainment Inc.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "WebProcessMainWin.h"
+
+#include <stdio.h>
+#include <windows.h>
+
+int main(int argc, char** argv)
+{
+    WebKit::WebProcessMainWin(argc, argv);
+}

Added: trunk/Source/WebKit/WebProcess/win/WebProcessMainWin.cpp (0 => 221874)


--- trunk/Source/WebKit/WebProcess/win/WebProcessMainWin.cpp	                        (rev 0)
+++ trunk/Source/WebKit/WebProcess/win/WebProcessMainWin.cpp	2017-09-11 20:52:58 UTC (rev 221874)
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2017 Sony Interactive Entertainment Inc.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "WebProcessMainWin.h"
+
+#include "ChildProcessMain.h"
+#include "WebProcess.h"
+#include <wtf/CurrentTime.h>
+
+using namespace WebCore;
+
+namespace WebKit {
+
+class WebProcessMain final: public ChildProcessMainBase {
+public:
+    bool platformInitialize() override
+    {
+        return true;
+    }
+};
+
+int WebProcessMainWin(int argc, char** argv)
+{
+    return ChildProcessMain<WebProcess, WebProcessMain>(argc, argv);
+}
+
+} // namespace WebKit

Added: trunk/Source/WebKit/WebProcess/win/WebProcessMainWin.h (0 => 221874)


--- trunk/Source/WebKit/WebProcess/win/WebProcessMainWin.h	                        (rev 0)
+++ trunk/Source/WebKit/WebProcess/win/WebProcessMainWin.h	2017-09-11 20:52:58 UTC (rev 221874)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2017 Sony Interactive Entertainment Inc.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#include <WebKit/WKBase.h>
+
+namespace WebKit {
+
+extern "C" {
+WK_EXPORT int WebProcessMainWin(int argc, char** argv);
+}
+
+} // namespace WebKit
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to