1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
/*
* Copyright (C) 2011, 2016 Apple Inc. All Rights Reserved.
*
* 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. ``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
* 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
// WIRConstants are "Web Inspector Relay" constants shared between
// the WebInspector framework on the OS X side, webinspectord, and
// iOS WebKit on the device side.
#define WIRXPCMachPortName "com.apple.webinspector"
#define WIRXPCDebuggerServiceName "com.apple.webinspector.debugger"
#define WIRServiceAvailableNotification "com.apple.webinspectord.available"
#define WIRServiceAvailabilityCheckNotification "com.apple.webinspectord.availability_check"
#define WIRServiceEnabledNotification "com.apple.webinspectord.enabled"
#define WIRServiceDisabledNotification "com.apple.webinspectord.disabled"
#define WIRRemoteAutomationEnabledNotification "com.apple.webinspectord.remote_automation_enabled"
#define WIRRemoteAutomationDisabledNotification "com.apple.webinspectord.remote_automation_disabled"
// COMPATIBILITY(macOS 13): The key string is intentionally mismatched to support old relays.
#define WIRGlobalNotifyStateName "com.apple.webinspectord.automatic_inspection_enabled"
#define WIRGlobalNotifyStateAutomaticInspection 1ULL << 0
#define WIRGlobalNotifyStateSimulateCustomerInstall 1ULL << 63
#define WIRApplicationIdentifierKey @"WIRApplicationIdentifierKey"
#define WIRApplicationBundleIdentifierKey @"WIRApplicationBundleIdentifierKey"
#define WIRApplicationNameKey @"WIRApplicationNameKey"
#define WIRIsApplicationProxyKey @"WIRIsApplicationProxyKey"
#define WIRIsApplicationActiveKey @"WIRIsApplicationActiveKey"
#define WIRHostApplicationIdentifierKey @"WIRHostApplicationIdentifierKey"
#define WIRHostApplicationNameKey @"WIRHostApplicationNameKey"
#define WIRConnectionIdentifierKey @"WIRConnectionIdentifierKey"
// COMPATABILITY(iOS 9): The key string is intentionally mismatched to support old relays.
#define WIRTargetIdentifierKey @"WIRPageIdentifierKey"
#define WIRHasLocalDebuggerKey @"WIRHasLocalDebuggerKey"
#define WIRTitleKey @"WIRTitleKey"
#define WIRURLKey @"WIRURLKey"
#define WIROverrideNameKey @"WIROverrideNameKey"
#define WIRUserInfoKey @"WIRUserInfoKey"
#define WIRApplicationDictionaryKey @"WIRApplicationDictionaryKey"
#define WIRMessageDataKey @"WIRMessageDataKey"
#define WIRMessageDataTypeKey @"WIRMessageDataTypeKey"
#define WIRApplicationGetListingMessage @"WIRApplicationGetListingMessage"
#define WIRApplicationWakeUpDebuggablesMessage @"WIRApplicationWakeUpDebuggablesMessage"
#define WIRIndicateMessage @"WIRIndicateMessage"
#define WIRIndicateEnabledKey @"WIRIndicateEnabledKey"
#define WIRSenderKey @"WIRSenderKey"
#define WIRSocketDataKey @"WIRSocketDataKey"
#define WIRSocketDataMessage @"WIRSocketDataMessage"
#define WIRSocketSetupMessage @"WIRSocketSetupMessage"
#define WIRWebPageCloseMessage @"WIRWebPageCloseMessage"
#define WIRRawDataMessage @"WIRRawDataMessage"
#define WIRRawDataKey @"WIRRawDataKey"
#define WIRListingMessage @"WIRListingMessage"
#define WIRListingKey @"WIRListingKey"
#define WIRRemoteAutomationEnabledKey @"WIRRemoteAutomationEnabledKey"
#define WIRAutomationAvailabilityKey @"WIRAutomationAvailabilityKey"
#define WIRDestinationKey @"WIRDestinationKey"
#define WIRConnectionDiedMessage @"WIRConnectionDiedMessage"
#define WIRTypeKey @"WIRTypeKey"
#define WIRTypeAutomation @"WIRTypeAutomation"
#define WIRTypeITML @"WIRTypeITML"
#define WIRTypeJavaScript @"WIRTypeJavaScript"
#define WIRTypePage @"WIRTypePage"
#define WIRTypeServiceWorker @"WIRTypeServiceWorker"
#define WIRTypeWeb @"WIRTypeWeb" // COMPATIBILITY (iOS 13): "Web" was split into "Page" (WebCore::Page) and "WebPage" (WebKit::WebPageProxy).
#define WIRTypeWebPage @"WIRTypeWebPage"
#define WIRAutomaticallyPause @"WIRAutomaticallyPause"
#define WIRMessageDataTypeChunkSupportedKey @"WIRMessageDataTypeChunkSupportedKey"
#define WIRPingMessage @"WIRPingMessage"
#define WIRPingSuccessMessage @"WIRPingSuccessMessage"
// Allowed values for WIRMessageDataTypeKey.
#define WIRMessageDataTypeFull @"WIRMessageDataTypeFull"
#define WIRMessageDataTypeChunk @"WIRMessageDataTypeChunk"
#define WIRMessageDataTypeFinalChunk @"WIRMessageDataTypeFinalChunk"
// Allowed values for WIRAutomationAvailabilityKey.
#define WIRAutomationAvailabilityNotAvailable @"WIRAutomationAvailabilityNotAvailable"
#define WIRAutomationAvailabilityAvailable @"WIRAutomationAvailabilityAvailable"
#define WIRAutomationAvailabilityUnknown @"WIRAutomationAvailabilityUnknown"
#define WIRAutomaticInspectionEnabledKey @"WIRAutomaticInspectionEnabledKey"
#define WIRAutomaticInspectionSessionIdentifierKey @"WIRAutomaticInspectionSessionIdentifierKey"
#define WIRAutomaticInspectionConfigurationMessage @"WIRAutomaticInspectionConfigurationMessage"
#define WIRAutomaticInspectionRejectMessage @"WIRAutomaticInspectionRejectMessage"
#define WIRAutomaticInspectionCandidateMessage @"WIRAutomaticInspectionCandidateMessage"
#define WIRAutomationTargetIsPairedKey @"WIRAutomationTargetIsPairedKey"
#define WIRAutomationTargetNameKey @"WIRAutomationTargetNameKey"
#define WIRAutomationTargetVersionKey @"WIRAutomationTargetVersionKey"
#define WIRSessionIdentifierKey @"WIRSessionIdentifierKey"
#define WIRSessionCapabilitiesKey @"WIRSessionCapabilitiesKey"
#define WIRAutomationSessionRequestMessage @"WIRAutomationSessionRequestMessage"
// The value for WIRSessionCapabilitiesKey is a dictionary that holds these capability key-value pairs.
#define WIRAcceptInsecureCertificatesKey @"org.webkit.webdriver.accept-insecure-certificates"
#define WIRAllowInsecureMediaCaptureCapabilityKey @"org.webkit.webdriver.webrtc.allow-insecure-media-capture"
#define WIRSuppressICECandidateFilteringCapabilityKey @"org.webkit.webdriver.webrtc.suppress-ice-candidate-filtering"
// These definitions are shared with a Simulator webinspectord and
// OS X process communicating with it.
#define WIRSimulatorBuildKey @"WIRSimulatorBuildKey"
#define WIRSimulatorProductVersionKey @"WIRSimulatorProductVersionKey"
#define WIRSimulatorNameKey @"WIRSimulatorNameKey"
// These definitions are shared between webinspectord and WebKit.
#define WIRPermissionDenied @"WIRPermissionDenied"
#define WIRProxyApplicationParentPIDKey @"WIRProxyApplicationParentPID"
#define WIRProxyApplicationParentAuditDataKey @"WIRProxyApplicationParentAuditData"
#define WIRProxyApplicationSetupMessage @"WIRProxyApplicationSetupMessage"
#define WIRProxyApplicationSetupResponseMessage @"WIRProxyApplicationSetupResponseMessage"
#define WIRRemoteInspectorEnabledKey CFSTR("RemoteInspectorEnabled")
#define WIRRemoteInspectorDomainName CFSTR("com.apple.webinspectord")
|