Changeset 286564 in webkit
- Timestamp:
- Dec 6, 2021, 1:06:11 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 6 edited
- 2 copied
-
ChangeLog (modified) (1 diff)
-
Configurations/webpushd.xcconfig (modified) (1 diff)
-
Shared/API/Cocoa/WKMain.h (modified) (1 diff)
-
Shared/API/Cocoa/WKMain.mm (modified) (2 diffs)
-
WebKit.xcodeproj/project.pbxproj (modified) (23 diffs)
-
webpushd/WebPushDaemonMain.h (copied) (copied from trunk/Source/WebKit/Shared/API/Cocoa/WKMain.mm ) (2 diffs)
-
webpushd/WebPushDaemonMain.mm (modified) (4 diffs)
-
webpushd/webpushd.cpp (copied) (copied from trunk/Source/WebKit/Shared/API/Cocoa/WKMain.mm ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r286563 r286564 1 2021-12-06 Brady Eidson <beidson@apple.com> 2 3 Put webpushd code in WebKit.framework. 4 https://bugs.webkit.org/show_bug.cgi?id=233886 5 6 Reviewed by Alex Christensen. 7 8 This fixes some build/mastering/linking issues. 9 10 * Configurations/webpushd.xcconfig: 11 * Shared/API/Cocoa/WKMain.h: 12 * Shared/API/Cocoa/WKMain.mm: 13 (WKWebPushDaemonMain): 14 * WebKit.xcodeproj/project.pbxproj: 15 * webpushd/WebPushDaemonMain.h: Copied from Source/WebKit/Shared/API/Cocoa/WKMain.mm. 16 * webpushd/WebPushDaemonMain.mm: 17 (WebKit::WebPushDaemonMain): 18 (main): Deleted. 19 * webpushd/webpushd.cpp: Copied from Source/WebKit/Shared/API/Cocoa/WKMain.mm. 20 (main): 21 1 22 2021-12-06 Brent Fulgham <bfulgham@apple.com> 2 23 -
trunk/Source/WebKit/Configurations/webpushd.xcconfig
r284250 r286564 26 26 PRODUCT_NAME = webpushd; 27 27 28 OTHER_LDFLAGS = - l WTF -framework Foundation -framework CoreFoundation;28 OTHER_LDFLAGS = -framework WebKit; 29 29 LIBRARY_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR); 30 30 -
trunk/Source/WebKit/Shared/API/Cocoa/WKMain.h
r284383 r286564 35 35 WK_EXPORT int WKXPCServiceMain(int argc, const char** argv) WK_API_AVAILABLE(macos(10.15), ios(13.0)); 36 36 WK_EXPORT int WKAdAttributionDaemonMain(int argc, const char** argv) WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 37 WK_EXPORT int WKWebPushDaemonMain(int argc, const char** argv) WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 37 38 38 39 #ifdef __cplusplus -
trunk/Source/WebKit/Shared/API/Cocoa/WKMain.mm
r284383 r286564 28 28 29 29 #import "PCMDaemonEntryPoint.h" 30 #import "WebPushDaemonMain.h" 30 31 #import "XPCServiceEntryPoint.h" 31 32 … … 39 40 return WebKit::PCMDaemonMain(argc, argv); 40 41 } 42 43 int WKWebPushDaemonMain(int argc, const char** argv) 44 { 45 return WebKit::WebPushDaemonMain(argc, argv); 46 } -
trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj
r286538 r286564 968 968 512CD6982721EFC800F7F8EC /* WebPushDaemonConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 512CD6972721EFC300F7F8EC /* WebPushDaemonConnection.h */; }; 969 969 512CD69A2721F0A900F7F8EC /* WebPushDaemonConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 512CD6992721F04900F7F8EC /* WebPushDaemonConstants.h */; }; 970 512CD69F2723393A00F7F8EC /* WebPushDaemon.h in Headers */ = {isa = PBXBuildFile; fileRef = 512CD69D2723393A00F7F8EC /* WebPushDaemon.h */; };971 512CD6A02723393A00F7F8EC /* WebPushDaemon.mm in Sources */ = {isa = PBXBuildFile; fileRef = 512CD69E2723393A00F7F8EC /* WebPushDaemon.mm */; };972 970 512E34E5130B4D0500ABD19A /* WKApplicationCacheManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 517A33B4130B308C00F80CB5 /* WKApplicationCacheManager.h */; settings = {ATTRIBUTES = (Private, ); }; }; 973 971 512ECC3527196ADB00089B66 /* PrivateClickMeasurementConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CB930FE26E802160032B1C0 /* PrivateClickMeasurementConnection.h */; }; … … 1008 1006 515BE1B31D5902DD00DD7C68 /* GamepadData.h in Headers */ = {isa = PBXBuildFile; fileRef = 515BE1B01D59006900DD7C68 /* GamepadData.h */; }; 1009 1007 515BE1B51D5917FF00DD7C68 /* UIGamepad.h in Headers */ = {isa = PBXBuildFile; fileRef = 515BE1AD1D555C5100DD7C68 /* UIGamepad.h */; }; 1010 5160E955274B887200567388 /* AppBundleRequest.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5160E953274B887100567388 /* AppBundleRequest.mm */; };1011 5160E956274B887200567388 /* AppBundleRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 5160E954274B887100567388 /* AppBundleRequest.h */; };1012 5160E959274C0D8900567388 /* PushAppBundle.h in Headers */ = {isa = PBXBuildFile; fileRef = 5160E957274C0D8800567388 /* PushAppBundle.h */; };1013 5160E95A274C0D8900567388 /* PushAppBundle.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5160E958274C0D8800567388 /* PushAppBundle.mm */; };1014 5160E95E274C2A0300567388 /* MockAppBundleRegistry.h in Headers */ = {isa = PBXBuildFile; fileRef = 5160E95C274C2A0300567388 /* MockAppBundleRegistry.h */; };1015 5160E960274C2A4000567388 /* MockAppBundleRegistry.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5160E95F274C2A3F00567388 /* MockAppBundleRegistry.mm */; };1016 1008 5163199416289A6000E22F00 /* NetworkProcessMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51ACC9341628064800342550 /* NetworkProcessMessageReceiver.cpp */; }; 1017 1009 5163199516289A6300E22F00 /* NetworkProcessMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 51ACC9351628064800342550 /* NetworkProcessMessages.h */; }; … … 1027 1019 517B5F65275A8D7F002DC22D /* WebPushToolMain.mm in Sources */ = {isa = PBXBuildFile; fileRef = 517B5F64275A8D7E002DC22D /* WebPushToolMain.mm */; }; 1028 1020 517B5F68275A9A78002DC22D /* WebPushToolConnection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 517B5F67275A9A78002DC22D /* WebPushToolConnection.mm */; }; 1021 517B5F73275E9609002DC22D /* WebPushDaemonMain.h in Headers */ = {isa = PBXBuildFile; fileRef = 517B5F72275E9609002DC22D /* WebPushDaemonMain.h */; }; 1022 517B5F78275E9795002DC22D /* webpushd.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 517B5F77275E9795002DC22D /* webpushd.cpp */; }; 1023 517B5F79275E97A1002DC22D /* WebPushDaemonMain.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5C157A0B2717CA1C00ED5280 /* WebPushDaemonMain.mm */; }; 1024 517B5F7A275E97A4002DC22D /* WebPushDaemon.mm in Sources */ = {isa = PBXBuildFile; fileRef = 512CD69E2723393A00F7F8EC /* WebPushDaemon.mm */; }; 1025 517B5F7B275E97A9002DC22D /* PushClientConnection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51F7BB7A2744C50700C45A72 /* PushClientConnection.mm */; }; 1026 517B5F7C275E97B6002DC22D /* MockAppBundleForTesting.h in Headers */ = {isa = PBXBuildFile; fileRef = 51F7BB75274498BB00C45A72 /* MockAppBundleForTesting.h */; }; 1027 517B5F7D275E97B6002DC22D /* PushClientConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 51F7BB792744C50700C45A72 /* PushClientConnection.h */; }; 1028 517B5F7E275E97B6002DC22D /* AppBundleRequest.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5160E953274B887100567388 /* AppBundleRequest.mm */; }; 1029 517B5F7F275E97B6002DC22D /* WebPushDaemon.h in Headers */ = {isa = PBXBuildFile; fileRef = 512CD69D2723393A00F7F8EC /* WebPushDaemon.h */; }; 1030 517B5F80275E97B6002DC22D /* MockAppBundleRegistry.h in Headers */ = {isa = PBXBuildFile; fileRef = 5160E95C274C2A0300567388 /* MockAppBundleRegistry.h */; }; 1031 517B5F81275E97B6002DC22D /* PushAppBundle.h in Headers */ = {isa = PBXBuildFile; fileRef = 5160E957274C0D8800567388 /* PushAppBundle.h */; }; 1032 517B5F82275E97B6002DC22D /* PushAppBundle.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5160E958274C0D8800567388 /* PushAppBundle.mm */; }; 1033 517B5F84275E97B6002DC22D /* MockAppBundleForTesting.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51F7BB74274498BA00C45A72 /* MockAppBundleForTesting.mm */; }; 1034 517B5F85275E97B6002DC22D /* AppBundleRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 5160E954274B887100567388 /* AppBundleRequest.h */; }; 1035 517B5F86275E97B6002DC22D /* MockAppBundleRegistry.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5160E95F274C2A3F00567388 /* MockAppBundleRegistry.mm */; }; 1029 1036 517CF0E3163A486C00C2950E /* NetworkProcessConnectionMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 517CF0E1163A486C00C2950E /* NetworkProcessConnectionMessageReceiver.cpp */; }; 1030 1037 517CF0E3163A486C00C2950F /* CacheStorageEngineConnectionMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 517CF0E1163A486C00C2950F /* CacheStorageEngineConnectionMessageReceiver.cpp */; }; … … 1069 1076 51F060E11654318500F3282F /* WebMDNSRegisterMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51F060DD1654317500F3282F /* WebMDNSRegisterMessageReceiver.cpp */; }; 1070 1077 51F060E11654318500F3283F /* NetworkMDNSRegisterMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51F060DD1654317500F3283F /* NetworkMDNSRegisterMessageReceiver.cpp */; }; 1071 51F7BB76274498BB00C45A72 /* MockAppBundleForTesting.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51F7BB74274498BA00C45A72 /* MockAppBundleForTesting.mm */; };1072 51F7BB77274498BB00C45A72 /* MockAppBundleForTesting.h in Headers */ = {isa = PBXBuildFile; fileRef = 51F7BB75274498BB00C45A72 /* MockAppBundleForTesting.h */; };1073 51F7BB7B2744C50700C45A72 /* PushClientConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 51F7BB792744C50700C45A72 /* PushClientConnection.h */; };1074 51F7BB7C2744C50700C45A72 /* PushClientConnection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51F7BB7A2744C50700C45A72 /* PushClientConnection.mm */; };1075 1078 51F7BB7D2745640400C45A72 /* CodeSigning.mm in Sources */ = {isa = PBXBuildFile; fileRef = CE11AD4F1CBC47F800681EE5 /* CodeSigning.mm */; }; 1076 1079 51F7BB7F274564A100C45A72 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51F7BB7E274564A100C45A72 /* Security.framework */; }; … … 1227 1230 5C1579FF2717B6D200ED5280 /* DaemonDecoder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C1579E927172A8B00ED5280 /* DaemonDecoder.cpp */; }; 1228 1231 5C157A012717B7FB00ED5280 /* ArgumentCoders.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A3D610413A7F03A00F95D4E /* ArgumentCoders.cpp */; }; 1229 5C157A0C2717CA1D00ED5280 /* WebPushDaemonMain.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5C157A0B2717CA1C00ED5280 /* WebPushDaemonMain.mm */; };1230 1232 5C19A5201FD0B29500EEA323 /* URLSchemeTaskParameters.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C19A51F1FD0B14700EEA323 /* URLSchemeTaskParameters.h */; }; 1231 1233 5C20CBA01BB1ECD800895BB1 /* NetworkSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C20CB9E1BB0DD1800895BB1 /* NetworkSession.h */; }; … … 4404 4406 517B5F6A275AA199002DC22D /* webpushtool.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = webpushtool.xcconfig; sourceTree = "<group>"; }; 4405 4407 517B5F6B275AE50B002DC22D /* webpushtool.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; name = webpushtool.entitlements; path = Resources/webpushtool.entitlements; sourceTree = "<group>"; }; 4408 517B5F72275E9609002DC22D /* WebPushDaemonMain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebPushDaemonMain.h; sourceTree = "<group>"; }; 4409 517B5F77275E9795002DC22D /* webpushd.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = webpushd.cpp; sourceTree = "<group>"; }; 4406 4410 517CF0E1163A486C00C2950E /* NetworkProcessConnectionMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = NetworkProcessConnectionMessageReceiver.cpp; path = DerivedSources/WebKit/NetworkProcessConnectionMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; 4407 4411 517CF0E1163A486C00C2950F /* CacheStorageEngineConnectionMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CacheStorageEngineConnectionMessageReceiver.cpp; path = DerivedSources/WebKit/CacheStorageEngineConnectionMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; … … 9944 9948 isa = PBXGroup; 9945 9949 children = ( 9950 517B5F77275E9795002DC22D /* webpushd.cpp */, 9946 9951 517B5F63275A8D5C002DC22D /* webpushtool */, 9947 9952 5160E954274B887100567388 /* AppBundleRequest.h */, … … 9959 9964 512CD69E2723393A00F7F8EC /* WebPushDaemon.mm */, 9960 9965 5C157A0B2717CA1C00ED5280 /* WebPushDaemonMain.mm */, 9966 517B5F72275E9609002DC22D /* WebPushDaemonMain.h */, 9961 9967 ); 9962 9968 path = webpushd; … … 12514 12520 buildActionMask = 2147483647; 12515 12521 files = ( 12516 5160E956274B887200567388 /* AppBundleRequest.h in Headers */,12517 12522 5C1579FC2717AF5000ED5280 /* DaemonUtilities.h in Headers */, 12518 51F7BB77274498BB00C45A72 /* MockAppBundleForTesting.h in Headers */,12519 5160E95E274C2A0300567388 /* MockAppBundleRegistry.h in Headers */,12520 5160E959274C0D8900567388 /* PushAppBundle.h in Headers */,12521 51F7BB7B2744C50700C45A72 /* PushClientConnection.h in Headers */,12522 512CD69F2723393A00F7F8EC /* WebPushDaemon.h in Headers */,12523 12523 517B5F2F2757382B002DC22D /* WebPushDaemonConnectionConfiguration.h in Headers */, 12524 12524 ); … … 12593 12593 994C6042253CA54400BDF060 /* _WKInspectorConfiguration.h in Headers */, 12594 12594 994C6045253CABA200BDF060 /* _WKInspectorConfigurationInternal.h in Headers */, 12595 517B5F7F275E97B6002DC22D /* WebPushDaemon.h in Headers */, 12595 12596 991F492F23A812C60054642B /* _WKInspectorDebuggableInfo.h in Headers */, 12596 12597 99036AE223A949CF0000B06A /* _WKInspectorDebuggableInfoInternal.h in Headers */, … … 12996 12997 832AE2521BE2E8CD00FAAE10 /* NetworkCacheSpeculativeLoadManager.h in Headers */, 12997 12998 E4436ECF1A0D040B00EAD204 /* NetworkCacheStorage.h in Headers */, 12999 517B5F7C275E97B6002DC22D /* MockAppBundleForTesting.h in Headers */, 12998 13000 8310428B1BD6B66F00A715E4 /* NetworkCacheSubresourcesEntry.h in Headers */, 12999 13001 513A164D1630A9BF005D7D22 /* NetworkConnectionToWebProcess.h in Headers */, … … 13130 13132 1D4D737123A9E56200717A25 /* RemoteMediaResourceManagerMessages.h in Headers */, 13131 13133 1D4D737623A9ED1800717A25 /* RemoteMediaResourceManagerMessagesReplies.h in Headers */, 13134 517B5F85275E97B6002DC22D /* AppBundleRequest.h in Headers */, 13132 13135 1DD2A68525633C6700FF7B6F /* RemoteMediaSourceProxyMessages.h in Headers */, 13133 13136 1DD2A68825633C9500FF7B6F /* RemoteMediaSourceProxyMessagesReplies.h in Headers */, … … 13222 13225 448AC24E267135A700B28921 /* SynapseSPI.h in Headers */, 13223 13226 4459984222833E8700E61373 /* SyntheticEditingCommandType.h in Headers */, 13227 517B5F7D275E97B6002DC22D /* PushClientConnection.h in Headers */, 13224 13228 3157135F2040A9B20084F9CF /* SystemPreviewController.h in Headers */, 13225 13229 079D1D9A26960CD300883577 /* SystemStatusSPI.h in Headers */, … … 13246 13250 5C19A5201FD0B29500EEA323 /* URLSchemeTaskParameters.h in Headers */, 13247 13251 1AC1336818565B5700F3EC05 /* UserData.h in Headers */, 13252 517B5F80275E97B6002DC22D /* MockAppBundleRegistry.h in Headers */, 13248 13253 CD491B081E70D05F00009066 /* UserMediaCaptureManager.h in Headers */, 13249 13254 CD491B0E1E732E4D00009066 /* UserMediaCaptureManagerMessages.h in Headers */, … … 13723 13728 9ACC07B925C8218400DC6386 /* WKMediaKeySystemPermissionCallback.h in Headers */, 13724 13729 1AB40EE61BF677E300BA81BE /* WKMenuItemIdentifiersPrivate.h in Headers */, 13730 517B5F81275E97B6002DC22D /* PushAppBundle.h in Headers */, 13725 13731 5CABDC8622C40FDE001EDE8E /* WKMessageListener.h in Headers */, 13726 13732 C11E1694212B87C500985FF6 /* WKMockDisplay.h in Headers */, … … 13788 13794 93BDEB01171DD7AF00BFEE1B /* WKPageLoadTypesPrivate.h in Headers */, 13789 13795 2D7303791A7C2B7500F8F487 /* WKPageNavigationClient.h in Headers */, 13796 517B5F73275E9609002DC22D /* WebPushDaemonMain.h in Headers */, 13790 13797 1AB8A1EE18400ACB00E9AE69 /* WKPagePolicyClient.h in Headers */, 13791 13798 373CEAD81859553F008C363D /* WKPagePolicyClientInternal.h in Headers */, … … 15087 15094 buildActionMask = 2147483647; 15088 15095 files = ( 15089 5160E955274B887200567388 /* AppBundleRequest.mm in Sources */,15090 15096 5C157A012717B7FB00ED5280 /* ArgumentCoders.cpp in Sources */, 15091 15097 51F7BB7D2745640400C45A72 /* CodeSigning.mm in Sources */, 15092 15098 5C1579FF2717B6D200ED5280 /* DaemonDecoder.cpp in Sources */, 15093 15099 5C1579FE2717B6C100ED5280 /* DaemonEncoder.cpp in Sources */, 15100 517B5F78275E9795002DC22D /* webpushd.cpp in Sources */, 15094 15101 5C1579FB2717AF5000ED5280 /* DaemonUtilities.mm in Sources */, 15095 51F7BB76274498BB00C45A72 /* MockAppBundleForTesting.mm in Sources */,15096 5160E960274C2A4000567388 /* MockAppBundleRegistry.mm in Sources */,15097 5160E95A274C0D8900567388 /* PushAppBundle.mm in Sources */,15098 51F7BB7C2744C50700C45A72 /* PushClientConnection.mm in Sources */,15099 512CD6A02723393A00F7F8EC /* WebPushDaemon.mm in Sources */,15100 5C157A0C2717CA1D00ED5280 /* WebPushDaemonMain.mm in Sources */,15101 15102 ); 15102 15103 runOnlyForDeploymentPostprocessing = 0; … … 15149 15150 512F58A212A883AD00629530 /* AuthenticationManagerMessageReceiver.cpp in Sources */, 15150 15151 57FABB132581827C0059DC95 /* AuthenticationServicesCoreSoftLink.mm in Sources */, 15152 517B5F7E275E97B6002DC22D /* AppBundleRequest.mm in Sources */, 15151 15153 9955A6F41C7986DC00EB6A93 /* AutomationBackendDispatchers.cpp in Sources */, 15152 15154 99249AD51F1F1E5600B62FBB /* AutomationFrontendDispatchers.cpp in Sources */, … … 15230 15232 CD3EEF462579C261006563BB /* RemoteMediaEngineConfigurationFactoryProxyMessageReceiver.cpp in Sources */, 15231 15233 0792314B239CBCB8009598E2 /* RemoteMediaPlayerManagerProxyMessageReceiver.cpp in Sources */, 15234 517B5F7A275E97A4002DC22D /* WebPushDaemon.mm in Sources */, 15232 15235 0701789E23BE9CFC005F0FAA /* RemoteMediaPlayerMIMETypeCache.cpp in Sources */, 15233 15236 071BC58F23CE1EAA00680D7C /* RemoteMediaPlayerProxyMessageReceiver.cpp in Sources */, … … 15270 15273 2D11B7562126A282006F8878 /* UnifiedSource3.cpp in Sources */, 15271 15274 2D11B7572126A282006F8878 /* UnifiedSource4-mm.mm in Sources */, 15275 517B5F84275E97B6002DC22D /* MockAppBundleForTesting.mm in Sources */, 15276 517B5F86275E97B6002DC22D /* MockAppBundleRegistry.mm in Sources */, 15272 15277 2D11B7582126A282006F8878 /* UnifiedSource4.cpp in Sources */, 15273 15278 2D11B7592126A282006F8878 /* UnifiedSource5-mm.mm in Sources */, … … 15352 15357 2D11B7A82126A283006F8878 /* UnifiedSource44.cpp in Sources */, 15353 15358 2D11B7A92126A283006F8878 /* UnifiedSource45-mm.mm in Sources */, 15359 517B5F82275E97B6002DC22D /* PushAppBundle.mm in Sources */, 15354 15360 2D11B7AA2126A283006F8878 /* UnifiedSource45.cpp in Sources */, 15355 15361 2D11B7AB2126A283006F8878 /* UnifiedSource46-mm.mm in Sources */, … … 15382 15388 2D11B7C62126A283006F8878 /* UnifiedSource59.cpp in Sources */, 15383 15389 2D11B7C72126A283006F8878 /* UnifiedSource60-mm.mm in Sources */, 15390 517B5F79275E97A1002DC22D /* WebPushDaemonMain.mm in Sources */, 15384 15391 2D11B7C82126A283006F8878 /* UnifiedSource60.cpp in Sources */, 15385 15392 2D54C31A212F3B330049C174 /* UnifiedSource61-mm.mm in Sources */, … … 15389 15396 2D54C308212F3B330049C174 /* UnifiedSource63-mm.mm in Sources */, 15390 15397 2D11B7CC2126A283006F8878 /* UnifiedSource63.cpp in Sources */, 15398 517B5F7B275E97A9002DC22D /* PushClientConnection.mm in Sources */, 15391 15399 2D54C30C212F3B330049C174 /* UnifiedSource64-mm.mm in Sources */, 15392 15400 2D11B7CD2126A283006F8878 /* UnifiedSource64.cpp in Sources */, -
trunk/Source/WebKit/webpushd/WebPushDaemonMain.h
r286563 r286564 1 1 /* 2 * Copyright (C) 20 19Apple Inc. All rights reserved.2 * Copyright (C) 2021 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 24 24 */ 25 25 26 #import "config.h" 27 #import "WKMain.h" 26 #pragma once 28 27 29 #import "PCMDaemonEntryPoint.h" 30 #import "XPCServiceEntryPoint.h" 28 namespace WebKit { 31 29 32 int WKXPCServiceMain(int argc, const char** argv) 33 { 34 return WebKit::XPCServiceMain(argc, argv); 35 } 30 int WebPushDaemonMain(int, const char**); 36 31 37 int WKAdAttributionDaemonMain(int argc, const char** argv) 38 { 39 return WebKit::PCMDaemonMain(argc, argv); 40 } 32 } // namespace WebKit -
trunk/Source/WebKit/webpushd/WebPushDaemonMain.mm
r286075 r286564 25 25 26 26 #import "config.h" 27 #import "WebPushDaemonMain.h" 28 27 29 #import "DaemonConnection.h" 28 30 #import "DaemonDecoder.h" … … 56 58 } // namespace WebPushD 57 59 58 int main(int argc, const char** argv) 60 using WebPushD::connectionEventHandler; 61 using WebPushD::connectionAdded; 62 using WebPushD::connectionRemoved; 63 64 namespace WebKit { 65 66 int WebPushDaemonMain(int argc, const char** argv) 59 67 { 60 68 if (argc != 3 || strcmp(argv[1], "--machServiceName")) { … … 65 73 66 74 @autoreleasepool { 67 WebKit::startListeningForMachServiceConnections(machServiceName, "com.apple.private.webkit.webpush", WebPushD::connectionAdded, WebPushD::connectionRemoved, WebPushD::connectionEventHandler);75 WebKit::startListeningForMachServiceConnections(machServiceName, "com.apple.private.webkit.webpush", connectionAdded, connectionRemoved, connectionEventHandler); 68 76 WTF::initializeMainThread(); 69 77 } … … 71 79 return 0; 72 80 } 81 82 } // namespace WebKit -
trunk/Source/WebKit/webpushd/webpushd.cpp
r286563 r286564 1 1 /* 2 * Copyright (C) 20 19Apple Inc. All rights reserved.2 * Copyright (C) 2021 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 24 24 */ 25 25 26 #i mport "config.h"27 #i mport "WKMain.h"26 #include <WebKit/WKMain.h> 27 #include <os/availability.h> 28 28 29 #import "PCMDaemonEntryPoint.h" 30 #import "XPCServiceEntryPoint.h" 31 32 int WKXPCServiceMain(int argc, const char** argv) 29 int main(int argc, const char** argv) 33 30 { 34 return WebKit::XPCServiceMain(argc, argv);31 WKWebPushDaemonMain(argc, argv); 35 32 } 36 37 int WKAdAttributionDaemonMain(int argc, const char** argv)38 {39 return WebKit::PCMDaemonMain(argc, argv);40 }
Note:
See TracChangeset
for help on using the changeset viewer.