[WinCairo] Add Storage Process files for wincairo webkit
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Sep 2017 18:46:34 +0000 (18:46 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Sep 2017 18:46:34 +0000 (18:46 +0000)
https://bugs.webkit.org/show_bug.cgi?id=176567

Patch by Stephan Szabo <stephan.szabo@am.sony.com> on 2017-09-08
Reviewed by Alex Christensen.

* PlatformWin.cmake:
* StorageProcess/EntryPoint/win/StorageProcessMain.cpp: Added.
(main):
* StorageProcess/win/StorageProcessMainWin.cpp: Added.
(WebKit::StorageProcessMainWin):
* StorageProcess/win/StorageProcessMainWin.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221791 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/PlatformWin.cmake
Source/WebKit/StorageProcess/EntryPoint/win/StorageProcessMain.cpp [new file with mode: 0644]
Source/WebKit/StorageProcess/win/StorageProcessMainWin.cpp [new file with mode: 0644]
Source/WebKit/StorageProcess/win/StorageProcessMainWin.h [new file with mode: 0644]

index 63b1724..bbd96dc 100644 (file)
@@ -1,3 +1,17 @@
+2017-09-08  Stephan Szabo  <stephan.szabo@am.sony.com>
+
+        [WinCairo] Add Storage Process files for wincairo webkit
+        https://bugs.webkit.org/show_bug.cgi?id=176567
+
+        Reviewed by Alex Christensen.
+
+        * PlatformWin.cmake:
+        * StorageProcess/EntryPoint/win/StorageProcessMain.cpp: Added.
+        (main):
+        * StorageProcess/win/StorageProcessMainWin.cpp: Added.
+        (WebKit::StorageProcessMainWin):
+        * StorageProcess/win/StorageProcessMainWin.h: Added.
+
 2017-09-08  Ryan Haddad  <ryanhaddad@apple.com>
 
         Unreviewed, rolling out r221771.
index a5b3928..0bd6832 100644 (file)
@@ -16,6 +16,8 @@ list(APPEND WebKit2_SOURCES
 
     NetworkProcess/win/NetworkProcessMainWin.cpp
     NetworkProcess/win/SystemProxyWin.cpp
+
+    StorageProcess/win/StorageProcessMainWin.cpp
 )
 
 # DerivedSources/JavaScriptCore/inspector/InspectorBackendCommands.js is
@@ -67,6 +69,7 @@ list(APPEND NetworkProcess_SOURCES
 )
 
 list(APPEND StorageProcess_SOURCES
+    StorageProcess/EntryPoint/win/StorageProcessMain.cpp
 )
 
 if (${ENABLE_PLUGIN_PROCESS})
diff --git a/Source/WebKit/StorageProcess/EntryPoint/win/StorageProcessMain.cpp b/Source/WebKit/StorageProcess/EntryPoint/win/StorageProcessMain.cpp
new file mode 100644 (file)
index 0000000..069e111
--- /dev/null
@@ -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 "config.h"
+#include "StorageProcessMainWin.h"
+
+using namespace WebKit;
+
+int main(int argc, char** argv)
+{
+    return StorageProcessMainWin(argc, argv);
+}
diff --git a/Source/WebKit/StorageProcess/win/StorageProcessMainWin.cpp b/Source/WebKit/StorageProcess/win/StorageProcessMainWin.cpp
new file mode 100644 (file)
index 0000000..7a66bba
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * 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 "StorageProcessMainWin.h"
+
+#include "ChildProcessMain.h"
+#include "StorageProcess.h"
+
+namespace WebKit {
+
+int StorageProcessMainWin(int argc, char** argv)
+{
+    return ChildProcessMain<StorageProcess, ChildProcessMainBase>(argc, argv);
+}
+
+} // namespace WebKit
diff --git a/Source/WebKit/StorageProcess/win/StorageProcessMainWin.h b/Source/WebKit/StorageProcess/win/StorageProcessMainWin.h
new file mode 100644 (file)
index 0000000..de118a5
--- /dev/null
@@ -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 StorageProcessMainWin(int argc, char** argv);
+}
+
+} // namespace WebKit