Changeset 211027 in webkit
- Timestamp:
- Jan 22, 2017 9:24:51 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 20 added
- 1 deleted
- 29 edited
- 6 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r210734 r211027 115 115 116 116 set(JavaScriptCore_LIBRARY_TYPE SHARED) 117 set(PAL_LIBRARY_TYPE STATIC) 117 118 set(WebKit_LIBRARY_TYPE SHARED) 118 119 set(WebKit2_LIBRARY_TYPE SHARED) -
trunk/ChangeLog
r210992 r211027 1 2017-01-22 Don Olmstead <don.olmstead@am.sony.com> and Myles C. Maxfield <mmaxfield@apple.com> 2 3 Introducing the Platform Abstraction Layer (PAL) 4 https://bugs.webkit.org/show_bug.cgi?id=143358 5 6 Reviewed by Alex Christensen. 7 8 * CMakeLists.txt: 9 * Source/CMakeLists.txt: 10 * Source/cmake/WebKitFS.cmake: 11 1 12 2017-01-20 Joseph Pecoraro <pecoraro@apple.com> 2 13 -
trunk/Source/CMakeLists.txt
r205418 r211027 47 47 48 48 if (ENABLE_WEBCORE) 49 WEBKIT_SET_EXTRA_COMPILER_FLAGS(PAL ${ADDITIONAL_COMPILER_FLAGS}) 49 50 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreTestSupport ${ADDITIONAL_COMPILER_FLAGS}) 50 51 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCore ${ADDITIONAL_COMPILER_FLAGS}) -
trunk/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
r210992 r211027 1 // Copyright (C) 2009, 2010, 2014, 2015, 2016 Apple Inc. All rights reserved.1 // Copyright (C) 2009, 2010, 2014, 2015, 2016, 2017 Apple Inc. All rights reserved. 2 2 // Copyright (C) 2009 Google Inc. All rights reserved. 3 3 // -
trunk/Source/WebCore/CMakeLists.txt
r210936 r211027 2 2 include(WebKitCommon) 3 3 set_property(DIRECTORY . PROPERTY FOLDER "WebCore") 4 add_subdirectory(PAL/pal) 4 5 5 6 set(WebCore_INCLUDE_DIRECTORIES … … 2946 2947 ${ICU_LIBRARIES} 2947 2948 JavaScriptCore${DEBUG_SUFFIX} 2949 PAL${DEBUG_SUFFIX} 2948 2950 ) 2949 2951 -
trunk/Source/WebCore/ChangeLog
r211026 r211027 1 2017-01-22 Don Olmstead <don.olmstead@am.sony.com> and Myles C. Maxfield <mmaxfield@apple.com> 2 3 Introducing the Platform Abstraction Layer (PAL) 4 https://bugs.webkit.org/show_bug.cgi?id=143358 5 6 Reviewed by Alex Christensen. 7 8 In order to enforce layering and promote testability, WebCore/platform files 9 should be compiled in their own project. This new project can enforce layering 10 and can be tested with unit tests in addition to layout tests. 11 12 The name of this new project is the Platform Abstraction Layer, or "PAL." 13 This comprises of a new directory in WebCore which will be the destination 14 for files migrated from WebCore/platform. This new folder, and its associated 15 project, will maintain layering invariants. These invariants are enforced at 16 build-time by setting the #include path for PAL to not include the rest of 17 WebCore (which is the same layering enforcement mechanism for WTF). Files will 18 be migrated into this new target/directory piece-by-piece, and the migration 19 of a file will be performed as soon as it can be migrated without violating 20 layering. 21 22 Within WebCore, files should include PAL files using the convention 23 #include <pal/foo.h>. Symbols within PAL are placed within a new top-level 24 namespace, "PAL," and therefore when used should be referred to as PAL::Foo. 25 26 The first set of files to move into the new platform is the crypto/ subdirectory 27 because it is both simple but also includes platform-dependent files. 28 29 No new tests because there is no behavior change. 30 31 * CMakeLists.txt: 32 * Configurations/WebCore.xcconfig: Add PAL to the include path 33 * PAL/Configurations/Base.xcconfig: Added. 34 * PAL/Configurations/DebugRelease.xcconfig: Added. 35 * PAL/Configurations/PAL.xcconfig: Added. Sets up some PAL-specific 36 variables. 37 * PAL/Configurations/FeatureDefines.xcconfig: Added. 38 * PAL/Configurations/Version.xcconfig: Added. 39 * PAL/PAL.xcodeproj/project.pbxproj: Added. New project file. 40 * PAL/config.h: Added. Simplified from WebCore/config.h. 41 * PAL/pal/CMakeLists.txt: Added. 42 * PAL/pal/PlatformEfl.cmake: Added. 43 * PAL/pal/PlatformGTK.cmake: Added. 44 * PAL/pal/PlatformMac.cmake: Added. 45 * PAL/pal/PlatformWin.cmake: Added. 46 * PAL/pal/crypto/CryptoDigest.h: Renamed from Source/WebCore/platform/crypto/CryptoDigest.h. 47 * PAL/pal/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp: Renamed from Source/WebCore/platform/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp. 48 * PAL/pal/crypto/gcrypt/CryptoDigestGCrypt.cpp: Renamed from Source/WebCore/platform/crypto/gcrypt/CryptoDigestGCrypt.cpp. 49 * PAL/pal/crypto/gnutls/CryptoDigestGnuTLS.cpp: Renamed from Source/WebCore/platform/crypto/gnutls/CryptoDigestGnuTLS.cpp. 50 * PAL/pal/crypto/win/CryptoDigestWin.cpp: Renamed from Source/WebCore/platform/crypto/win/CryptoDigestWin.cpp. 51 * PlatformEfl.cmake: 52 * PlatformGTK.cmake: 53 * PlatformMac.cmake: 54 * PlatformWin.cmake: 55 * WebCore.xcodeproj/project.pbxproj: Create a project link so WebCore 56 knows that it needs to build PAL as a dependency. 57 * crypto/algorithms/CryptoAlgorithmSHA1.cpp: 58 (WebCore::CryptoAlgorithmSHA1::digest): Update #include and namespace. 59 * crypto/algorithms/CryptoAlgorithmSHA224.cpp: 60 (WebCore::CryptoAlgorithmSHA224::digest): Ditto. 61 * crypto/algorithms/CryptoAlgorithmSHA256.cpp: 62 (WebCore::CryptoAlgorithmSHA256::digest): Ditto. 63 * crypto/algorithms/CryptoAlgorithmSHA384.cpp: 64 (WebCore::CryptoAlgorithmSHA384::digest): Ditto. 65 * crypto/algorithms/CryptoAlgorithmSHA512.cpp: 66 (WebCore::CryptoAlgorithmSHA512::digest): Ditto. 67 * crypto/mac/CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp: 68 (WebCore::cryptoDigestAlgorithm): Ditto. 69 (WebCore::signRSASSA_PKCS1_v1_5): Ditto. 70 (WebCore::verifyRSASSA_PKCS1_v1_5): Ditto. 71 * inspector/InspectorDOMAgent.cpp: 72 (WebCore::computeContentSecurityPolicySHA256Hash): Ditto. 73 * page/csp/ContentSecurityPolicy.cpp: 74 (WebCore::toCryptoDigestAlgorithm): Ditto. 75 (WebCore::ContentSecurityPolicy::findHashOfContentInPolicies): Ditto. 76 * platform/network/soup/SoupNetworkSession.cpp: 77 (WebCore::HostTLSCertificateSet::computeCertificateHash): Ditto. 78 1 79 2017-01-22 Zan Dobersek <zdobersek@igalia.com> 2 80 -
trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig
r210992 r211027 1 // Copyright (C) 2009, 2010, 2014, 2015, 2016 Apple Inc. All rights reserved.1 // Copyright (C) 2009, 2010, 2014, 2015, 2016, 2017 Apple Inc. All rights reserved. 2 2 // Copyright (C) 2009 Google Inc. All rights reserved. 3 3 // -
trunk/Source/WebCore/Configurations/WebCore.xcconfig
r210688 r211027 47 47 WEBKITADDITIONS_HEADER_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR)/usr/local/include/WebKitAdditions $(SDKROOT)/usr/local/include/WebKitAdditions; 48 48 49 HEADER_SEARCH_PATHS = ForwardingHeaders icu /usr/include/libxslt /usr/include/libxml2 "$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore" "$(BUILT_PRODUCTS_DIR)/usr/local/include" $(WEBKITADDITIONS_HEADER_SEARCH_PATHS) $(HEADER_SEARCH_PATHS);49 HEADER_SEARCH_PATHS = PAL ForwardingHeaders icu /usr/include/libxslt /usr/include/libxml2 "$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore" "$(BUILT_PRODUCTS_DIR)/usr/local/include" $(WEBKITADDITIONS_HEADER_SEARCH_PATHS) $(HEADER_SEARCH_PATHS); 50 50 INFOPLIST_FILE = Info.plist; 51 51 INSTALL_PATH = $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks; -
trunk/Source/WebCore/PAL/Configurations/FeatureDefines.xcconfig
r211026 r211027 1 // Copyright (C) 2009, 2010, 2014, 2015, 2016 Apple Inc. All rights reserved.1 // Copyright (C) 2009, 2010, 2014, 2015, 2016, 2017 Apple Inc. All rights reserved. 2 2 // Copyright (C) 2009 Google Inc. All rights reserved. 3 3 // -
trunk/Source/WebCore/PAL/pal/crypto/CryptoDigest.h
r211026 r211027 24 24 */ 25 25 26 #ifndef CryptoDigest_h 27 #define CryptoDigest_h 26 #pragma once 28 27 29 28 #include <wtf/Noncopyable.h> 30 29 #include <wtf/Vector.h> 31 30 32 namespace WebCore{31 namespace PAL { 33 32 34 33 struct CryptoDigestContext; … … 56 55 }; 57 56 58 } // namespace WebCore 59 60 #endif // CryptoDigest_h 57 } // namespace PAL -
trunk/Source/WebCore/PAL/pal/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp
r211026 r211027 29 29 #include <CommonCrypto/CommonCrypto.h> 30 30 31 namespace WebCore{31 namespace PAL { 32 32 33 33 struct CryptoDigestContext { … … 177 177 } 178 178 179 } // namespace WebCore179 } // namespace PAL -
trunk/Source/WebCore/PAL/pal/crypto/gcrypt/CryptoDigestGCrypt.cpp
r211026 r211027 30 30 #include <gcrypt.h> 31 31 32 namespace WebCore{32 namespace PAL { 33 33 34 34 struct CryptoDigestContext { … … 95 95 } 96 96 97 } // namespace WebCore97 } // namespace PAL -
trunk/Source/WebCore/PAL/pal/crypto/gnutls/CryptoDigestGnuTLS.cpp
r211026 r211027 30 30 #include <gnutls/crypto.h> 31 31 32 namespace WebCore{32 namespace PAL { 33 33 34 34 struct CryptoDigestContext { … … 100 100 } 101 101 102 } // namespace WebCore102 } // namespace PAL -
trunk/Source/WebCore/PAL/pal/crypto/win/CryptoDigestWin.cpp
r211026 r211027 27 27 #include "CryptoDigest.h" 28 28 29 #include <windows.h> 29 30 #include <wincrypt.h> 30 31 31 namespace WebCore{32 namespace PAL { 32 33 33 34 struct CryptoDigestContext { … … 101 102 } 102 103 103 } // namespace WebCore104 } // namespace PAL -
trunk/Source/WebCore/PlatformEfl.cmake
r209665 r211027 69 69 70 70 platform/audio/efl/AudioBusEfl.cpp 71 72 platform/crypto/gcrypt/CryptoDigestGCrypt.cpp73 71 74 72 platform/efl/CursorEfl.cpp -
trunk/Source/WebCore/PlatformGTK.cmake
r210582 r211027 69 69 platform/audio/glib/AudioBusGLib.cpp 70 70 71 platform/crypto/gcrypt/CryptoDigestGCrypt.cpp72 73 71 platform/gamepad/glib/GamepadsGlib.cpp 74 72 -
trunk/Source/WebCore/PlatformMac.cmake
r210884 r211027 334 334 platform/cocoa/WebCoreNSErrorExtras.mm 335 335 336 platform/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp337 338 336 platform/gamepad/mac/HIDGamepad.cpp 339 337 platform/gamepad/mac/HIDGamepadProvider.cpp -
trunk/Source/WebCore/PlatformWin.cmake
r210532 r211027 74 74 platform/cf/win/CertificateCFWin.cpp 75 75 76 platform/crypto/win/CryptoDigestWin.cpp77 78 76 platform/graphics/GraphicsContext3DPrivate.cpp 79 77 -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r211008 r211027 978 978 1C0939EA1A13E12900B788E5 /* CachedSVGFont.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C0939E81A13E12900B788E5 /* CachedSVGFont.cpp */; }; 979 979 1C0939EB1A13E12900B788E5 /* CachedSVGFont.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C0939E91A13E12900B788E5 /* CachedSVGFont.h */; }; 980 1C09D0591E31C6A900725F18 /* libPAL.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C09D0501E31C32900725F18 /* libPAL.a */; }; 980 981 1C18DA58181AF6A500C4EF22 /* TextPainter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C18DA56181AF6A500C4EF22 /* TextPainter.cpp */; }; 981 982 1C18DA59181AF6A500C4EF22 /* TextPainter.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C18DA57181AF6A500C4EF22 /* TextPainter.h */; }; … … 6264 6265 E1F80B8D183172B5007885C3 /* JSCryptoKeyPair.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1F80B8B183172B5007885C3 /* JSCryptoKeyPair.cpp */; }; 6265 6266 E1F80B8E183172B5007885C3 /* JSCryptoKeyPair.h in Headers */ = {isa = PBXBuildFile; fileRef = E1F80B8C183172B5007885C3 /* JSCryptoKeyPair.h */; }; 6266 E1FE13641834351100892F13 /* CryptoDigestCommonCrypto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FE13621834351100892F13 /* CryptoDigestCommonCrypto.cpp */; };6267 E1FE136718343A1000892F13 /* CryptoDigest.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FE136618343A1000892F13 /* CryptoDigest.h */; };6268 6267 E1FE136A183FE1AB00892F13 /* CryptoAlgorithmRSA_OAEP.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FE1368183FE1AB00892F13 /* CryptoAlgorithmRSA_OAEP.cpp */; }; 6269 6268 E1FE136B183FE1AB00892F13 /* CryptoAlgorithmRSA_OAEP.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FE1369183FE1AB00892F13 /* CryptoAlgorithmRSA_OAEP.h */; }; … … 6890 6889 6891 6890 /* Begin PBXContainerItemProxy section */ 6891 1C09D04F1E31C32900725F18 /* PBXContainerItemProxy */ = { 6892 isa = PBXContainerItemProxy; 6893 containerPortal = 1C09D04B1E31C32800725F18 /* PAL.xcodeproj */; 6894 proxyType = 2; 6895 remoteGlobalIDString = 1C09D03D1E31C32800725F18; 6896 remoteInfo = PAL; 6897 }; 6898 1C09D0671E32079D00725F18 /* PBXContainerItemProxy */ = { 6899 isa = PBXContainerItemProxy; 6900 containerPortal = 1C09D04B1E31C32800725F18 /* PAL.xcodeproj */; 6901 proxyType = 1; 6902 remoteGlobalIDString = 1C09D03C1E31C32800725F18; 6903 remoteInfo = PAL; 6904 }; 6892 6905 417DA6D413734E0D007C57FB /* PBXContainerItemProxy */ = { 6893 6906 isa = PBXContainerItemProxy; … … 8056 8069 1C0939E81A13E12900B788E5 /* CachedSVGFont.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CachedSVGFont.cpp; sourceTree = "<group>"; }; 8057 8070 1C0939E91A13E12900B788E5 /* CachedSVGFont.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CachedSVGFont.h; sourceTree = "<group>"; }; 8071 1C09D04B1E31C32800725F18 /* PAL.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = PAL.xcodeproj; path = PAL/PAL.xcodeproj; sourceTree = "<group>"; }; 8058 8072 1C18DA56181AF6A500C4EF22 /* TextPainter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextPainter.cpp; sourceTree = "<group>"; }; 8059 8073 1C18DA57181AF6A500C4EF22 /* TextPainter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextPainter.h; sourceTree = "<group>"; }; … … 14275 14289 E1F80B8B183172B5007885C3 /* JSCryptoKeyPair.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCryptoKeyPair.cpp; sourceTree = "<group>"; }; 14276 14290 E1F80B8C183172B5007885C3 /* JSCryptoKeyPair.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCryptoKeyPair.h; sourceTree = "<group>"; }; 14277 E1FE13621834351100892F13 /* CryptoDigestCommonCrypto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoDigestCommonCrypto.cpp; sourceTree = "<group>"; };14278 E1FE136618343A1000892F13 /* CryptoDigest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoDigest.h; sourceTree = "<group>"; };14279 14291 E1FE1368183FE1AB00892F13 /* CryptoAlgorithmRSA_OAEP.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmRSA_OAEP.cpp; sourceTree = "<group>"; }; 14280 14292 E1FE1369183FE1AB00892F13 /* CryptoAlgorithmRSA_OAEP.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmRSA_OAEP.h; sourceTree = "<group>"; }; … … 14990 15002 buildActionMask = 2147483647; 14991 15003 files = ( 15004 1C09D0591E31C6A900725F18 /* libPAL.a in Frameworks */, 14992 15005 FD2DBF1212B048A300ED98C6 /* Accelerate.framework in Frameworks */, 14993 15006 FD2DBF1312B048A300ED98C6 /* AudioToolbox.framework in Frameworks */, … … 15405 15418 isa = PBXGroup; 15406 15419 children = ( 15420 1C09D04B1E31C32800725F18 /* PAL.xcodeproj */, 15407 15421 65C97AF208EA908800ACD273 /* config.h */, 15408 15422 EDEC98020AED7E170059137F /* WebCorePrefix.h */, … … 16084 16098 ); 16085 16099 path = mac; 16100 sourceTree = "<group>"; 16101 }; 16102 1C09D04C1E31C32800725F18 /* Products */ = { 16103 isa = PBXGroup; 16104 children = ( 16105 1C09D0501E31C32900725F18 /* libPAL.a */, 16106 ); 16107 name = Products; 16086 16108 sourceTree = "<group>"; 16087 16109 }; … … 22500 22522 1AE42F670AA4B8CB00C8612D /* cf */, 22501 22523 A5C974CE11485FDA0066F2AB /* cocoa */, 22502 CE50D8CE1C8932ED0072EA5A /* crypto */,22503 22524 515BE1871D54F5DB00DD7C68 /* gamepad */, 22504 22525 B2A015910AF6CD53006BCE0E /* graphics */, … … 22942 22963 ); 22943 22964 path = ios; 22944 sourceTree = "<group>";22945 };22946 CE50D8CE1C8932ED0072EA5A /* crypto */ = {22947 isa = PBXGroup;22948 children = (22949 CE50D8CF1C8932FB0072EA5A /* commoncrypto */,22950 E1FE136618343A1000892F13 /* CryptoDigest.h */,22951 );22952 path = crypto;22953 sourceTree = "<group>";22954 };22955 CE50D8CF1C8932FB0072EA5A /* commoncrypto */ = {22956 isa = PBXGroup;22957 children = (22958 E1FE13621834351100892F13 /* CryptoDigestCommonCrypto.cpp */,22959 );22960 path = commoncrypto;22961 22965 sourceTree = "<group>"; 22962 22966 }; … … 25254 25258 E19AC3F31824DC7900349426 /* CryptoAlgorithmSHA384.h in Headers */, 25255 25259 E19AC3F51824DC7900349426 /* CryptoAlgorithmSHA512.h in Headers */, 25256 E1FE136718343A1000892F13 /* CryptoDigest.h in Headers */,25257 25260 E157A8E518173A3A009F821D /* CryptoKey.h in Headers */, 25258 25261 E125F84E1824289D00D84CD9 /* CryptoKeyAES.h in Headers */, … … 28509 28512 ); 28510 28513 dependencies = ( 28514 1C09D0681E32079D00725F18 /* PBXTargetDependency */, 28511 28515 DD041FF109D9E3250010AF2A /* PBXTargetDependency */, 28512 28516 ); … … 28561 28565 productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; 28562 28566 projectDirPath = ""; 28567 projectReferences = ( 28568 { 28569 ProductGroup = 1C09D04C1E31C32800725F18 /* Products */; 28570 ProjectRef = 1C09D04B1E31C32800725F18 /* PAL.xcodeproj */; 28571 }, 28572 ); 28563 28573 projectRoot = ""; 28564 28574 targets = ( … … 28571 28581 }; 28572 28582 /* End PBXProject section */ 28583 28584 /* Begin PBXReferenceProxy section */ 28585 1C09D0501E31C32900725F18 /* libPAL.a */ = { 28586 isa = PBXReferenceProxy; 28587 fileType = archive.ar; 28588 path = libPAL.a; 28589 remoteRef = 1C09D04F1E31C32900725F18 /* PBXContainerItemProxy */; 28590 sourceTree = BUILT_PRODUCTS_DIR; 28591 }; 28592 /* End PBXReferenceProxy section */ 28573 28593 28574 28594 /* Begin PBXResourcesBuildPhase section */ … … 29098 29118 E19AC3F21824DC7900349426 /* CryptoAlgorithmSHA384.cpp in Sources */, 29099 29119 E19AC3F41824DC7900349426 /* CryptoAlgorithmSHA512.cpp in Sources */, 29100 E1FE13641834351100892F13 /* CryptoDigestCommonCrypto.cpp in Sources */,29101 29120 E157A8E418173A3A009F821D /* CryptoKey.cpp in Sources */, 29102 29121 E125F84D1824289D00D84CD9 /* CryptoKeyAES.cpp in Sources */, … … 31930 31949 31931 31950 /* Begin PBXTargetDependency section */ 31951 1C09D0681E32079D00725F18 /* PBXTargetDependency */ = { 31952 isa = PBXTargetDependency; 31953 name = PAL; 31954 targetProxy = 1C09D0671E32079D00725F18 /* PBXContainerItemProxy */; 31955 }; 31932 31956 417DA6D513734E0D007C57FB /* PBXTargetDependency */ = { 31933 31957 isa = PBXTargetDependency; -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA1.cpp
r209164 r211027 29 29 #if ENABLE(SUBTLE_CRYPTO) 30 30 31 #include "CryptoDigest.h"32 31 #include "ExceptionCode.h" 33 32 #include "ScriptExecutionContext.h" 33 #include <pal/crypto/CryptoDigest.h> 34 34 35 35 namespace WebCore { … … 47 47 void CryptoAlgorithmSHA1::digest(Vector<uint8_t>&& message, VectorCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue) 48 48 { 49 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_1);49 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_1); 50 50 if (!digest) { 51 51 exceptionCallback(OperationError); … … 66 66 ExceptionOr<void> CryptoAlgorithmSHA1::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback) 67 67 { 68 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_1);68 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_1); 69 69 if (!digest) { 70 70 failureCallback(); -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA224.cpp
r209164 r211027 29 29 #if ENABLE(SUBTLE_CRYPTO) 30 30 31 #include "CryptoDigest.h"32 31 #include "ExceptionCode.h" 33 32 #include "ScriptExecutionContext.h" 33 #include <pal/crypto/CryptoDigest.h> 34 34 35 35 namespace WebCore { … … 47 47 void CryptoAlgorithmSHA224::digest(Vector<uint8_t>&& message, VectorCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue) 48 48 { 49 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_224);49 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_224); 50 50 if (!digest) { 51 51 exceptionCallback(OperationError); … … 66 66 ExceptionOr<void> CryptoAlgorithmSHA224::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback) 67 67 { 68 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_224);68 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_224); 69 69 if (!digest) { 70 70 failureCallback(); -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA256.cpp
r209164 r211027 29 29 #if ENABLE(SUBTLE_CRYPTO) 30 30 31 #include "CryptoDigest.h"32 31 #include "ExceptionCode.h" 33 32 #include "ScriptExecutionContext.h" 33 #include <pal/crypto/CryptoDigest.h> 34 34 35 35 namespace WebCore { … … 47 47 void CryptoAlgorithmSHA256::digest(Vector<uint8_t>&& message, VectorCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue) 48 48 { 49 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_256);49 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_256); 50 50 if (!digest) { 51 51 exceptionCallback(OperationError); … … 66 66 ExceptionOr<void> CryptoAlgorithmSHA256::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback) 67 67 { 68 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_256);68 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_256); 69 69 if (!digest) { 70 70 failureCallback(); -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA384.cpp
r209164 r211027 29 29 #if ENABLE(SUBTLE_CRYPTO) 30 30 31 #include "CryptoDigest.h"32 31 #include "ExceptionCode.h" 33 32 #include "ScriptExecutionContext.h" 33 #include <pal/crypto/CryptoDigest.h> 34 34 35 35 namespace WebCore { … … 47 47 void CryptoAlgorithmSHA384::digest(Vector<uint8_t>&& message, VectorCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue) 48 48 { 49 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_384);49 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_384); 50 50 if (!digest) { 51 51 exceptionCallback(OperationError); … … 66 66 ExceptionOr<void> CryptoAlgorithmSHA384::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback) 67 67 { 68 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_384);68 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_384); 69 69 if (!digest) { 70 70 failureCallback(); -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA512.cpp
r209164 r211027 29 29 #if ENABLE(SUBTLE_CRYPTO) 30 30 31 #include "CryptoDigest.h"32 31 #include "ExceptionCode.h" 33 32 #include "ScriptExecutionContext.h" 33 #include <pal/crypto/CryptoDigest.h> 34 34 35 35 namespace WebCore { … … 47 47 void CryptoAlgorithmSHA512::digest(Vector<uint8_t>&& message, VectorCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue) 48 48 { 49 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_512);49 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_512); 50 50 if (!digest) { 51 51 exceptionCallback(OperationError); … … 66 66 ExceptionOr<void> CryptoAlgorithmSHA512::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback) 67 67 { 68 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_512);68 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_512); 69 69 if (!digest) { 70 70 failureCallback(); -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp
r209150 r211027 31 31 #include "CommonCryptoUtilities.h" 32 32 #include "CryptoAlgorithmRsaSsaParamsDeprecated.h" 33 #include "CryptoDigest.h"34 33 #include "CryptoKeyRSA.h" 35 34 #include "ExceptionCode.h" 36 35 #include "ScriptExecutionContext.h" 36 #include <pal/crypto/CryptoDigest.h> 37 37 38 38 namespace WebCore { 39 39 40 inline std::optional< CryptoDigest::Algorithm> cryptoDigestAlgorithm(CryptoAlgorithmIdentifier hashFunction)40 inline std::optional<PAL::CryptoDigest::Algorithm> cryptoDigestAlgorithm(CryptoAlgorithmIdentifier hashFunction) 41 41 { 42 42 switch (hashFunction) { 43 43 case CryptoAlgorithmIdentifier::SHA_1: 44 return CryptoDigest::Algorithm::SHA_1;44 return PAL::CryptoDigest::Algorithm::SHA_1; 45 45 case CryptoAlgorithmIdentifier::SHA_224: 46 return CryptoDigest::Algorithm::SHA_224;46 return PAL::CryptoDigest::Algorithm::SHA_224; 47 47 case CryptoAlgorithmIdentifier::SHA_256: 48 return CryptoDigest::Algorithm::SHA_256;48 return PAL::CryptoDigest::Algorithm::SHA_256; 49 49 case CryptoAlgorithmIdentifier::SHA_384: 50 return CryptoDigest::Algorithm::SHA_384;50 return PAL::CryptoDigest::Algorithm::SHA_384; 51 51 case CryptoAlgorithmIdentifier::SHA_512: 52 return CryptoDigest::Algorithm::SHA_512;52 return PAL::CryptoDigest::Algorithm::SHA_512; 53 53 default: 54 54 return std::nullopt; … … 67 67 if (!cryptoDigestAlgorithm) 68 68 return Exception { OperationError }; 69 auto digest = CryptoDigest::create(*cryptoDigestAlgorithm);69 auto digest = PAL::CryptoDigest::create(*cryptoDigestAlgorithm); 70 70 if (!digest) 71 71 return Exception { OperationError }; … … 94 94 if (!cryptoDigestAlgorithm) 95 95 return Exception { OperationError }; 96 auto digest = CryptoDigest::create(*cryptoDigestAlgorithm);96 auto digest = PAL::CryptoDigest::create(*cryptoDigestAlgorithm); 97 97 if (!digest) 98 98 return Exception { OperationError }; -
trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp
r210828 r211027 46 46 #include "Cookie.h" 47 47 #include "CookieJar.h" 48 #include "CryptoDigest.h"49 48 #include "DOMEditor.h" 50 49 #include "DOMPatchSupport.h" … … 97 96 #include <inspector/InjectedScript.h> 98 97 #include <inspector/InjectedScriptManager.h> 98 #include <pal/crypto/CryptoDigest.h> 99 99 #include <runtime/JSCInlines.h> 100 100 #include <wtf/text/Base64.h> … … 1317 1317 const TextEncoding& encodingToUse = documentEncoding.isValid() ? documentEncoding : UTF8Encoding(); 1318 1318 CString content = encodingToUse.encode(TextNodeTraversal::contentsAsString(element), EntitiesForUnencodables); 1319 auto cryptoDigest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_256);1319 auto cryptoDigest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_256); 1320 1320 cryptoDigest->addBytes(content.data(), content.length()); 1321 1321 Vector<uint8_t> digest = cryptoDigest->computeHash(); -
trunk/Source/WebCore/page/csp/ContentSecurityPolicy.cpp
r210992 r211027 34 34 #include "ContentSecurityPolicySource.h" 35 35 #include "ContentSecurityPolicySourceList.h" 36 #include "CryptoDigest.h"37 36 #include "DOMStringList.h" 38 37 #include "Document.h" … … 58 57 #include <inspector/ScriptCallStack.h> 59 58 #include <inspector/ScriptCallStackFactory.h> 59 #include <pal/crypto/CryptoDigest.h> 60 60 #include <wtf/SetForScope.h> 61 61 #include <wtf/text/StringBuilder.h> … … 302 302 } 303 303 304 static CryptoDigest::Algorithm toCryptoDigestAlgorithm(ContentSecurityPolicyHashAlgorithm algorithm)304 static PAL::CryptoDigest::Algorithm toCryptoDigestAlgorithm(ContentSecurityPolicyHashAlgorithm algorithm) 305 305 { 306 306 switch (algorithm) { 307 307 case ContentSecurityPolicyHashAlgorithm::SHA_256: 308 return CryptoDigest::Algorithm::SHA_256;308 return PAL::CryptoDigest::Algorithm::SHA_256; 309 309 case ContentSecurityPolicyHashAlgorithm::SHA_384: 310 return CryptoDigest::Algorithm::SHA_384;310 return PAL::CryptoDigest::Algorithm::SHA_384; 311 311 case ContentSecurityPolicyHashAlgorithm::SHA_512: 312 return CryptoDigest::Algorithm::SHA_512;312 return PAL::CryptoDigest::Algorithm::SHA_512; 313 313 } 314 314 ASSERT_NOT_REACHED(); 315 return CryptoDigest::Algorithm::SHA_512;315 return PAL::CryptoDigest::Algorithm::SHA_512; 316 316 } 317 317 … … 334 334 bool foundHashInReportOnlyPolicies = false; 335 335 for (auto algorithm : algorithms) { 336 auto cryptoDigest = CryptoDigest::create(toCryptoDigestAlgorithm(algorithm));336 auto cryptoDigest = PAL::CryptoDigest::create(toCryptoDigestAlgorithm(algorithm)); 337 337 cryptoDigest->addBytes(contentCString.data(), contentCString.length()); 338 338 ContentSecurityPolicyHash hash = { algorithm, cryptoDigest->computeHash() }; -
trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.cpp
r211014 r211027 31 31 32 32 #include "AuthenticationChallenge.h" 33 #include "CryptoDigest.h"34 33 #include "FileSystem.h" 35 34 #include "GUniquePtrSoup.h" … … 39 38 #include <glib/gstdio.h> 40 39 #include <libsoup/soup.h> 40 #include <pal/crypto/CryptoDigest.h> 41 41 #include <wtf/HashSet.h> 42 42 #include <wtf/NeverDestroyed.h> … … 79 79 return String(); 80 80 81 auto digest = CryptoDigest::create(CryptoDigest::Algorithm::SHA_256);81 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_256); 82 82 digest->addBytes(certificateData->data, certificateData->len); 83 83 -
trunk/Source/WebKit/CMakeLists.txt
r210359 r211027 33 33 PRIVATE JavaScriptCore${DEBUG_SUFFIX} 34 34 PRIVATE WebCore${DEBUG_SUFFIX} 35 PRIVATE PAL${DEBUG_SUFFIX} 35 36 ) 36 37 -
trunk/Source/WebKit/mac/Configurations/FeatureDefines.xcconfig
r210992 r211027 1 // Copyright (C) 2009, 2010, 2014, 2015, 2016 Apple Inc. All rights reserved.1 // Copyright (C) 2009, 2010, 2014, 2015, 2016, 2017 Apple Inc. All rights reserved. 2 2 // Copyright (C) 2009 Google Inc. All rights reserved. 3 3 // -
trunk/Source/WebKit2/Configurations/FeatureDefines.xcconfig
r210992 r211027 1 // Copyright (C) 2009, 2010, 2014, 2015, 2016 Apple Inc. All rights reserved.1 // Copyright (C) 2009, 2010, 2014, 2015, 2016, 2017 Apple Inc. All rights reserved. 2 2 // Copyright (C) 2009 Google Inc. All rights reserved. 3 3 // -
trunk/Source/cmake/OptionsWin.cmake
r210992 r211027 183 183 set(JavaScriptCore_LIBRARY_TYPE SHARED) 184 184 set(WTF_LIBRARY_TYPE SHARED) 185 set(PAL_LIBRARY_TYPE STATIC) 185 186 186 187 find_package(ICU REQUIRED) -
trunk/Source/cmake/WebKitFS.cmake
r205418 r211027 10 10 if (NOT WEBCORE_DIR) 11 11 set(WEBCORE_DIR "${CMAKE_SOURCE_DIR}/Source/WebCore") 12 endif () 13 if (NOT PAL_DIR) 14 set(PAL_DIR "${CMAKE_SOURCE_DIR}/Source/WebCore/PAL") 12 15 endif () 13 16 if (NOT WEBKIT_DIR) -
trunk/Tools/Scripts/webkitpy/style/checkers/featuredefines.py
r199217 r211027 44 44 "Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig", 45 45 "Source/WebCore/Configurations/FeatureDefines.xcconfig", 46 "Source/WebCore/PAL/Configurations/FeatureDefines.xcconfig", 46 47 "Source/WebKit/mac/Configurations/FeatureDefines.xcconfig", 47 48 "Source/WebKit2/Configurations/FeatureDefines.xcconfig", -
trunk/Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig
r210992 r211027 1 // Copyright (C) 2009, 2010, 2014, 2015, 2016 Apple Inc. All rights reserved.1 // Copyright (C) 2009, 2010, 2014, 2015, 2016, 2017 Apple Inc. All rights reserved. 2 2 // Copyright (C) 2009 Google Inc. All rights reserved. 3 3 //
Note: See TracChangeset
for help on using the changeset viewer.