本文整理汇总了C++中coreipc::ArgumentEncoder类的典型用法代码示例。如果您正苦于以下问题:C++ ArgumentEncoder类的具体用法?C++ ArgumentEncoder怎么用?C++ ArgumentEncoder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ArgumentEncoder类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: didReceiveSyncMessage
void WebPageProxy::didReceiveSyncMessage(CoreIPC::Connection*, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder& arguments, CoreIPC::ArgumentEncoder& reply)
{
switch (messageID.get<WebPageProxyMessage::Kind>()) {
case WebPageProxyMessage::CreateNewPage: {
WebPageProxy* newPage = createNewPage();
if (newPage) {
// FIXME: Pass the real size.
reply.encode(CoreIPC::In(newPage->pageID(), IntSize(100, 100),
newPage->pageNamespace()->context()->preferences()->store(),
*(newPage->m_drawingArea.get())));
} else {
// FIXME: We should encode a drawing area type here instead.
reply.encode(CoreIPC::In(static_cast<uint64_t>(0), IntSize(), WebPreferencesStore(), 0));
}
break;
}
case WebPageProxyMessage::RunJavaScriptAlert: {
uint64_t frameID;
String alertText;
if (!arguments.decode(CoreIPC::Out(frameID, alertText)))
return;
runJavaScriptAlert(webFrame(frameID), alertText);
break;
}
default:
ASSERT_NOT_REACHED();
break;
}
}
开发者ID:UIKit0,项目名称:WebkitAIR,代码行数:29,代码来源:WebPageProxy.cpp
示例2: encode
void WebPageCreationParameters::encode(CoreIPC::ArgumentEncoder& encoder) const
{
encoder << viewSize;
encoder << isActive;
encoder << isFocused;
encoder << isVisible;
encoder << isInWindow;
encoder << store;
encoder.encodeEnum(drawingAreaType);
encoder << pageGroupData;
encoder << drawsBackground;
encoder << drawsTransparentBackground;
encoder << underlayColor;
encoder << areMemoryCacheClientCallsEnabled;
encoder << useFixedLayout;
encoder << fixedLayoutSize;
encoder.encodeEnum(paginationMode);
encoder << paginationBehavesLikeColumns;
encoder << pageLength;
encoder << gapBetweenPages;
encoder << userAgent;
encoder << sessionState;
encoder << highestUsedBackForwardItemID;
encoder << canRunBeforeUnloadConfirmPanel;
encoder << canRunModal;
encoder << deviceScaleFactor;
encoder << mediaVolume;
encoder << mayStartMediaWhenInWindow;
#if PLATFORM(MAC)
encoder.encodeEnum(layerHostingMode);
encoder << colorSpace;
#endif
}
开发者ID:jbat100,项目名称:webkit,代码行数:35,代码来源:WebPageCreationParameters.cpp
示例3: encode
void WebContextMenuItemData::encode(CoreIPC::ArgumentEncoder& encoder) const
{
encoder.encodeEnum(m_type);
encoder.encodeEnum(m_action);
encoder << m_title;
encoder << m_checked;
encoder << m_enabled;
encoder << m_submenu;
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:9,代码来源:WebContextMenuItemData.cpp
示例4: encode
void NetworkResourceLoadParameters::encode(CoreIPC::ArgumentEncoder& encoder) const
{
encoder << m_identifier;
encoder << m_webPageID;
encoder << m_webFrameID;
encoder << m_request;
encoder << static_cast<bool>(m_request.httpBody());
if (m_request.httpBody()) {
EncoderAdapter httpBodyEncoderAdapter;
m_request.httpBody()->encode(httpBodyEncoderAdapter);
encoder << httpBodyEncoderAdapter.dataReference();
const Vector<FormDataElement>& elements = m_request.httpBody()->elements();
size_t fileCount = 0;
for (size_t i = 0, count = elements.size(); i < count; ++i) {
if (elements[i].m_type == FormDataElement::encodedFile)
++fileCount;
}
SandboxExtension::HandleArray requestBodySandboxExtensions;
requestBodySandboxExtensions.allocate(fileCount);
size_t extensionIndex = 0;
for (size_t i = 0, count = elements.size(); i < count; ++i) {
const FormDataElement& element = elements[i];
if (element.m_type == FormDataElement::encodedFile) {
const String& path = element.m_shouldGenerateFile ? element.m_generatedFilename : element.m_filename;
SandboxExtension::createHandle(path, SandboxExtension::ReadOnly, requestBodySandboxExtensions[extensionIndex++]);
}
}
encoder << requestBodySandboxExtensions;
}
if (m_request.url().isLocalFile()) {
SandboxExtension::Handle requestSandboxExtension;
SandboxExtension::createHandle(m_request.url().fileSystemPath(), SandboxExtension::ReadOnly, requestSandboxExtension);
encoder << requestSandboxExtension;
}
encoder.encodeEnum(m_priority);
encoder.encodeEnum(m_contentSniffingPolicy);
encoder.encodeEnum(m_allowStoredCredentials);
encoder << m_inPrivateBrowsingMode;
encoder << m_shouldClearReferrerOnHTTPSToHTTPRedirect;
}
开发者ID:harlanlewis,项目名称:webkit,代码行数:45,代码来源:NetworkResourceLoadParameters.cpp
示例5: encode
void SecItemRequestData::encode(CoreIPC::ArgumentEncoder& encoder) const
{
encoder.encodeEnum(m_type);
CoreIPC::encode(encoder, m_queryDictionary.get());
encoder << static_cast<bool>(m_attributesToMatch);
if (m_attributesToMatch)
CoreIPC::encode(encoder, m_attributesToMatch.get());
}
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:10,代码来源:SecItemRequestData.cpp
示例6: PLATFORM
void Plugin::Parameters::encode(CoreIPC::ArgumentEncoder& encoder) const
{
encoder << url.string();
encoder << names;
encoder << values;
encoder << mimeType;
encoder << isFullFramePlugin;
encoder << shouldUseManualLoader;
#if PLATFORM(MAC)
encoder.encodeEnum(layerHostingMode);
#endif
}
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:12,代码来源:Plugin.cpp
示例7: encode
void PrintInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
{
encoder << pageSetupScaleFactor;
encoder << availablePaperWidth;
encoder << availablePaperHeight;
#if PLATFORM(GTK)
CoreIPC::encode(encoder, printSettings.get());
CoreIPC::encode(encoder, pageSetup.get());
encoder.encodeEnum(printMode);
#endif
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:12,代码来源:PrintInfo.cpp
示例8: encode
void NetworkProcessCreationParameters::encode(CoreIPC::ArgumentEncoder& encoder) const
{
encoder << privateBrowsingEnabled;
encoder.encodeEnum(cacheModel);
encoder << diskCacheDirectory;
encoder << diskCacheDirectoryExtensionHandle;
encoder << shouldUseTestingNetworkSession;
#if PLATFORM(MAC)
encoder << parentProcessName;
encoder << uiProcessBundleIdentifier;
encoder << nsURLCacheMemoryCapacity;
encoder << nsURLCacheDiskCapacity;
#if ENABLE(CUSTOM_PROTOCOLS)
encoder << urlSchemesRegisteredForCustomProtocols;
#endif
encoder << httpProxy;
encoder << httpsProxy;
#endif
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:19,代码来源:NetworkProcessCreationParameters.cpp
示例9: encode
void WebProcessCreationParameters::encode(CoreIPC::ArgumentEncoder& encoder) const
{
encoder << injectedBundlePath;
encoder << injectedBundlePathExtensionHandle;
encoder << applicationCacheDirectory;
encoder << applicationCacheDirectoryExtensionHandle;
encoder << databaseDirectory;
encoder << databaseDirectoryExtensionHandle;
encoder << localStorageDirectory;
encoder << localStorageDirectoryExtensionHandle;
encoder << diskCacheDirectory;
encoder << diskCacheDirectoryExtensionHandle;
encoder << cookieStorageDirectory;
encoder << cookieStorageDirectoryExtensionHandle;
encoder << shouldUseTestingNetworkSession;
encoder << urlSchemesRegistererdAsEmptyDocument;
encoder << urlSchemesRegisteredAsSecure;
encoder << urlSchemesForWhichDomainRelaxationIsForbidden;
encoder << urlSchemesRegisteredAsLocal;
encoder << urlSchemesRegisteredAsNoAccess;
encoder << urlSchemesRegisteredAsDisplayIsolated;
encoder << urlSchemesRegisteredAsCORSEnabled;
#if ENABLE(CUSTOM_PROTOCOLS)
encoder << urlSchemesRegisteredForCustomProtocols;
#endif
#if USE(SOUP)
encoder << urlSchemesRegistered;
encoder << cookiePersistentStoragePath;
encoder << cookiePersistentStorageType;
encoder.encodeEnum(cookieAcceptPolicy);
encoder << ignoreTLSErrors;
#endif
encoder.encodeEnum(cacheModel);
encoder << shouldTrackVisitedLinks;
encoder << shouldAlwaysUseComplexTextCodePath;
encoder << shouldUseFontSmoothing;
encoder << iconDatabaseEnabled;
encoder << terminationTimeout;
encoder << languages;
encoder << textCheckerState;
encoder << fullKeyboardAccessEnabled;
encoder << defaultRequestTimeoutInterval;
#if PLATFORM(MAC) || USE(CFNETWORK)
encoder << uiProcessBundleIdentifier;
#endif
#if PLATFORM(MAC)
encoder << presenterApplicationPid;
encoder << accessibilityEnhancedUserInterfaceEnabled;
encoder << nsURLCacheMemoryCapacity;
encoder << nsURLCacheDiskCapacity;
encoder << acceleratedCompositingPort;
encoder << uiProcessBundleResourcePath;
encoder << uiProcessBundleResourcePathExtensionHandle;
encoder << shouldForceScreenFontSubstitution;
encoder << shouldEnableKerningAndLigaturesByDefault;
#endif
#if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
encoder << notificationPermissions;
#endif
#if ENABLE(NETWORK_PROCESS)
encoder << usesNetworkProcess;
#endif
encoder << plugInAutoStartOriginHashes;
encoder << plugInAutoStartOrigins;
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:68,代码来源:WebProcessCreationParameters.cpp
注:本文中的coreipc::ArgumentEncoder类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论