encode should take an ArgumentEncoder reference
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2012 16:18:05 +0000 (16:18 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2012 16:18:05 +0000 (16:18 +0000)
https://bugs.webkit.org/show_bug.cgi?id=100183

Reviewed by Jessie Berlin.

* Platform/CoreIPC/ArgumentCoder.h:
(CoreIPC::ArgumentCoder::encode):
* Platform/CoreIPC/Arguments.h:
(CoreIPC::Arguments0::encode):
(CoreIPC::Arguments1::encode):
(CoreIPC::Arguments2::encode):
(CoreIPC::Arguments3::encode):
(CoreIPC::Arguments4::encode):
(CoreIPC::Arguments5::encode):
(CoreIPC::Arguments6::encode):
(CoreIPC::Arguments7::encode):
(CoreIPC::Arguments8::encode):
(CoreIPC::Arguments10::encode):
* Platform/CoreIPC/Attachment.cpp:
(CoreIPC::Attachment::encode):
* Platform/CoreIPC/Attachment.h:
(Attachment):
* Platform/CoreIPC/DataReference.cpp:
(CoreIPC::DataReference::encode):
* Platform/CoreIPC/DataReference.h:
(DataReference):
* Platform/CoreIPC/StringReference.cpp:
(CoreIPC::StringReference::encode):
* Platform/CoreIPC/StringReference.h:
(StringReference):
* Platform/CoreIPC/mac/MachPort.h:
(CoreIPC::MachPort::encode):
* Platform/SharedMemory.h:
(Handle):
* Platform/mac/SharedMemoryMac.cpp:
(WebKit::SharedMemory::Handle::encode):
* PluginProcess/PluginCreationParameters.cpp:
(WebKit::PluginCreationParameters::encode):
* PluginProcess/PluginCreationParameters.h:
(PluginCreationParameters):
* Shared/DictionaryPopupInfo.cpp:
(WebKit::DictionaryPopupInfo::encode):
* Shared/DictionaryPopupInfo.h:
(DictionaryPopupInfo):
* Shared/EditorState.cpp:
(WebKit::EditorState::encode):
* Shared/EditorState.h:
(EditorState):
* Shared/FontInfo.cpp:
(WebKit::FontInfo::encode):
* Shared/FontInfo.h:
(FontInfo):
* Shared/LayerTreeContext.h:
(LayerTreeContext):
* Shared/Network/NetworkProcessCreationParameters.cpp:
(WebKit::NetworkProcessCreationParameters::encode):
* Shared/Network/NetworkProcessCreationParameters.h:
(NetworkProcessCreationParameters):
* Shared/OriginAndDatabases.cpp:
(WebKit::OriginAndDatabases::encode):
* Shared/OriginAndDatabases.h:
(OriginAndDatabases):
* Shared/PlatformPopupMenuData.cpp:
(WebKit::PlatformPopupMenuData::encode):
* Shared/PlatformPopupMenuData.h:
(PlatformPopupMenuData):
* Shared/Plugins/NPIdentifierData.cpp:
(WebKit::NPIdentifierData::encode):
* Shared/Plugins/NPIdentifierData.h:
(NPIdentifierData):
* Shared/Plugins/NPVariantData.cpp:
(WebKit::NPVariantData::encode):
* Shared/Plugins/NPVariantData.h:
(NPVariantData):
* Shared/Plugins/PluginProcessCreationParameters.cpp:
(WebKit::PluginProcessCreationParameters::encode):
* Shared/Plugins/PluginProcessCreationParameters.h:
(PluginProcessCreationParameters):
* Shared/PrintInfo.cpp:
(WebKit::PrintInfo::encode):
* Shared/PrintInfo.h:
(PrintInfo):
* Shared/SandboxExtension.h:
(Handle):
(HandleArray):
* Shared/SecurityOriginData.cpp:
(WebKit::SecurityOriginData::encode):
* Shared/SecurityOriginData.h:
(SecurityOriginData):
* Shared/SessionState.cpp:
(WebKit::SessionState::encode):
* Shared/SessionState.h:
(SessionState):
* Shared/ShareableBitmap.cpp:
(WebKit::ShareableBitmap::Handle::encode):
* Shared/ShareableBitmap.h:
(Handle):
* Shared/SharedWorkerProcessCreationParameters.cpp:
(WebKit::SharedWorkerProcessCreationParameters::encode):
* Shared/SharedWorkerProcessCreationParameters.h:
(SharedWorkerProcessCreationParameters):
* Shared/StatisticsData.cpp:
(WebKit::StatisticsData::encode):
* Shared/StatisticsData.h:
(StatisticsData):
* Shared/StringPairVector.h:
(WebKit::StringPairVector::encode):
* Shared/UpdateInfo.cpp:
(WebKit::UpdateInfo::encode):
* Shared/UpdateInfo.h:
(UpdateInfo):
* Shared/UserMessageCoders.h:
(WebKit::UserMessageEncoder::baseEncode):
* Shared/WebContextMenuItemData.cpp:
(WebKit::WebContextMenuItemData::encode):
* Shared/WebContextMenuItemData.h:
(WebContextMenuItemData):
* Shared/WebEvent.cpp:
(WebKit::WebEvent::encode):
* Shared/WebEvent.h:
(WebEvent):
(WebMouseEvent):
(WebWheelEvent):
(WebKeyboardEvent):
(WebGestureEvent):
(WebPlatformTouchPoint):
(WebTouchEvent):
* Shared/WebGeolocationPosition.cpp:
(WebKit::WebGeolocationPosition::Data::encode):
* Shared/WebGeolocationPosition.h:
(Data):
* Shared/WebGestureEvent.cpp:
(WebKit::WebGestureEvent::encode):
* Shared/WebHitTestResult.cpp:
(WebKit::WebHitTestResult::Data::encode):
* Shared/WebHitTestResult.h:
(Data):
* Shared/WebKeyboardEvent.cpp:
(WebKit::WebKeyboardEvent::encode):
* Shared/WebMouseEvent.cpp:
(WebKit::WebMouseEvent::encode):
* Shared/WebNavigationDataStore.h:
(WebKit::WebNavigationDataStore::encode):
* Shared/WebPageCreationParameters.cpp:
(WebKit::WebPageCreationParameters::encode):
* Shared/WebPageCreationParameters.h:
(WebPageCreationParameters):
* Shared/WebPageGroupData.cpp:
(WebKit::WebPageGroupData::encode):
* Shared/WebPageGroupData.h:
(WebPageGroupData):
* Shared/WebPopupItem.cpp:
(WebKit::WebPopupItem::encode):
* Shared/WebPopupItem.h:
* Shared/WebPreferencesStore.cpp:
(WebKit::WebPreferencesStore::encode):
* Shared/WebPreferencesStore.h:
(WebPreferencesStore):
* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::encode):
* Shared/WebProcessCreationParameters.h:
(WebProcessCreationParameters):
* Shared/WebWheelEvent.cpp:
(WebKit::WebWheelEvent::encode):
* Shared/mac/AttributedString.h:
(AttributedString):
* Shared/mac/AttributedString.mm:
(WebKit::AttributedString::encode):
* Shared/mac/ColorSpaceData.h:
(ColorSpaceData):
* Shared/mac/ColorSpaceData.mm:
(WebKit::ColorSpaceData::encode):
* Shared/mac/LayerTreeContextMac.mm:
(WebKit::LayerTreeContext::encode):
* Shared/mac/PlatformCertificateInfo.h:
(PlatformCertificateInfo):
* Shared/mac/PlatformCertificateInfo.mm:
(WebKit::PlatformCertificateInfo::encode):
* Shared/mac/SandboxExtensionMac.mm:
(WebKit::SandboxExtension::Handle::encode):
(WebKit::SandboxExtension::HandleArray::encode):
* Shared/mac/SecItemRequestData.cpp:
(WebKit::SecItemRequestData::encode):
* Shared/mac/SecItemRequestData.h:
* Shared/mac/SecItemResponseData.cpp:
(WebKit::SecItemResponseData::encode):
* Shared/mac/SecItemResponseData.h:
(SecItemResponseData):
* Shared/mac/SecKeychainItemRequestData.cpp:
(WebKit::SecKeychainItemRequestData::encode):
* Shared/mac/SecKeychainItemRequestData.h:
* Shared/mac/SecKeychainItemResponseData.cpp:
(WebKit::SecKeychainItemResponseData::encode):
* Shared/mac/SecKeychainItemResponseData.h:
(SecKeychainItemResponseData):
* UIProcess/WebContextUserMessageCoders.h:
(WebKit::WebContextUserMessageEncoder::encode):
* WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
(WebKit::InjectedBundleUserMessageEncoder::encode):
* WebProcess/Plugins/Plugin.cpp:
(WebKit::Plugin::Parameters::encode):
* WebProcess/Plugins/Plugin.h:
(Parameters):

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

128 files changed:
Source/WebKit2/ChangeLog
Source/WebKit2/Platform/CoreIPC/ArgumentCoder.h
Source/WebKit2/Platform/CoreIPC/Arguments.h
Source/WebKit2/Platform/CoreIPC/Attachment.cpp
Source/WebKit2/Platform/CoreIPC/Attachment.h
Source/WebKit2/Platform/CoreIPC/DataReference.cpp
Source/WebKit2/Platform/CoreIPC/DataReference.h
Source/WebKit2/Platform/CoreIPC/StringReference.cpp
Source/WebKit2/Platform/CoreIPC/StringReference.h
Source/WebKit2/Platform/CoreIPC/mac/MachPort.h
Source/WebKit2/Platform/SharedMemory.h
Source/WebKit2/Platform/gtk/SharedMemoryGtk.cpp
Source/WebKit2/Platform/mac/SharedMemoryMac.cpp
Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp
Source/WebKit2/Platform/win/SharedMemoryWin.cpp
Source/WebKit2/PluginProcess/PluginCreationParameters.cpp
Source/WebKit2/PluginProcess/PluginCreationParameters.h
Source/WebKit2/Shared/DictionaryPopupInfo.cpp
Source/WebKit2/Shared/DictionaryPopupInfo.h
Source/WebKit2/Shared/EditorState.cpp
Source/WebKit2/Shared/EditorState.h
Source/WebKit2/Shared/FontInfo.cpp
Source/WebKit2/Shared/FontInfo.h
Source/WebKit2/Shared/IntentData.cpp
Source/WebKit2/Shared/IntentData.h
Source/WebKit2/Shared/IntentServiceInfo.cpp
Source/WebKit2/Shared/IntentServiceInfo.h
Source/WebKit2/Shared/LayerTreeContext.h
Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.cpp
Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.h
Source/WebKit2/Shared/OriginAndDatabases.cpp
Source/WebKit2/Shared/OriginAndDatabases.h
Source/WebKit2/Shared/PlatformPopupMenuData.cpp
Source/WebKit2/Shared/PlatformPopupMenuData.h
Source/WebKit2/Shared/Plugins/NPIdentifierData.cpp
Source/WebKit2/Shared/Plugins/NPIdentifierData.h
Source/WebKit2/Shared/Plugins/NPVariantData.cpp
Source/WebKit2/Shared/Plugins/NPVariantData.h
Source/WebKit2/Shared/Plugins/PluginProcessCreationParameters.cpp
Source/WebKit2/Shared/Plugins/PluginProcessCreationParameters.h
Source/WebKit2/Shared/PrintInfo.cpp
Source/WebKit2/Shared/PrintInfo.h
Source/WebKit2/Shared/SandboxExtension.h
Source/WebKit2/Shared/SecurityOriginData.cpp
Source/WebKit2/Shared/SecurityOriginData.h
Source/WebKit2/Shared/SessionState.cpp
Source/WebKit2/Shared/SessionState.h
Source/WebKit2/Shared/ShareableBitmap.cpp
Source/WebKit2/Shared/ShareableBitmap.h
Source/WebKit2/Shared/ShareableSurface.cpp
Source/WebKit2/Shared/ShareableSurface.h
Source/WebKit2/Shared/SharedWorkerProcessCreationParameters.cpp
Source/WebKit2/Shared/SharedWorkerProcessCreationParameters.h
Source/WebKit2/Shared/StatisticsData.cpp
Source/WebKit2/Shared/StatisticsData.h
Source/WebKit2/Shared/StringPairVector.h
Source/WebKit2/Shared/SurfaceUpdateInfo.cpp
Source/WebKit2/Shared/SurfaceUpdateInfo.h
Source/WebKit2/Shared/UpdateInfo.cpp
Source/WebKit2/Shared/UpdateInfo.h
Source/WebKit2/Shared/UserMessageCoders.h
Source/WebKit2/Shared/WebBatteryStatus.cpp
Source/WebKit2/Shared/WebBatteryStatus.h
Source/WebKit2/Shared/WebContextMenuItemData.cpp
Source/WebKit2/Shared/WebContextMenuItemData.h
Source/WebKit2/Shared/WebEvent.cpp
Source/WebKit2/Shared/WebEvent.h
Source/WebKit2/Shared/WebGeolocationPosition.cpp
Source/WebKit2/Shared/WebGeolocationPosition.h
Source/WebKit2/Shared/WebGestureEvent.cpp
Source/WebKit2/Shared/WebHitTestResult.cpp
Source/WebKit2/Shared/WebHitTestResult.h
Source/WebKit2/Shared/WebKeyboardEvent.cpp
Source/WebKit2/Shared/WebLayerTreeInfo.cpp
Source/WebKit2/Shared/WebLayerTreeInfo.h
Source/WebKit2/Shared/WebMouseEvent.cpp
Source/WebKit2/Shared/WebNavigationDataStore.h
Source/WebKit2/Shared/WebNetworkInfo.cpp
Source/WebKit2/Shared/WebNetworkInfo.h
Source/WebKit2/Shared/WebPageCreationParameters.cpp
Source/WebKit2/Shared/WebPageCreationParameters.h
Source/WebKit2/Shared/WebPageGroupData.cpp
Source/WebKit2/Shared/WebPageGroupData.h
Source/WebKit2/Shared/WebPlatformTouchPoint.cpp
Source/WebKit2/Shared/WebPopupItem.cpp
Source/WebKit2/Shared/WebPopupItem.h
Source/WebKit2/Shared/WebPreferencesStore.cpp
Source/WebKit2/Shared/WebPreferencesStore.h
Source/WebKit2/Shared/WebProcessCreationParameters.cpp
Source/WebKit2/Shared/WebProcessCreationParameters.h
Source/WebKit2/Shared/WebTouchEvent.cpp
Source/WebKit2/Shared/WebWheelEvent.cpp
Source/WebKit2/Shared/cairo/LayerTreeContextCairo.cpp
Source/WebKit2/Shared/efl/LayerTreeContextEfl.cpp
Source/WebKit2/Shared/gtk/LayerTreeContextGtk.cpp
Source/WebKit2/Shared/mac/AttributedString.h
Source/WebKit2/Shared/mac/AttributedString.mm
Source/WebKit2/Shared/mac/ColorSpaceData.h
Source/WebKit2/Shared/mac/ColorSpaceData.mm
Source/WebKit2/Shared/mac/LayerTreeContextMac.mm
Source/WebKit2/Shared/mac/PlatformCertificateInfo.h
Source/WebKit2/Shared/mac/PlatformCertificateInfo.mm
Source/WebKit2/Shared/mac/SandboxExtensionMac.mm
Source/WebKit2/Shared/mac/SecItemRequestData.cpp
Source/WebKit2/Shared/mac/SecItemRequestData.h
Source/WebKit2/Shared/mac/SecItemResponseData.cpp
Source/WebKit2/Shared/mac/SecItemResponseData.h
Source/WebKit2/Shared/mac/SecKeychainItemRequestData.cpp
Source/WebKit2/Shared/mac/SecKeychainItemRequestData.h
Source/WebKit2/Shared/mac/SecKeychainItemResponseData.cpp
Source/WebKit2/Shared/mac/SecKeychainItemResponseData.h
Source/WebKit2/Shared/qt/LayerTreeContextQt.cpp
Source/WebKit2/Shared/qt/PlatformCertificateInfo.h
Source/WebKit2/Shared/qt/QtNetworkReplyData.cpp
Source/WebKit2/Shared/qt/QtNetworkReplyData.h
Source/WebKit2/Shared/qt/QtNetworkRequestData.cpp
Source/WebKit2/Shared/qt/QtNetworkRequestData.h
Source/WebKit2/Shared/soup/PlatformCertificateInfo.cpp
Source/WebKit2/Shared/soup/PlatformCertificateInfo.h
Source/WebKit2/Shared/win/LayerTreeContextWin.cpp
Source/WebKit2/Shared/win/PlatformCertificateInfo.cpp
Source/WebKit2/Shared/win/PlatformCertificateInfo.h
Source/WebKit2/Shared/win/WindowGeometry.cpp
Source/WebKit2/Shared/win/WindowGeometry.h
Source/WebKit2/UIProcess/WebContextUserMessageCoders.h
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h
Source/WebKit2/WebProcess/Plugins/Plugin.cpp
Source/WebKit2/WebProcess/Plugins/Plugin.h

index 112ef31..87f7554 100644 (file)
@@ -1,3 +1,209 @@
+2012-10-23  Anders Carlsson  <andersca@apple.com>
+
+        encode should take an ArgumentEncoder reference
+        https://bugs.webkit.org/show_bug.cgi?id=100183
+
+        Reviewed by Jessie Berlin.
+
+        * Platform/CoreIPC/ArgumentCoder.h:
+        (CoreIPC::ArgumentCoder::encode):
+        * Platform/CoreIPC/Arguments.h:
+        (CoreIPC::Arguments0::encode):
+        (CoreIPC::Arguments1::encode):
+        (CoreIPC::Arguments2::encode):
+        (CoreIPC::Arguments3::encode):
+        (CoreIPC::Arguments4::encode):
+        (CoreIPC::Arguments5::encode):
+        (CoreIPC::Arguments6::encode):
+        (CoreIPC::Arguments7::encode):
+        (CoreIPC::Arguments8::encode):
+        (CoreIPC::Arguments10::encode):
+        * Platform/CoreIPC/Attachment.cpp:
+        (CoreIPC::Attachment::encode):
+        * Platform/CoreIPC/Attachment.h:
+        (Attachment):
+        * Platform/CoreIPC/DataReference.cpp:
+        (CoreIPC::DataReference::encode):
+        * Platform/CoreIPC/DataReference.h:
+        (DataReference):
+        * Platform/CoreIPC/StringReference.cpp:
+        (CoreIPC::StringReference::encode):
+        * Platform/CoreIPC/StringReference.h:
+        (StringReference):
+        * Platform/CoreIPC/mac/MachPort.h:
+        (CoreIPC::MachPort::encode):
+        * Platform/SharedMemory.h:
+        (Handle):
+        * Platform/mac/SharedMemoryMac.cpp:
+        (WebKit::SharedMemory::Handle::encode):
+        * PluginProcess/PluginCreationParameters.cpp:
+        (WebKit::PluginCreationParameters::encode):
+        * PluginProcess/PluginCreationParameters.h:
+        (PluginCreationParameters):
+        * Shared/DictionaryPopupInfo.cpp:
+        (WebKit::DictionaryPopupInfo::encode):
+        * Shared/DictionaryPopupInfo.h:
+        (DictionaryPopupInfo):
+        * Shared/EditorState.cpp:
+        (WebKit::EditorState::encode):
+        * Shared/EditorState.h:
+        (EditorState):
+        * Shared/FontInfo.cpp:
+        (WebKit::FontInfo::encode):
+        * Shared/FontInfo.h:
+        (FontInfo):
+        * Shared/LayerTreeContext.h:
+        (LayerTreeContext):
+        * Shared/Network/NetworkProcessCreationParameters.cpp:
+        (WebKit::NetworkProcessCreationParameters::encode):
+        * Shared/Network/NetworkProcessCreationParameters.h:
+        (NetworkProcessCreationParameters):
+        * Shared/OriginAndDatabases.cpp:
+        (WebKit::OriginAndDatabases::encode):
+        * Shared/OriginAndDatabases.h:
+        (OriginAndDatabases):
+        * Shared/PlatformPopupMenuData.cpp:
+        (WebKit::PlatformPopupMenuData::encode):
+        * Shared/PlatformPopupMenuData.h:
+        (PlatformPopupMenuData):
+        * Shared/Plugins/NPIdentifierData.cpp:
+        (WebKit::NPIdentifierData::encode):
+        * Shared/Plugins/NPIdentifierData.h:
+        (NPIdentifierData):
+        * Shared/Plugins/NPVariantData.cpp:
+        (WebKit::NPVariantData::encode):
+        * Shared/Plugins/NPVariantData.h:
+        (NPVariantData):
+        * Shared/Plugins/PluginProcessCreationParameters.cpp:
+        (WebKit::PluginProcessCreationParameters::encode):
+        * Shared/Plugins/PluginProcessCreationParameters.h:
+        (PluginProcessCreationParameters):
+        * Shared/PrintInfo.cpp:
+        (WebKit::PrintInfo::encode):
+        * Shared/PrintInfo.h:
+        (PrintInfo):
+        * Shared/SandboxExtension.h:
+        (Handle):
+        (HandleArray):
+        * Shared/SecurityOriginData.cpp:
+        (WebKit::SecurityOriginData::encode):
+        * Shared/SecurityOriginData.h:
+        (SecurityOriginData):
+        * Shared/SessionState.cpp:
+        (WebKit::SessionState::encode):
+        * Shared/SessionState.h:
+        (SessionState):
+        * Shared/ShareableBitmap.cpp:
+        (WebKit::ShareableBitmap::Handle::encode):
+        * Shared/ShareableBitmap.h:
+        (Handle):
+        * Shared/SharedWorkerProcessCreationParameters.cpp:
+        (WebKit::SharedWorkerProcessCreationParameters::encode):
+        * Shared/SharedWorkerProcessCreationParameters.h:
+        (SharedWorkerProcessCreationParameters):
+        * Shared/StatisticsData.cpp:
+        (WebKit::StatisticsData::encode):
+        * Shared/StatisticsData.h:
+        (StatisticsData):
+        * Shared/StringPairVector.h:
+        (WebKit::StringPairVector::encode):
+        * Shared/UpdateInfo.cpp:
+        (WebKit::UpdateInfo::encode):
+        * Shared/UpdateInfo.h:
+        (UpdateInfo):
+        * Shared/UserMessageCoders.h:
+        (WebKit::UserMessageEncoder::baseEncode):
+        * Shared/WebContextMenuItemData.cpp:
+        (WebKit::WebContextMenuItemData::encode):
+        * Shared/WebContextMenuItemData.h:
+        (WebContextMenuItemData):
+        * Shared/WebEvent.cpp:
+        (WebKit::WebEvent::encode):
+        * Shared/WebEvent.h:
+        (WebEvent):
+        (WebMouseEvent):
+        (WebWheelEvent):
+        (WebKeyboardEvent):
+        (WebGestureEvent):
+        (WebPlatformTouchPoint):
+        (WebTouchEvent):
+        * Shared/WebGeolocationPosition.cpp:
+        (WebKit::WebGeolocationPosition::Data::encode):
+        * Shared/WebGeolocationPosition.h:
+        (Data):
+        * Shared/WebGestureEvent.cpp:
+        (WebKit::WebGestureEvent::encode):
+        * Shared/WebHitTestResult.cpp:
+        (WebKit::WebHitTestResult::Data::encode):
+        * Shared/WebHitTestResult.h:
+        (Data):
+        * Shared/WebKeyboardEvent.cpp:
+        (WebKit::WebKeyboardEvent::encode):
+        * Shared/WebMouseEvent.cpp:
+        (WebKit::WebMouseEvent::encode):
+        * Shared/WebNavigationDataStore.h:
+        (WebKit::WebNavigationDataStore::encode):
+        * Shared/WebPageCreationParameters.cpp:
+        (WebKit::WebPageCreationParameters::encode):
+        * Shared/WebPageCreationParameters.h:
+        (WebPageCreationParameters):
+        * Shared/WebPageGroupData.cpp:
+        (WebKit::WebPageGroupData::encode):
+        * Shared/WebPageGroupData.h:
+        (WebPageGroupData):
+        * Shared/WebPopupItem.cpp:
+        (WebKit::WebPopupItem::encode):
+        * Shared/WebPopupItem.h:
+        * Shared/WebPreferencesStore.cpp:
+        (WebKit::WebPreferencesStore::encode):
+        * Shared/WebPreferencesStore.h:
+        (WebPreferencesStore):
+        * Shared/WebProcessCreationParameters.cpp:
+        (WebKit::WebProcessCreationParameters::encode):
+        * Shared/WebProcessCreationParameters.h:
+        (WebProcessCreationParameters):
+        * Shared/WebWheelEvent.cpp:
+        (WebKit::WebWheelEvent::encode):
+        * Shared/mac/AttributedString.h:
+        (AttributedString):
+        * Shared/mac/AttributedString.mm:
+        (WebKit::AttributedString::encode):
+        * Shared/mac/ColorSpaceData.h:
+        (ColorSpaceData):
+        * Shared/mac/ColorSpaceData.mm:
+        (WebKit::ColorSpaceData::encode):
+        * Shared/mac/LayerTreeContextMac.mm:
+        (WebKit::LayerTreeContext::encode):
+        * Shared/mac/PlatformCertificateInfo.h:
+        (PlatformCertificateInfo):
+        * Shared/mac/PlatformCertificateInfo.mm:
+        (WebKit::PlatformCertificateInfo::encode):
+        * Shared/mac/SandboxExtensionMac.mm:
+        (WebKit::SandboxExtension::Handle::encode):
+        (WebKit::SandboxExtension::HandleArray::encode):
+        * Shared/mac/SecItemRequestData.cpp:
+        (WebKit::SecItemRequestData::encode):
+        * Shared/mac/SecItemRequestData.h:
+        * Shared/mac/SecItemResponseData.cpp:
+        (WebKit::SecItemResponseData::encode):
+        * Shared/mac/SecItemResponseData.h:
+        (SecItemResponseData):
+        * Shared/mac/SecKeychainItemRequestData.cpp:
+        (WebKit::SecKeychainItemRequestData::encode):
+        * Shared/mac/SecKeychainItemRequestData.h:
+        * Shared/mac/SecKeychainItemResponseData.cpp:
+        (WebKit::SecKeychainItemResponseData::encode):
+        * Shared/mac/SecKeychainItemResponseData.h:
+        (SecKeychainItemResponseData):
+        * UIProcess/WebContextUserMessageCoders.h:
+        (WebKit::WebContextUserMessageEncoder::encode):
+        * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
+        (WebKit::InjectedBundleUserMessageEncoder::encode):
+        * WebProcess/Plugins/Plugin.cpp:
+        (WebKit::Plugin::Parameters::encode):
+        * WebProcess/Plugins/Plugin.h:
+        (Parameters):
+
 2012-10-24  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
 
         [Qt] Move the QQuickWebViewExperimental pointer to QQuickWebViewPrivate
index bd15f51..4baab9f 100644 (file)
@@ -34,7 +34,7 @@ class ArgumentDecoder;
 class ArgumentEncoder;
     
 template<typename T> struct ArgumentCoder {
-    static void encode(ArgumentEncoder* encoder, const T& t)
+    static void encode(ArgumentEncoder& encoder, const T& t)
     {
         t.encode(encoder);
     }
index 1d4c5dc..7ed94d8 100644 (file)
@@ -35,7 +35,7 @@ namespace CoreIPC {
 struct Arguments0 {
     typedef Arguments0 ValueType;
 
-    void encode(ArgumentEncoder*) const 
+    void encode(ArgumentEncoder&) const 
     {
     }
 
@@ -57,9 +57,9 @@ template<typename T1> struct Arguments1 {
     {
     }
 
-    void encode(ArgumentEncoder* encoder) const 
+    void encode(ArgumentEncoder& encoder) const
     {
-        encoder->encode(argument1);
+        encoder.encode(argument1);
     }
 
     static bool decode(ArgumentDecoder* decoder, Arguments1& result)
@@ -84,10 +84,10 @@ template<typename T1, typename T2> struct Arguments2 : Arguments1<T1> {
     {
     }
 
-    void encode(ArgumentEncoder* encoder) const 
+    void encode(ArgumentEncoder& encoder) const
     {
         Arguments1<T1>::encode(encoder);
-        encoder->encode(argument2);
+        encoder.encode(argument2);
     }
 
     static bool decode(ArgumentDecoder* decoder, Arguments2& result)
@@ -116,10 +116,10 @@ template<typename T1, typename T2, typename T3> struct Arguments3 : Arguments2<T
     {
     }
 
-    void encode(ArgumentEncoder* encoder) const 
+    void encode(ArgumentEncoder& encoder) const
     {
         Arguments2<T1, T2>::encode(encoder);
-        encoder->encode(argument3);
+        encoder.encode(argument3);
     }
 
     static bool decode(ArgumentDecoder* decoder, Arguments3& result)
@@ -149,10 +149,10 @@ template<typename T1, typename T2, typename T3, typename T4> struct Arguments4 :
     {
     }
 
-    void encode(ArgumentEncoder* encoder) const
+    void encode(ArgumentEncoder& encoder) const
     {
         Arguments3<T1, T2, T3>::encode(encoder);
-        encoder->encode(argument4);
+        encoder.encode(argument4);
     }
     
     static bool decode(ArgumentDecoder* decoder, Arguments4& result)
@@ -183,10 +183,10 @@ template<typename T1, typename T2, typename T3, typename T4, typename T5> struct
     {
     }
 
-    void encode(ArgumentEncoder* encoder) const
+    void encode(ArgumentEncoder& encoder) const
     {
         Arguments4<T1, T2, T3, T4>::encode(encoder);
-        encoder->encode(argument5);
+        encoder.encode(argument5);
     }
     
     static bool decode(ArgumentDecoder* decoder, Arguments5& result)
@@ -218,10 +218,10 @@ template<typename T1, typename T2, typename T3, typename T4, typename T5, typena
     {
     }
 
-    void encode(ArgumentEncoder* encoder) const
+    void encode(ArgumentEncoder& encoder) const
     {
         Arguments5<T1, T2, T3, T4, T5>::encode(encoder);
-        encoder->encode(argument6);
+        encoder.encode(argument6);
     }
     
     static bool decode(ArgumentDecoder* decoder, Arguments6& result)
@@ -254,10 +254,10 @@ template<typename T1, typename T2, typename T3, typename T4, typename T5, typena
     {
     }
 
-    void encode(ArgumentEncoder* encoder) const
+    void encode(ArgumentEncoder& encoder) const
     {
         Arguments6<T1, T2, T3, T4, T5, T6>::encode(encoder);
-        encoder->encode(argument7);
+        encoder.encode(argument7);
     }
     
     static bool decode(ArgumentDecoder* decoder, Arguments7& result)
@@ -289,10 +289,10 @@ template<typename T1, typename T2, typename T3, typename T4, typename T5, typena
     {
     }
 
-    void encode(ArgumentEncoder* encoder) const
+    void encode(ArgumentEncoder& encoder) const
     {
         Arguments7<T1, T2, T3, T4, T5, T6, T7>::encode(encoder);
-        encoder->encode(argument8);
+        encoder.encode(argument8);
     }
 
     static bool decode(ArgumentDecoder* decoder, Arguments8& result)
@@ -327,11 +327,11 @@ template<typename T1, typename T2, typename T3, typename T4, typename T5, typena
     {
     }
 
-    void encode(ArgumentEncoder* encoder) const
+    void encode(ArgumentEncoder& encoder) const
     {
         Arguments8<T1, T2, T3, T4, T5, T6, T7, T8>::encode(encoder);
-        encoder->encode(argument9);
-        encoder->encode(argument10);
+        encoder.encode(argument9);
+        encoder.encode(argument10);
     }
 
     static bool decode(ArgumentDecoder* decoder, Arguments10& result)
index d6952ae..8f47748 100644 (file)
@@ -59,9 +59,9 @@ void Attachment::release()
 }
 #endif
 
-void Attachment::encode(ArgumentEncoder* encoder) const
+void Attachment::encode(ArgumentEncoder& encoder) const
 {
-    encoder->addAttachment(*this);
+    encoder.addAttachment(*this);
 }
 
 bool Attachment::decode(ArgumentDecoder* decoder, Attachment& attachment)
index 05ab907..dd26b3a 100644 (file)
@@ -82,7 +82,7 @@ public:
     void dispose();
 #endif
 
-    void encode(ArgumentEncoder*) const;
+    void encode(ArgumentEncoder&) const;
     static bool decode(ArgumentDecoder*, Attachment&);
     
 private:
index 0798c3e..a144986 100644 (file)
@@ -31,9 +31,9 @@
 
 namespace CoreIPC {
 
-void DataReference::encode(ArgumentEncoder* encoder) const
+void DataReference::encode(ArgumentEncoder& encoder) const
 {
-    encoder->encodeVariableLengthByteArray(*this);
+    encoder.encodeVariableLengthByteArray(*this);
 }
 
 bool DataReference::decode(ArgumentDecoder* decoder, DataReference& dataReference)
index 5ed0443..a0ce8c3 100644 (file)
@@ -72,7 +72,7 @@ public:
         return result;
     }
 
-    void encode(ArgumentEncoder* encoder) const;
+    void encode(ArgumentEncoder&) const;
     static bool decode(ArgumentDecoder* decoder, DataReference& dataReference);
 
 private:
index 56e8c1a..e66685a 100644 (file)
@@ -33,9 +33,9 @@
 
 namespace CoreIPC {
 
-void StringReference::encode(ArgumentEncoder* encoder) const
+void StringReference::encode(ArgumentEncoder& encoder) const
 {
-    encoder->encodeVariableLengthByteArray(DataReference(reinterpret_cast<const uint8_t*>(m_data), m_size));
+    encoder.encodeVariableLengthByteArray(DataReference(reinterpret_cast<const uint8_t*>(m_data), m_size));
 }
 
 bool StringReference::decode(ArgumentDecoder* decoder, StringReference& result)
index ed482e5..ba4381d 100644 (file)
@@ -64,7 +64,7 @@ public:
         return a.m_size == b.m_size && !memcmp(a.m_data, b.m_data, a.m_size);
     }
 
-    void encode(ArgumentEncoder*) const;
+    void encode(ArgumentEncoder&) const;
     static bool decode(ArgumentDecoder*, StringReference&);
 
     struct Hash {
index ecce16e..c496a50 100644 (file)
@@ -46,9 +46,9 @@ public:
     {
     }
 
-    void encode(ArgumentEncoder* encoder) const
+    void encode(ArgumentEncoder& encoder) const
     {
-        encoder->encode(Attachment(m_port, m_disposition));
+        encoder.encode(Attachment(m_port, m_disposition));
     }
 
     static bool decode(ArgumentDecoder* decoder, MachPort& p)
index 0d56bac..46d032a 100644 (file)
@@ -57,7 +57,7 @@ public:
 
         bool isNull() const;
 
-        void encode(CoreIPC::ArgumentEncoder*) const;
+        void encode(CoreIPC::ArgumentEncoder&) const;
         static bool decode(CoreIPC::ArgumentDecoder*, Handle&);
 
 #if USE(UNIX_DOMAIN_SOCKETS)
index faccf10..9354306 100644 (file)
@@ -41,7 +41,7 @@ SharedMemory::Handle::~Handle()
     notImplemented();
 }
 
-void SharedMemory::Handle::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SharedMemory::Handle::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     notImplemented();
 }
index 4019a8d..4a9d03f 100644 (file)
@@ -55,10 +55,10 @@ bool SharedMemory::Handle::isNull() const
     return !m_port;
 }
 
-void SharedMemory::Handle::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SharedMemory::Handle::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(static_cast<uint64_t>(m_size));
-    encoder->encode(CoreIPC::MachPort(m_port, MACH_MSG_TYPE_MOVE_SEND));
+    encoder.encode(static_cast<uint64_t>(m_size));
+    encoder.encode(CoreIPC::MachPort(m_port, MACH_MSG_TYPE_MOVE_SEND));
     m_port = MACH_PORT_NULL;
 }
 
index c432d33..f565b76 100644 (file)
@@ -63,9 +63,9 @@ bool SharedMemory::Handle::isNull() const
     return m_fileDescriptor == -1;
 }
 
-void SharedMemory::Handle::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SharedMemory::Handle::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(releaseToAttachment());
+    encoder.encode(releaseToAttachment());
 }
 
 bool SharedMemory::Handle::decode(CoreIPC::ArgumentDecoder* decoder, Handle& handle)
index 2aa28f8..f59dba5 100644 (file)
@@ -51,18 +51,18 @@ bool SharedMemory::Handle::isNull() const
     return !m_handle;
 }
 
-void SharedMemory::Handle::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SharedMemory::Handle::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(static_cast<uint64_t>(m_size));
+    encoder.encode(static_cast<uint64_t>(m_size));
 
     // Hand off ownership of our HANDLE to the receiving process. It will close it for us.
     // FIXME: If the receiving process crashes before it receives the memory, the memory will be
     // leaked. See <http://webkit.org/b/47502>.
-    encoder->encode(reinterpret_cast<uint64_t>(m_handle));
+    encoder.encode(reinterpret_cast<uint64_t>(m_handle));
     m_handle = 0;
 
     // Send along our PID so that the receiving process can duplicate the HANDLE for its own use.
-    encoder->encode(static_cast<uint32_t>(::GetCurrentProcessId()));
+    encoder.encode(static_cast<uint32_t>(::GetCurrentProcessId()));
 }
 
 static bool getDuplicatedHandle(HANDLE sourceHandle, DWORD sourcePID, HANDLE& duplicatedHandle)
index bc2e992..c5aafab 100644 (file)
@@ -45,19 +45,19 @@ PluginCreationParameters::PluginCreationParameters()
 {
 }
 
-void PluginCreationParameters::encode(CoreIPC::ArgumentEncoder* encoder) const
+void PluginCreationParameters::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(pluginInstanceID);
-    encoder->encode(windowNPObjectID);
-    encoder->encode(parameters);
-    encoder->encode(userAgent);
-    encoder->encode(contentsScaleFactor);
-    encoder->encode(isPrivateBrowsingEnabled);
-    encoder->encode(asynchronousCreationIncomplete);
-    encoder->encode(artificialPluginInitializationDelayEnabled);
+    encoder.encode(pluginInstanceID);
+    encoder.encode(windowNPObjectID);
+    encoder.encode(parameters);
+    encoder.encode(userAgent);
+    encoder.encode(contentsScaleFactor);
+    encoder.encode(isPrivateBrowsingEnabled);
+    encoder.encode(asynchronousCreationIncomplete);
+    encoder.encode(artificialPluginInitializationDelayEnabled);
 
 #if USE(ACCELERATED_COMPOSITING)
-    encoder->encode(isAcceleratedCompositingEnabled);
+    encoder.encode(isAcceleratedCompositingEnabled);
 #endif
 }
 
index 6f05bda..1387f14 100644 (file)
@@ -40,7 +40,7 @@ namespace WebKit {
 struct PluginCreationParameters {
     PluginCreationParameters();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, PluginCreationParameters&);
 
     // The unique ID of this plug-in instance.
index 7e6df3a..a44d99c 100644 (file)
 
 namespace WebKit {
 
-void DictionaryPopupInfo::encode(CoreIPC::ArgumentEncoder* encoder) const
+void DictionaryPopupInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(origin);
-    encoder->encode(fontInfo);
-    encoder->encodeEnum(type);
+    encoder.encode(origin);
+    encoder.encode(fontInfo);
+    encoder.encodeEnum(type);
 
 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
     bool hadOptions = options;
-    encoder->encode(hadOptions);
+    encoder.encode(hadOptions);
     if (hadOptions)
-        CoreIPC::encode(encoder, options.get());
+        CoreIPC::encode(&encoder, options.get());
 #endif
 }
 
index bcec04c..27eb6db 100644 (file)
@@ -41,7 +41,7 @@ namespace CoreIPC {
 namespace WebKit {
 
 struct DictionaryPopupInfo {
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, DictionaryPopupInfo&);
 
     enum Type {
index 6e44a0f..b8d640a 100644 (file)
 
 namespace WebKit {
 
-void EditorState::encode(CoreIPC::ArgumentEncoder* encoder) const
+void EditorState::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(shouldIgnoreCompositionSelectionChange);
-    encoder->encode(selectionIsNone);
-    encoder->encode(selectionIsRange);
-    encoder->encode(isContentEditable);
-    encoder->encode(isContentRichlyEditable);
-    encoder->encode(isInPasswordField);
-    encoder->encode(hasComposition);
+    encoder.encode(shouldIgnoreCompositionSelectionChange);
+    encoder.encode(selectionIsNone);
+    encoder.encode(selectionIsRange);
+    encoder.encode(isContentEditable);
+    encoder.encode(isContentRichlyEditable);
+    encoder.encode(isInPasswordField);
+    encoder.encode(hasComposition);
 
 #if PLATFORM(QT)
-    encoder->encode(cursorPosition);
-    encoder->encode(anchorPosition);
-    encoder->encode(editorRect);
-    encoder->encode(cursorRect);
-    encoder->encode(compositionRect);
-    encoder->encode(inputMethodHints);
-    encoder->encode(selectedText);
-    encoder->encode(surroundingText);
+    encoder.encode(cursorPosition);
+    encoder.encode(anchorPosition);
+    encoder.encode(editorRect);
+    encoder.encode(cursorRect);
+    encoder.encode(compositionRect);
+    encoder.encode(inputMethodHints);
+    encoder.encode(selectedText);
+    encoder.encode(surroundingText);
 #endif
 }
 
index ac1d793..06ea087 100644 (file)
@@ -74,7 +74,7 @@ struct EditorState {
     WTF::String surroundingText;
 #endif
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, EditorState&);
 };
 
index cd02630..de03384 100644 (file)
 
 namespace WebKit {
 
-void FontInfo::encode(CoreIPC::ArgumentEncoder* encoder) const
+void FontInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
 #if PLATFORM(MAC)
-    encoder->encode(static_cast<bool>(fontAttributeDictionary));
+    encoder.encode(static_cast<bool>(fontAttributeDictionary));
     if (fontAttributeDictionary)
-        CoreIPC::encode(encoder, fontAttributeDictionary.get());
+        CoreIPC::encode(&encoder, fontAttributeDictionary.get());
 #else
     UNUSED_PARAM(encoder);
 #endif
index 23ea945..ae11d12 100644 (file)
@@ -38,7 +38,7 @@ namespace CoreIPC {
 namespace WebKit {
     
 struct FontInfo {
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, FontInfo&);
     
 #if PLATFORM(MAC)
index 4107874..757819e 100644 (file)
@@ -56,15 +56,15 @@ IntentData::IntentData(Intent* coreIntent)
     }
 }
 
-void IntentData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void IntentData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(action);
-    encoder->encode(type);
-    encoder->encode(service);
-    encoder->encode(CoreIPC::DataReference(data));
-    encoder->encode(extras);
-    encoder->encode(suggestions);
-    encoder->encode(messagePorts);
+    encoder.encode(action);
+    encoder.encode(type);
+    encoder.encode(service);
+    encoder.encode(CoreIPC::DataReference(data));
+    encoder.encode(extras);
+    encoder.encode(suggestions);
+    encoder.encode(messagePorts);
 }
 
 bool IntentData::decode(CoreIPC::ArgumentDecoder* decoder, IntentData& intentData)
index e8435c2..e3adb19 100644 (file)
@@ -48,7 +48,7 @@ struct IntentData {
     IntentData() { }
     explicit IntentData(WebCore::Intent*);
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, IntentData&);
 
     String action;
index bd95484..340200e 100644 (file)
@@ -35,13 +35,13 @@ using namespace WebCore;
 
 namespace WebKit {
 
-void IntentServiceInfo::encode(CoreIPC::ArgumentEncoder* encoder) const
+void IntentServiceInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(action);
-    encoder->encode(type);
-    encoder->encode(href);
-    encoder->encode(title);
-    encoder->encode(disposition);
+    encoder.encode(action);
+    encoder.encode(type);
+    encoder.encode(href);
+    encoder.encode(title);
+    encoder.encode(disposition);
 }
 
 bool IntentServiceInfo::decode(CoreIPC::ArgumentDecoder* decoder, IntentServiceInfo& intentServiceInfo)
index 59c0470..ff13d3b 100644 (file)
@@ -40,7 +40,7 @@ class ArgumentEncoder;
 namespace WebKit {
 
 struct IntentServiceInfo {
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, IntentServiceInfo&);
 
     String action;
index 5206a37..f8e2fce 100644 (file)
@@ -47,7 +47,7 @@ public:
     LayerTreeContext();
     ~LayerTreeContext();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, LayerTreeContext&);
 
     bool isEmpty() const;
index efbe357..0633c04 100644 (file)
@@ -36,10 +36,10 @@ NetworkProcessCreationParameters::NetworkProcessCreationParameters()
 {
 }
 
-void NetworkProcessCreationParameters::encode(CoreIPC::ArgumentEncoder* encoder) const
+void NetworkProcessCreationParameters::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
 #if PLATFORM(MAC)
-    encoder->encode(parentProcessName);
+    encoder.encode(parentProcessName);
 #endif
 }
 
index 4f59e29..ebc03a7 100644 (file)
@@ -40,7 +40,7 @@ namespace WebKit {
 struct NetworkProcessCreationParameters {
     NetworkProcessCreationParameters();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, NetworkProcessCreationParameters&);
 
 #if PLATFORM(MAC)
index 0ad0549..9f6fbe2 100644 (file)
@@ -34,12 +34,12 @@ using namespace WebCore;
 
 namespace WebKit {
 
-void OriginAndDatabases::encode(CoreIPC::ArgumentEncoder* encoder) const
+void OriginAndDatabases::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(originIdentifier);
-    encoder->encode(originQuota);
-    encoder->encode(originUsage);
-    encoder->encode(databases);
+    encoder.encode(originIdentifier);
+    encoder.encode(originQuota);
+    encoder.encode(originUsage);
+    encoder.encode(databases);
 }
 
 bool OriginAndDatabases::decode(CoreIPC::ArgumentDecoder* decoder, OriginAndDatabases& originAndDatabases)
index 51ef4fa..ec064f9 100644 (file)
@@ -40,7 +40,7 @@ namespace CoreIPC {
 namespace WebKit {
 
 struct OriginAndDatabases {
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, OriginAndDatabases&);
 
     String originIdentifier;
index 1decaac..21578c4 100644 (file)
@@ -44,28 +44,28 @@ PlatformPopupMenuData::PlatformPopupMenuData()
 {
 }
 
-void PlatformPopupMenuData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void PlatformPopupMenuData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
 #if PLATFORM(WIN)
-    encoder->encode(m_clientPaddingLeft);
-    encoder->encode(m_clientPaddingRight);
-    encoder->encode(m_clientInsetLeft);
-    encoder->encode(m_clientInsetRight);
-    encoder->encode(m_popupWidth);
-    encoder->encode(m_itemHeight);
+    encoder.encode(m_clientPaddingLeft);
+    encoder.encode(m_clientPaddingRight);
+    encoder.encode(m_clientInsetLeft);
+    encoder.encode(m_clientInsetRight);
+    encoder.encode(m_popupWidth);
+    encoder.encode(m_itemHeight);
 
     ShareableBitmap::Handle notSelectedBackingStoreHandle;
     m_notSelectedBackingStore->createHandle(notSelectedBackingStoreHandle);
-    encoder->encode(notSelectedBackingStoreHandle);
+    encoder.encode(notSelectedBackingStoreHandle);
 
     ShareableBitmap::Handle selectedBackingStoreHandle;
     m_selectedBackingStore->createHandle(selectedBackingStoreHandle);
-    encoder->encode(selectedBackingStoreHandle);
+    encoder.encode(selectedBackingStoreHandle);
 #elif PLATFORM(MAC)
-    encoder->encode(fontInfo);
-    encoder->encode(shouldPopOver);
+    encoder.encode(fontInfo);
+    encoder.encode(shouldPopOver);
 #elif PLATFORM(QT)
-    encoder->encode(multipleSelections);
+    encoder.encode(multipleSelections);
 #else
     UNUSED_PARAM(encoder);
 #endif
index 21abde4..7d9d94d 100644 (file)
@@ -40,7 +40,7 @@ namespace WebKit {
 struct PlatformPopupMenuData {
     PlatformPopupMenuData();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, PlatformPopupMenuData&);
 
 #if PLATFORM(WIN)
index ff2bef1..fc9870f 100644 (file)
@@ -67,13 +67,13 @@ NPIdentifier NPIdentifierData::createNPIdentifier() const
     return static_cast<NPIdentifier>(IdentifierRep::get(m_number));
 }
 
-void NPIdentifierData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void NPIdentifierData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(m_isString);
+    encoder.encode(m_isString);
     if (m_isString)
-        encoder->encode(m_string);
+        encoder.encode(m_string);
     else
-        encoder->encode(m_number);
+        encoder.encode(m_number);
 }
 
 bool NPIdentifierData::decode(CoreIPC::ArgumentDecoder* decoder, NPIdentifierData& result)
index 1a7c772..56d57fc 100644 (file)
@@ -47,7 +47,7 @@ public:
     static NPIdentifierData fromNPIdentifier(NPIdentifier);
     NPIdentifier createNPIdentifier() const;
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, NPIdentifierData&);
 
 private:
index 04bb3f5..c0bbf67 100644 (file)
@@ -118,31 +118,31 @@ NPVariantData NPVariantData::makeRemoteNPObjectID(uint64_t value)
     return npVariantData;
 }
 
-void NPVariantData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void NPVariantData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(m_type);
+    encoder.encode(m_type);
 
     switch (type()) {
     case NPVariantData::Void:
     case NPVariantData::Null:
         break;
     case NPVariantData::Bool:
-        encoder->encode(boolValue());
+        encoder.encode(boolValue());
         break;
     case NPVariantData::Int32:
-        encoder->encode(int32Value());
+        encoder.encode(int32Value());
         break;
     case NPVariantData::Double:
-        encoder->encode(doubleValue());
+        encoder.encode(doubleValue());
         break;
     case NPVariantData::String:
-        encoder->encode(stringValue());
+        encoder.encode(stringValue());
         break;
     case NPVariantData::LocalNPObjectID:
-        encoder->encode(localNPObjectIDValue());
+        encoder.encode(localNPObjectIDValue());
         break;
     case NPVariantData::RemoteNPObjectID:
-        encoder->encode(remoteNPObjectIDValue());
+        encoder.encode(remoteNPObjectIDValue());
         break;
     }
 }
index 805640e..a232046 100644 (file)
@@ -100,7 +100,7 @@ public:
         return m_remoteNPObjectIDValue;
     }
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, NPVariantData&);
 
 private:
index 1a0a52c..c0c626e 100644 (file)
@@ -37,17 +37,17 @@ PluginProcessCreationParameters::PluginProcessCreationParameters()
 {
 }
 
-void PluginProcessCreationParameters::encode(CoreIPC::ArgumentEncoder* encoder) const
+void PluginProcessCreationParameters::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(pluginPath);
-    encoder->encode(supportsAsynchronousPluginInitialization);
-    encoder->encode(minimumLifetime);
-    encoder->encode(terminationTimeout);
+    encoder.encode(pluginPath);
+    encoder.encode(supportsAsynchronousPluginInitialization);
+    encoder.encode(minimumLifetime);
+    encoder.encode(terminationTimeout);
 
 #if PLATFORM(MAC)
-    encoder->encode(parentProcessName);
-    encoder->encode(acceleratedCompositingPort);
-    encoder->encode(sandboxProfileDirectoryPath);
+    encoder.encode(parentProcessName);
+    encoder.encode(acceleratedCompositingPort);
+    encoder.encode(sandboxProfileDirectoryPath);
 #endif
 }
 
index 544374a..a414212 100644 (file)
@@ -44,7 +44,7 @@ namespace WebKit {
 struct PluginProcessCreationParameters {
     PluginProcessCreationParameters();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, PluginProcessCreationParameters&);
 
     String pluginPath;
index 107884a..85a069a 100644 (file)
@@ -43,15 +43,15 @@ PrintInfo::PrintInfo()
 {
 }
 
-void PrintInfo::encode(CoreIPC::ArgumentEncoder* encoder) const
+void PrintInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(pageSetupScaleFactor);
-    encoder->encode(availablePaperWidth);
-    encoder->encode(availablePaperHeight);
+    encoder.encode(pageSetupScaleFactor);
+    encoder.encode(availablePaperWidth);
+    encoder.encode(availablePaperHeight);
 
 #if PLATFORM(GTK)
-    CoreIPC::encode(encoder, printSettings.get());
-    CoreIPC::encode(encoder, pageSetup.get());
+    CoreIPC::encode(&encoder, printSettings.get());
+    CoreIPC::encode(&encoder, pageSetup.get());
 #endif
 }
 
index b73b7c5..97faceb 100644 (file)
@@ -63,7 +63,7 @@ struct PrintInfo {
     GRefPtr<GtkPageSetup> pageSetup;
 #endif
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, PrintInfo&);
 };
 
index 4fdb1ed..e1a904a 100644 (file)
@@ -58,7 +58,7 @@ public:
         Handle();
         ~Handle();
 
-        void encode(CoreIPC::ArgumentEncoder*) const;
+        void encode(CoreIPC::ArgumentEncoder&) const;
         static bool decode(CoreIPC::ArgumentDecoder*, Handle&);
 
     private:
@@ -78,7 +78,7 @@ public:
         Handle& operator[](size_t i);
         const Handle& operator[](size_t i) const;
         size_t size() const;
-        void encode(CoreIPC::ArgumentEncoder*) const;
+        void encode(CoreIPC::ArgumentEncoder&) const;
         static bool decode(CoreIPC::ArgumentDecoder*, HandleArray&);
        
     private:
@@ -114,7 +114,7 @@ private:
 #if !ENABLE(WEB_PROCESS_SANDBOX)
 inline SandboxExtension::Handle::Handle() { }
 inline SandboxExtension::Handle::~Handle() { }
-inline void SandboxExtension::Handle::encode(CoreIPC::ArgumentEncoder*) const { }
+inline void SandboxExtension::Handle::encode(CoreIPC::ArgumentEncoder&) const { }
 inline bool SandboxExtension::Handle::decode(CoreIPC::ArgumentDecoder*, Handle&) { return true; }
 inline SandboxExtension::HandleArray::HandleArray() { }
 inline SandboxExtension::HandleArray::~HandleArray() { }
@@ -122,7 +122,7 @@ inline void SandboxExtension::HandleArray::allocate(size_t) { }
 inline size_t SandboxExtension::HandleArray::size() const { return 0; }    
 inline const SandboxExtension::Handle& SandboxExtension::HandleArray::operator[](size_t) const { return m_emptyHandle; }
 inline SandboxExtension::Handle& SandboxExtension::HandleArray::operator[](size_t) { return m_emptyHandle; }
-inline void SandboxExtension::HandleArray::encode(CoreIPC::ArgumentEncoder*) const { }
+inline void SandboxExtension::HandleArray::encode(CoreIPC::ArgumentEncoder&) const { }
 inline bool SandboxExtension::HandleArray::decode(CoreIPC::ArgumentDecoder*, HandleArray&) { return true; }
 inline PassRefPtr<SandboxExtension> SandboxExtension::create(const Handle&) { return 0; }
 inline void SandboxExtension::createHandle(const String&, Type, Handle&) { }
index cf9551b..6c742ab 100644 (file)
@@ -35,11 +35,11 @@ using namespace WebCore;
 
 namespace WebKit {
 
-void SecurityOriginData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SecurityOriginData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(protocol);
-    encoder->encode(host);
-    encoder->encode(port);
+    encoder.encode(protocol);
+    encoder.encode(host);
+    encoder.encode(port);
 }
 
 bool SecurityOriginData::decode(CoreIPC::ArgumentDecoder* decoder, SecurityOriginData& securityOriginData)
index 692a96e..93909bc 100644 (file)
@@ -40,7 +40,7 @@ namespace WebKit {
 typedef GenericCallback<WKArrayRef> ArrayCallback;
 
 struct SecurityOriginData {
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, SecurityOriginData&);
 
     // FIXME <rdar://9018386>: We should be sending more state across the wire than just the protocol,
index b25289a..781ea66 100644 (file)
@@ -64,10 +64,10 @@ bool SessionState::isEmpty() const
     return m_list.isEmpty();
 }
     
-void SessionState::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SessionState::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(m_list);
-    encoder->encode(m_currentIndex);
+    encoder.encode(m_list);
+    encoder.encode(m_currentIndex);
 }
 
 bool SessionState::decode(CoreIPC::ArgumentDecoder* decoder, SessionState& state)
index 8aa1894..19422a1 100644 (file)
@@ -45,7 +45,7 @@ public:
 
     bool isEmpty() const;
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, SessionState&);
 
 private:
index cde3aa1..1fb072f 100644 (file)
@@ -39,11 +39,11 @@ ShareableBitmap::Handle::Handle()
 {
 }
 
-void ShareableBitmap::Handle::encode(CoreIPC::ArgumentEncoder* encoder) const
+void ShareableBitmap::Handle::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(m_handle);
-    encoder->encode(m_size);
-    encoder->encode(m_flags);
+    encoder.encode(m_handle);
+    encoder.encode(m_size);
+    encoder.encode(m_flags);
 }
 
 bool ShareableBitmap::Handle::decode(CoreIPC::ArgumentDecoder* decoder, Handle& handle)
index 2af228e..8dbf1dd 100644 (file)
@@ -72,7 +72,7 @@ public:
 
         bool isNull() const { return m_handle.isNull(); }
 
-        void encode(CoreIPC::ArgumentEncoder*) const;
+        void encode(CoreIPC::ArgumentEncoder&) const;
         static bool decode(CoreIPC::ArgumentDecoder*, Handle&);
 
     private:
index f707698..bf8fa10 100644 (file)
@@ -37,16 +37,16 @@ ShareableSurface::Handle::Handle()
 {
 }
 
-void ShareableSurface::Handle::encode(CoreIPC::ArgumentEncoder* encoder) const
+void ShareableSurface::Handle::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(m_size);
-    encoder->encode(m_flags);
+    encoder.encode(m_size);
+    encoder.encode(m_flags);
 #if USE(GRAPHICS_SURFACE)
-    encoder->encode(m_graphicsSurfaceToken);
+    encoder.encode(m_graphicsSurfaceToken);
     if (m_graphicsSurfaceToken.isValid())
         return;
 #endif
-    encoder->encode(m_bitmapHandle);
+    encoder.encode(m_bitmapHandle);
 }
 
 bool ShareableSurface::Handle::decode(CoreIPC::ArgumentDecoder* decoder, Handle& handle)
index 598dc59..e0e7a39 100644 (file)
@@ -51,7 +51,7 @@ public:
 
         bool isNull() const;
 
-        void encode(CoreIPC::ArgumentEncoder*) const;
+        void encode(CoreIPC::ArgumentEncoder&) const;
         static bool decode(CoreIPC::ArgumentDecoder*, Handle&);
 
 #if USE(GRAPHICS_SURFACE)
index b669307..9941b06 100644 (file)
@@ -36,13 +36,13 @@ SharedWorkerProcessCreationParameters::SharedWorkerProcessCreationParameters()
 {
 }
 
-void SharedWorkerProcessCreationParameters::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SharedWorkerProcessCreationParameters::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(minimumLifetime);
-    encoder->encode(terminationTimeout);
+    encoder.encode(minimumLifetime);
+    encoder.encode(terminationTimeout);
 
 #if PLATFORM(MAC)
-    encoder->encode(parentProcessName);
+    encoder.encode(parentProcessName);
 #endif
 }
 
index 3fef975..ccd257e 100644 (file)
@@ -44,7 +44,7 @@ namespace WebKit {
 struct SharedWorkerProcessCreationParameters {
     SharedWorkerProcessCreationParameters();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, SharedWorkerProcessCreationParameters&);
 
     double minimumLifetime;
index 59fef7a..64db17a 100644 (file)
 
 namespace WebKit {
 
-void StatisticsData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void StatisticsData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(statisticsNumbers);
-    encoder->encode(javaScriptProtectedObjectTypeCounts);
-    encoder->encode(javaScriptObjectTypeCounts);
-    encoder->encode(webCoreCacheStatistics);
+    encoder.encode(statisticsNumbers);
+    encoder.encode(javaScriptProtectedObjectTypeCounts);
+    encoder.encode(javaScriptObjectTypeCounts);
+    encoder.encode(webCoreCacheStatistics);
 }
 
 bool StatisticsData::decode(CoreIPC::ArgumentDecoder* decoder, StatisticsData& statisticsData)
index 2c82c28..7315ed2 100644 (file)
@@ -36,7 +36,7 @@
 namespace WebKit {
 
 struct StatisticsData {
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, StatisticsData&);
     
     HashMap<String, uint64_t> statisticsNumbers;
index ce2da4a..70fea96 100644 (file)
@@ -45,9 +45,9 @@ public:
         m_stringPairVector.swap(stringPairVector);
     }
 
-    void encode(CoreIPC::ArgumentEncoder* encoder) const
+    void encode(CoreIPC::ArgumentEncoder& encoder) const
     {
-        encoder->encode(m_stringPairVector);
+        encoder.encode(m_stringPairVector);
     }
 
     static bool decode(CoreIPC::ArgumentDecoder* decoder, StringPairVector& stringPairVector)
index 1533379..fdac217 100644 (file)
 
 namespace WebKit {
 
-void SurfaceUpdateInfo::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SurfaceUpdateInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(updateRect);
-    encoder->encode(scaleFactor);
-    encoder->encode(surfaceHandle);
-    encoder->encode(surfaceOffset);
+    encoder.encode(updateRect);
+    encoder.encode(scaleFactor);
+    encoder.encode(surfaceHandle);
+    encoder.encode(surfaceOffset);
 }
 
 bool SurfaceUpdateInfo::decode(CoreIPC::ArgumentDecoder* decoder, SurfaceUpdateInfo& result)
index 01d60d2..3cd9ce3 100644 (file)
@@ -37,7 +37,7 @@ class SurfaceUpdateInfo {
 public:
     SurfaceUpdateInfo() { }
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, SurfaceUpdateInfo&);
 
     // The rect to be updated.
index 5bb1895..f75ad1b 100644 (file)
 
 namespace WebKit {
 
-void UpdateInfo::encode(CoreIPC::ArgumentEncoder* encoder) const
+void UpdateInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(viewSize);
-    encoder->encode(deviceScaleFactor);
-    encoder->encode(scrollRect);
-    encoder->encode(scrollOffset);
-    encoder->encode(updateRectBounds);
-    encoder->encode(updateRects);
-    encoder->encode(updateScaleFactor);
-    encoder->encode(bitmapHandle);
-    encoder->encode(bitmapOffset);
+    encoder.encode(viewSize);
+    encoder.encode(deviceScaleFactor);
+    encoder.encode(scrollRect);
+    encoder.encode(scrollOffset);
+    encoder.encode(updateRectBounds);
+    encoder.encode(updateRects);
+    encoder.encode(updateScaleFactor);
+    encoder.encode(bitmapHandle);
+    encoder.encode(bitmapOffset);
 }
 
 bool UpdateInfo::decode(CoreIPC::ArgumentDecoder* decoder, UpdateInfo& result)
index e3a8de2..c11aa35 100644 (file)
@@ -43,7 +43,7 @@ class UpdateInfo {
 public:
     UpdateInfo() { }
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, UpdateInfo&);
 
     // The size of the web view.
index 9d8ac5c..9eff2c9 100644 (file)
@@ -67,119 +67,119 @@ namespace WebKit {
 template<typename Owner>
 class UserMessageEncoder {
 public:
-    bool baseEncode(CoreIPC::ArgumentEncoder* encoder, APIObject::Type& type) const 
+    bool baseEncode(CoreIPC::ArgumentEncoder& encoder, APIObject::Type& type) const
     {
         if (!m_root) {
-            encoder->encode(static_cast<uint32_t>(APIObject::TypeNull));
+            encoder.encode(static_cast<uint32_t>(APIObject::TypeNull));
             return true;
         }
 
         type = m_root->type();
-        encoder->encode(static_cast<uint32_t>(type));
+        encoder.encode(static_cast<uint32_t>(type));
 
         switch (type) {
         case APIObject::TypeArray: {
             ImmutableArray* array = static_cast<ImmutableArray*>(m_root);
-            encoder->encode(static_cast<uint64_t>(array->size()));
+            encoder.encode(static_cast<uint64_t>(array->size()));
             for (size_t i = 0; i < array->size(); ++i)
-                encoder->encode(Owner(array->at(i)));
+                encoder.encode(Owner(array->at(i)));
             return true;
         }
         case APIObject::TypeDictionary: {
             ImmutableDictionary* dictionary = static_cast<ImmutableDictionary*>(m_root);
             const ImmutableDictionary::MapType& map = dictionary->map();
-            encoder->encode(static_cast<uint64_t>(map.size()));
+            encoder.encode(static_cast<uint64_t>(map.size()));
 
             ImmutableDictionary::MapType::const_iterator it = map.begin();
             ImmutableDictionary::MapType::const_iterator end = map.end();
             for (; it != end; ++it) {
-                encoder->encode(it->key);
-                encoder->encode(Owner(it->value.get()));
+                encoder.encode(it->key);
+                encoder.encode(Owner(it->value.get()));
             }
             return true;
         }
         case APIObject::TypeString: {
             WebString* string = static_cast<WebString*>(m_root);
-            encoder->encode(string->string());
+            encoder.encode(string->string());
             return true;
         }
         case APIObject::TypeSerializedScriptValue: {
             WebSerializedScriptValue* scriptValue = static_cast<WebSerializedScriptValue*>(m_root);
-            encoder->encodeVariableLengthByteArray(scriptValue->dataReference());
+            encoder.encodeVariableLengthByteArray(scriptValue->dataReference());
             return true;
         }
         case APIObject::TypeBoolean: {
             WebBoolean* booleanObject = static_cast<WebBoolean*>(m_root);
-            encoder->encode(booleanObject->value());
+            encoder.encode(booleanObject->value());
             return true;
         }
         case APIObject::TypeDouble: {
             WebDouble* doubleObject = static_cast<WebDouble*>(m_root);
-            encoder->encode(doubleObject->value());
+            encoder.encode(doubleObject->value());
             return true;
         }
         case APIObject::TypeUInt64: {
             WebUInt64* uint64Object = static_cast<WebUInt64*>(m_root);
-            encoder->encode(uint64Object->value());
+            encoder.encode(uint64Object->value());
             return true;
         }
         case APIObject::TypePoint: {
             WebPoint* pointObject = static_cast<WebPoint*>(m_root);
-            encoder->encode(pointObject->point().x);
-            encoder->encode(pointObject->point().y);
+            encoder.encode(pointObject->point().x);
+            encoder.encode(pointObject->point().y);
             return true;
         }
         case APIObject::TypeSize: {
             WebSize* sizeObject = static_cast<WebSize*>(m_root);
-            encoder->encode(sizeObject->size().width);
-            encoder->encode(sizeObject->size().height);
+            encoder.encode(sizeObject->size().width);
+            encoder.encode(sizeObject->size().height);
             return true;
         }
         case APIObject::TypeRect: {
             WebRect* rectObject = static_cast<WebRect*>(m_root);
-            encoder->encode(rectObject->rect().origin.x);
-            encoder->encode(rectObject->rect().origin.y);
-            encoder->encode(rectObject->rect().size.width);
-            encoder->encode(rectObject->rect().size.height);
+            encoder.encode(rectObject->rect().origin.x);
+            encoder.encode(rectObject->rect().origin.y);
+            encoder.encode(rectObject->rect().size.width);
+            encoder.encode(rectObject->rect().size.height);
             return true;
         }
         case APIObject::TypeRenderLayer: {
             WebRenderLayer* renderLayer = static_cast<WebRenderLayer*>(m_root);
-            encoder->encode(Owner(renderLayer->renderer()));
-            encoder->encode(renderLayer->isReflection());
-            encoder->encode(renderLayer->isClipping());
-            encoder->encode(renderLayer->isClipped());
-            encoder->encode(static_cast<uint32_t>(renderLayer->compositingLayerType()));
-            encoder->encode(renderLayer->absoluteBoundingBox());
-            encoder->encode(Owner(renderLayer->negativeZOrderList()));
-            encoder->encode(Owner(renderLayer->normalFlowList()));
-            encoder->encode(Owner(renderLayer->positiveZOrderList()));
+            encoder.encode(Owner(renderLayer->renderer()));
+            encoder.encode(renderLayer->isReflection());
+            encoder.encode(renderLayer->isClipping());
+            encoder.encode(renderLayer->isClipped());
+            encoder.encode(static_cast<uint32_t>(renderLayer->compositingLayerType()));
+            encoder.encode(renderLayer->absoluteBoundingBox());
+            encoder.encode(Owner(renderLayer->negativeZOrderList()));
+            encoder.encode(Owner(renderLayer->normalFlowList()));
+            encoder.encode(Owner(renderLayer->positiveZOrderList()));
             return true;
         }
         case APIObject::TypeRenderObject: {
             WebRenderObject* renderObject = static_cast<WebRenderObject*>(m_root);
-            encoder->encode(renderObject->name());
-            encoder->encode(renderObject->elementTagName());
-            encoder->encode(renderObject->elementID());
-            encoder->encode(Owner(renderObject->elementClassNames()));
-            encoder->encode(renderObject->absolutePosition());
-            encoder->encode(renderObject->frameRect());
-            encoder->encode(Owner(renderObject->children().get()));
+            encoder.encode(renderObject->name());
+            encoder.encode(renderObject->elementTagName());
+            encoder.encode(renderObject->elementID());
+            encoder.encode(Owner(renderObject->elementClassNames()));
+            encoder.encode(renderObject->absolutePosition());
+            encoder.encode(renderObject->frameRect());
+            encoder.encode(Owner(renderObject->children().get()));
             return true;
         }
         case APIObject::TypeURL: {
             WebURL* urlObject = static_cast<WebURL*>(m_root);
-            encoder->encode(urlObject->string());
+            encoder.encode(urlObject->string());
             return true;
         }
         case APIObject::TypeURLRequest: {
             WebURLRequest* urlRequestObject = static_cast<WebURLRequest*>(m_root);
-            encoder->encode(urlRequestObject->resourceRequest());
+            encoder.encode(urlRequestObject->resourceRequest());
             return true;
         }
         case APIObject::TypeUserContentURLPattern: {
             WebUserContentURLPattern* urlPattern = static_cast<WebUserContentURLPattern*>(m_root);
-            encoder->encode(urlPattern->patternString());
+            encoder.encode(urlPattern->patternString());
             return true;
         }
         case APIObject::TypeImage: {
@@ -189,24 +189,24 @@ public:
             ASSERT(!image->bitmap() || image->bitmap()->isBackedBySharedMemory());            
             if (!image->bitmap() || !image->bitmap()->isBackedBySharedMemory() || !image->bitmap()->createHandle(handle)) {
                 // Initial false indicates no allocated bitmap or is not shareable.
-                encoder->encode(false);
+                encoder.encode(false);
                 return true;
             }
 
             // Initial true indicates a bitmap was allocated and is shareable.
-            encoder->encode(true);
+            encoder.encode(true);
 
-            encoder->encode(handle);
+            encoder.encode(handle);
             return true;
         }
         case APIObject::TypeData: {
             WebData* data = static_cast<WebData*>(m_root);
-            encoder->encodeVariableLengthByteArray(data->dataReference());
+            encoder.encodeVariableLengthByteArray(data->dataReference());
             return true;
         }
         case APIObject::TypeCertificateInfo: {
             WebCertificateInfo* certificateInfo = static_cast<WebCertificateInfo*>(m_root);
-            encoder->encode(certificateInfo->platformCertificateInfo());
+            encoder.encode(certificateInfo->platformCertificateInfo());
             return true;
         }
         default:
index 30a5e59..32af01e 100644 (file)
@@ -45,12 +45,12 @@ WebBatteryStatus::~WebBatteryStatus()
 {
 }
 
-void WebBatteryStatus::Data::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebBatteryStatus::Data::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(isCharging);
-    encoder->encode(chargingTime);
-    encoder->encode(dischargingTime);
-    encoder->encode(level);
+    encoder.encode(isCharging);
+    encoder.encode(chargingTime);
+    encoder.encode(dischargingTime);
+    encoder.encode(level);
 }
 
 bool WebBatteryStatus::Data::decode(CoreIPC::ArgumentDecoder* decoder, Data& result)
index fd1d793..6b630f7 100644 (file)
@@ -40,7 +40,7 @@ public:
     static const Type APIType = TypeBatteryStatus;
 
     struct Data {
-        void encode(CoreIPC::ArgumentEncoder*) const;
+        void encode(CoreIPC::ArgumentEncoder&) const;
         static bool decode(CoreIPC::ArgumentDecoder*, Data&);
 
         bool isCharging;
index 901ce9c..9159f02 100644 (file)
@@ -104,14 +104,14 @@ void WebContextMenuItemData::setUserData(APIObject* userData)
     m_userData = userData;
 }
     
-void WebContextMenuItemData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebContextMenuItemData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encodeEnum(m_type);
-    encoder->encodeEnum(m_action);
-    encoder->encode(m_title);
-    encoder->encode(m_checked);
-    encoder->encode(m_enabled);
-    encoder->encode(m_submenu);
+    encoder.encodeEnum(m_type);
+    encoder.encodeEnum(m_action);
+    encoder.encode(m_title);
+    encoder.encode(m_checked);
+    encoder.encode(m_enabled);
+    encoder.encode(m_submenu);
 }
 
 bool WebContextMenuItemData::decode(CoreIPC::ArgumentDecoder* decoder, WebContextMenuItemData& item)
index 106bdf0..9212e28 100644 (file)
@@ -63,7 +63,7 @@ public:
     APIObject* userData() const;
     void setUserData(APIObject*);
     
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebContextMenuItemData&);
 
 private:
index 70bffa2..d86cf83 100644 (file)
@@ -46,11 +46,11 @@ WebEvent::WebEvent(Type type, Modifiers modifiers, double timestamp)
 {
 }
 
-void WebEvent::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebEvent::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(m_type);
-    encoder->encode(m_modifiers);
-    encoder->encode(m_timestamp);
+    encoder.encode(m_type);
+    encoder.encode(m_modifiers);
+    encoder.encode(m_timestamp);
 }
 
 bool WebEvent::decode(CoreIPC::ArgumentDecoder* decoder, WebEvent& result)
index 8111d51..9681dc1 100644 (file)
@@ -103,7 +103,7 @@ protected:
 
     WebEvent(Type, Modifiers, double timestamp);
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebEvent&);
 
 private:
@@ -140,7 +140,7 @@ public:
     bool didActivateWebView() const { return m_didActivateWebView; }
 #endif
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebMouseEvent&);
 
 private:
@@ -199,7 +199,7 @@ public:
     const WebCore::FloatSize& unacceleratedScrollingDelta() const { return m_unacceleratedScrollingDelta; }
 #endif
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebWheelEvent&);
 
 private:
@@ -237,7 +237,7 @@ public:
     bool isKeypad() const { return m_isKeypad; }
     bool isSystemKey() const { return m_isSystemKey; }
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebKeyboardEvent&);
 
     static bool isKeyboardEventType(Type);
@@ -268,7 +268,7 @@ public:
     const WebCore::IntSize area() const { return m_area; }
     const WebCore::FloatPoint delta() const { return m_delta; }
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebGestureEvent&);
 
 private:
@@ -313,7 +313,7 @@ public:
 
     void setState(TouchPointState state) { m_state = state; }
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebPlatformTouchPoint&);
 
 private:
@@ -336,7 +336,7 @@ public:
 
     const Vector<WebPlatformTouchPoint>& touchPoints() const { return m_touchPoints; }
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebTouchEvent&);
   
 private:
index 77d524c..fead00e 100644 (file)
@@ -51,9 +51,9 @@ WebGeolocationPosition::~WebGeolocationPosition()
 {
 }
 
-void WebGeolocationPosition::Data::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebGeolocationPosition::Data::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    CoreIPC::SimpleArgumentCoder<WebGeolocationPosition::Data>::encode(encoder, *this);
+    CoreIPC::SimpleArgumentCoder<WebGeolocationPosition::Data>::encode(&encoder, *this);
 }
 
 bool WebGeolocationPosition::Data::decode(CoreIPC::ArgumentDecoder* decoder, Data& data)
index a87bb06..52ebed9 100644 (file)
@@ -38,7 +38,7 @@ public:
     static const Type APIType = TypeGeolocationPosition;
 
     struct Data {
-        void encode(CoreIPC::ArgumentEncoder*) const;
+        void encode(CoreIPC::ArgumentEncoder&) const;
         static bool decode(CoreIPC::ArgumentDecoder*, Data&);
 
         double timestamp;
index d491a57..e3178cd 100644 (file)
@@ -53,14 +53,14 @@ WebGestureEvent::WebGestureEvent(Type type, const IntPoint& position, const IntP
     ASSERT(isGestureEventType(type));
 }
 
-void WebGestureEvent::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebGestureEvent::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     WebEvent::encode(encoder);
 
-    encoder->encode(m_position);
-    encoder->encode(m_globalPosition);
-    encoder->encode(m_area);
-    encoder->encode(m_delta);
+    encoder.encode(m_position);
+    encoder.encode(m_globalPosition);
+    encoder.encode(m_area);
+    encoder.encode(m_delta);
 }
 
 bool WebGestureEvent::decode(CoreIPC::ArgumentDecoder* decoder, WebGestureEvent& t)
index 799ed52..f81f11d 100644 (file)
@@ -34,16 +34,16 @@ PassRefPtr<WebHitTestResult> WebHitTestResult::create(const WebHitTestResult::Da
     return adoptRef(new WebHitTestResult(hitTestResultData));
 }
 
-void WebHitTestResult::Data::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebHitTestResult::Data::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(absoluteImageURL);
-    encoder->encode(absolutePDFURL);
-    encoder->encode(absoluteLinkURL);
-    encoder->encode(absoluteMediaURL);
-    encoder->encode(linkLabel);
-    encoder->encode(linkTitle);
-    encoder->encode(isContentEditable);
-    encoder->encode(elementBoundingBox);
+    encoder.encode(absoluteImageURL);
+    encoder.encode(absolutePDFURL);
+    encoder.encode(absoluteLinkURL);
+    encoder.encode(absoluteMediaURL);
+    encoder.encode(linkLabel);
+    encoder.encode(linkTitle);
+    encoder.encode(isContentEditable);
+    encoder.encode(elementBoundingBox);
 }
 
 bool WebHitTestResult::Data::decode(CoreIPC::ArgumentDecoder* decoder, WebHitTestResult::Data& hitTestResultData)
index e53a5c7..739050e 100644 (file)
@@ -86,7 +86,7 @@ public:
         {
         }
 
-        void encode(CoreIPC::ArgumentEncoder*) const;
+        void encode(CoreIPC::ArgumentEncoder&) const;
         static bool decode(CoreIPC::ArgumentDecoder*, WebHitTestResult::Data&);
     };
 
index 119b864..d81c863 100644 (file)
@@ -45,19 +45,19 @@ WebKeyboardEvent::WebKeyboardEvent(Type type, const String& text, const String&
     ASSERT(isKeyboardEventType(type));
 }
 
-void WebKeyboardEvent::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebKeyboardEvent::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     WebEvent::encode(encoder);
 
-    encoder->encode(m_text);
-    encoder->encode(m_unmodifiedText);
-    encoder->encode(m_keyIdentifier);
-    encoder->encode(m_windowsVirtualKeyCode);
-    encoder->encode(m_nativeVirtualKeyCode);
-    encoder->encode(m_macCharCode);
-    encoder->encode(m_isAutoRepeat);
-    encoder->encode(m_isKeypad);
-    encoder->encode(m_isSystemKey);
+    encoder.encode(m_text);
+    encoder.encode(m_unmodifiedText);
+    encoder.encode(m_keyIdentifier);
+    encoder.encode(m_windowsVirtualKeyCode);
+    encoder.encode(m_nativeVirtualKeyCode);
+    encoder.encode(m_macCharCode);
+    encoder.encode(m_isAutoRepeat);
+    encoder.encode(m_isKeypad);
+    encoder.encode(m_isSystemKey);
 }
 
 bool WebKeyboardEvent::decode(CoreIPC::ArgumentDecoder* decoder, WebKeyboardEvent& result)
index e083640..f82ae1d 100644 (file)
@@ -30,9 +30,9 @@ using namespace CoreIPC;
 
 namespace WebKit {
 
-void WebLayerInfo::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebLayerInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    SimpleArgumentCoder<WebLayerInfo>::encode(encoder, *this);
+    SimpleArgumentCoder<WebLayerInfo>::encode(&encoder, *this);
 }
 
 bool WebLayerInfo::decode(CoreIPC::ArgumentDecoder* decoder, WebLayerInfo& info)
index df44778..c9bdac5 100644 (file)
@@ -71,7 +71,7 @@ struct WebLayerInfo {
         unsigned int flags;
     };
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebLayerInfo&);
 };
 
index 32e6ac1..473de40 100644 (file)
@@ -78,20 +78,20 @@ WebMouseEvent::WebMouseEvent(Type type, Button button, const IntPoint& position,
 }
 #endif
 
-void WebMouseEvent::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebMouseEvent::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     WebEvent::encode(encoder);
 
-    encoder->encode(m_button);
-    encoder->encode(m_position);
-    encoder->encode(m_globalPosition);
-    encoder->encode(m_deltaX);
-    encoder->encode(m_deltaY);
-    encoder->encode(m_deltaZ);
-    encoder->encode(m_clickCount);
+    encoder.encode(m_button);
+    encoder.encode(m_position);
+    encoder.encode(m_globalPosition);
+    encoder.encode(m_deltaX);
+    encoder.encode(m_deltaY);
+    encoder.encode(m_deltaZ);
+    encoder.encode(m_clickCount);
 
 #if PLATFORM(WIN)
-    encoder->encode(m_didActivateWebView);
+    encoder.encode(m_didActivateWebView);
 #endif
 }
 
index 947d090..9cd10f7 100644 (file)
 namespace WebKit {
 
 struct WebNavigationDataStore {
-    void encode(CoreIPC::ArgumentEncoder* encoder) const
+    void encode(CoreIPC::ArgumentEncoder& encoder) const
     {
-        encoder->encode(url);
-        encoder->encode(title);
-        encoder->encode(originalRequest);
+        encoder.encode(url);
+        encoder.encode(title);
+        encoder.encode(originalRequest);
     }
 
     static bool decode(CoreIPC::ArgumentDecoder* decoder, WebNavigationDataStore& store)
index a285234..9b133f8 100644 (file)
@@ -43,10 +43,10 @@ WebNetworkInfo::~WebNetworkInfo()
 {
 }
 
-void WebNetworkInfo::Data::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebNetworkInfo::Data::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(bandwidth);
-    encoder->encode(metered);
+    encoder.encode(bandwidth);
+    encoder.encode(metered);
 }
 
 bool WebNetworkInfo::Data::decode(CoreIPC::ArgumentDecoder* decoder, Data& result)
index 4c16173..b31bbe3 100644 (file)
@@ -40,7 +40,7 @@ public:
     static const Type APIType = TypeNetworkInfo;
 
     struct Data {
-        void encode(CoreIPC::ArgumentEncoder*) const;
+        void encode(CoreIPC::ArgumentEncoder&) const;
         static bool decode(CoreIPC::ArgumentDecoder*, Data&);
 
         double bandwidth;
index 27d5543..17debe8 100644 (file)
 
 namespace WebKit {
 
-void WebPageCreationParameters::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebPageCreationParameters::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(viewSize);
-    encoder->encode(isActive);
-    encoder->encode(isFocused);
-    encoder->encode(isVisible);
-    encoder->encode(isInWindow);
+    encoder.encode(viewSize);
+    encoder.encode(isActive);
+    encoder.encode(isFocused);
+    encoder.encode(isVisible);
+    encoder.encode(isInWindow);
 
-    encoder->encode(store);
-    encoder->encodeEnum(drawingAreaType);
-    encoder->encode(pageGroupData);
-    encoder->encode(drawsBackground);
-    encoder->encode(drawsTransparentBackground);
-    encoder->encode(areMemoryCacheClientCallsEnabled);
-    encoder->encode(useFixedLayout);
-    encoder->encode(fixedLayoutSize);
-    encoder->encodeEnum(paginationMode);
-    encoder->encode(paginationBehavesLikeColumns);
-    encoder->encode(pageLength);
-    encoder->encode(gapBetweenPages);
-    encoder->encode(userAgent);
-    encoder->encode(sessionState);
-    encoder->encode(highestUsedBackForwardItemID);
-    encoder->encode(canRunBeforeUnloadConfirmPanel);
-    encoder->encode(canRunModal);
-    encoder->encode(deviceScaleFactor);
-    encoder->encode(mediaVolume);
+    encoder.encode(store);
+    encoder.encodeEnum(drawingAreaType);
+    encoder.encode(pageGroupData);
+    encoder.encode(drawsBackground);
+    encoder.encode(drawsTransparentBackground);
+    encoder.encode(areMemoryCacheClientCallsEnabled);
+    encoder.encode(useFixedLayout);
+    encoder.encode(fixedLayoutSize);
+    encoder.encodeEnum(paginationMode);
+    encoder.encode(paginationBehavesLikeColumns);
+    encoder.encode(pageLength);
+    encoder.encode(gapBetweenPages);
+    encoder.encode(userAgent);
+    encoder.encode(sessionState);
+    encoder.encode(highestUsedBackForwardItemID);
+    encoder.encode(canRunBeforeUnloadConfirmPanel);
+    encoder.encode(canRunModal);
+    encoder.encode(deviceScaleFactor);
+    encoder.encode(mediaVolume);
 
 #if PLATFORM(MAC)
-    encoder->encode(isSmartInsertDeleteEnabled);
-    encoder->encodeEnum(layerHostingMode);
-    encoder->encode(colorSpace);
+    encoder.encode(isSmartInsertDeleteEnabled);
+    encoder.encodeEnum(layerHostingMode);
+    encoder.encode(colorSpace);
 #endif
 
 #if PLATFORM(WIN)
-    encoder->encode(reinterpret_cast<uint64_t>(nativeWindow));
+    encoder.encode(reinterpret_cast<uint64_t>(nativeWindow));
 #endif
 }
 
index 08c3bcd..214c04c 100644 (file)
@@ -45,7 +45,7 @@ namespace CoreIPC {
 namespace WebKit {
 
 struct WebPageCreationParameters {
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebPageCreationParameters&);
 
     WebCore::IntSize viewSize;
index c227d85..c5d6034 100644 (file)
 
 namespace WebKit {
 
-void WebPageGroupData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebPageGroupData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(identifer);
-    encoder->encode(pageGroupID);
-    encoder->encode(visibleToInjectedBundle);
-    encoder->encode(visibleToHistoryClient);
-    encoder->encode(userStyleSheets);
-    encoder->encode(userScripts);
+    encoder.encode(identifer);
+    encoder.encode(pageGroupID);
+    encoder.encode(visibleToInjectedBundle);
+    encoder.encode(visibleToHistoryClient);
+    encoder.encode(userStyleSheets);
+    encoder.encode(userScripts);
 }
 
 bool WebPageGroupData::decode(CoreIPC::ArgumentDecoder* decoder, WebPageGroupData& data)
index b9aa0f8..4dbfd2c 100644 (file)
@@ -39,7 +39,7 @@ class ArgumentEncoder;
 namespace WebKit {
 
 struct WebPageGroupData {
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebPageGroupData&);
 
     String identifer;
index 39026e0..9ab926c 100644 (file)
@@ -57,15 +57,15 @@ WebPlatformTouchPoint::WebPlatformTouchPoint(unsigned id, TouchPointState state,
 {
 }
 
-void WebPlatformTouchPoint::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebPlatformTouchPoint::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(m_id);
-    encoder->encode(m_state);
-    encoder->encode(m_screenPosition);
-    encoder->encode(m_position);
-    encoder->encode(m_radius);
-    encoder->encode(m_rotationAngle);
-    encoder->encode(m_force);
+    encoder.encode(m_id);
+    encoder.encode(m_state);
+    encoder.encode(m_screenPosition);
+    encoder.encode(m_position);
+    encoder.encode(m_radius);
+    encoder.encode(m_rotationAngle);
+    encoder.encode(m_force);
 }
 
 bool WebPlatformTouchPoint::decode(CoreIPC::ArgumentDecoder* decoder, WebPlatformTouchPoint& result)
index 07a29e4..66b7856 100644 (file)
@@ -66,17 +66,17 @@ WebPopupItem::WebPopupItem(Type type, const String& text, TextDirection textDire
 {
 }
 
-void WebPopupItem::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebPopupItem::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encodeEnum(m_type);
-    encoder->encode(m_text);
-    encoder->encodeEnum(m_textDirection);
-    encoder->encode(m_hasTextDirectionOverride);
-    encoder->encode(m_toolTip);
-    encoder->encode(m_accessibilityText);
-    encoder->encode(m_isEnabled);
-    encoder->encode(m_isLabel);
-    encoder->encode(m_isSelected);
+    encoder.encodeEnum(m_type);
+    encoder.encode(m_text);
+    encoder.encodeEnum(m_textDirection);
+    encoder.encode(m_hasTextDirectionOverride);
+    encoder.encode(m_toolTip);
+    encoder.encode(m_accessibilityText);
+    encoder.encode(m_isEnabled);
+    encoder.encode(m_isLabel);
+    encoder.encode(m_isSelected);
 }
 
 bool WebPopupItem::decode(CoreIPC::ArgumentDecoder* decoder, WebPopupItem& item)
index d8584be..6f8ecb1 100644 (file)
@@ -46,7 +46,7 @@ struct WebPopupItem {
     WebPopupItem(Type);
     WebPopupItem(Type, const String& text, WebCore::TextDirection, bool hasTextDirectionOverride, const String& toolTip, const String& accessibilityText, bool isEnabled, bool isLabel, bool isSelected);
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebPopupItem&);
 
     Type m_type;
index 740a971..a4ff56d 100644 (file)
@@ -59,13 +59,13 @@ WebPreferencesStore::WebPreferencesStore()
 {
 }
 
-void WebPreferencesStore::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebPreferencesStore::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(m_stringValues);
-    encoder->encode(m_boolValues);
-    encoder->encode(m_uint32Values);
-    encoder->encode(m_doubleValues);
-    encoder->encode(m_floatValues);
+    encoder.encode(m_stringValues);
+    encoder.encode(m_boolValues);
+    encoder.encode(m_uint32Values);
+    encoder.encode(m_doubleValues);
+    encoder.encode(m_floatValues);
 }
 
 bool WebPreferencesStore::decode(CoreIPC::ArgumentDecoder* decoder, WebPreferencesStore& result)
index 7bbcae0..dc073de 100644 (file)
@@ -233,7 +233,7 @@ FOR_EACH_WEBKIT_PREFERENCE(DECLARE_KEY_GETTERS)
 struct WebPreferencesStore {
     WebPreferencesStore();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebPreferencesStore&);
 
     // NOTE: The getters in this class have non-standard names to aid in the use of the preference macros.
index c3fcee6..1436caa 100644 (file)
@@ -52,69 +52,69 @@ WebProcessCreationParameters::WebProcessCreationParameters()
 {
 }
 
-void WebProcessCreationParameters::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebProcessCreationParameters::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(injectedBundlePath);
-    encoder->encode(injectedBundlePathExtensionHandle);
-    encoder->encode(applicationCacheDirectory);
-    encoder->encode(applicationCacheDirectoryExtensionHandle);
-    encoder->encode(databaseDirectory);
-    encoder->encode(databaseDirectoryExtensionHandle);
-    encoder->encode(localStorageDirectory);
-    encoder->encode(localStorageDirectoryExtensionHandle);
-    encoder->encode(diskCacheDirectory);
-    encoder->encode(diskCacheDirectoryExtensionHandle);
-    encoder->encode(cookieStorageDirectory);
-    encoder->encode(cookieStorageDirectoryExtensionHandle);
-    encoder->encode(urlSchemesRegistererdAsEmptyDocument);
-    encoder->encode(urlSchemesRegisteredAsSecure);
-    encoder->encode(urlSchemesForWhichDomainRelaxationIsForbidden);
-    encoder->encode(urlSchemesRegisteredAsLocal);
-    encoder->encode(urlSchemesRegisteredAsNoAccess);
-    encoder->encode(urlSchemesRegisteredAsDisplayIsolated);
-    encoder->encode(urlSchemesRegisteredAsCORSEnabled);
-    encoder->encodeEnum(cacheModel);
-    encoder->encode(shouldTrackVisitedLinks);
-    encoder->encode(shouldAlwaysUseComplexTextCodePath);
-    encoder->encode(shouldUseFontSmoothing);
-    encoder->encode(iconDatabaseEnabled);
-    encoder->encode(terminationTimeout);
-    encoder->encode(languages);
-    encoder->encode(textCheckerState);
-    encoder->encode(fullKeyboardAccessEnabled);
-    encoder->encode(defaultRequestTimeoutInterval);
+    encoder.encode(injectedBundlePath);
+    encoder.encode(injectedBundlePathExtensionHandle);
+    encoder.encode(applicationCacheDirectory);
+    encoder.encode(applicationCacheDirectoryExtensionHandle);
+    encoder.encode(databaseDirectory);
+    encoder.encode(databaseDirectoryExtensionHandle);
+    encoder.encode(localStorageDirectory);
+    encoder.encode(localStorageDirectoryExtensionHandle);
+    encoder.encode(diskCacheDirectory);
+    encoder.encode(diskCacheDirectoryExtensionHandle);
+    encoder.encode(cookieStorageDirectory);
+    encoder.encode(cookieStorageDirectoryExtensionHandle);
+    encoder.encode(urlSchemesRegistererdAsEmptyDocument);
+    encoder.encode(urlSchemesRegisteredAsSecure);
+    encoder.encode(urlSchemesForWhichDomainRelaxationIsForbidden);
+    encoder.encode(urlSchemesRegisteredAsLocal);
+    encoder.encode(urlSchemesRegisteredAsNoAccess);
+    encoder.encode(urlSchemesRegisteredAsDisplayIsolated);
+    encoder.encode(urlSchemesRegisteredAsCORSEnabled);
+    encoder.encodeEnum(cacheModel);
+    encoder.encode(shouldTrackVisitedLinks);
+    encoder.encode(shouldAlwaysUseComplexTextCodePath);
+    encoder.encode(shouldUseFontSmoothing);
+    encoder.encode(iconDatabaseEnabled);
+    encoder.encode(terminationTimeout);
+    encoder.encode(languages);
+    encoder.encode(textCheckerState);
+    encoder.encode(fullKeyboardAccessEnabled);
+    encoder.encode(defaultRequestTimeoutInterval);
 #if PLATFORM(MAC) || USE(CFURLSTORAGESESSIONS)
-    encoder->encode(uiProcessBundleIdentifier);
+    encoder.encode(uiProcessBundleIdentifier);
 #endif
 #if PLATFORM(MAC)
-    encoder->encode(parentProcessName);
-    encoder->encode(presenterApplicationPid);
-    encoder->encode(nsURLCacheMemoryCapacity);
-    encoder->encode(nsURLCacheDiskCapacity);
-    encoder->encode(acceleratedCompositingPort);
-    encoder->encode(uiProcessBundleResourcePath);
-    encoder->encode(uiProcessBundleResourcePathExtensionHandle);
-    encoder->encode(shouldForceScreenFontSubstitution);
-    encoder->encode(shouldEnableKerningAndLigaturesByDefault);
+    encoder.encode(parentProcessName);
+    encoder.encode(presenterApplicationPid);
+    encoder.encode(nsURLCacheMemoryCapacity);
+    encoder.encode(nsURLCacheDiskCapacity);
+    encoder.encode(acceleratedCompositingPort);
+    encoder.encode(uiProcessBundleResourcePath);
+    encoder.encode(uiProcessBundleResourcePathExtensionHandle);
+    encoder.encode(shouldForceScreenFontSubstitution);
+    encoder.encode(shouldEnableKerningAndLigaturesByDefault);
 #elif PLATFORM(WIN)
-    encoder->encode(shouldPaintNativeControls);
-    encoder->encode(cfURLCacheDiskCapacity);
-    encoder->encode(cfURLCacheMemoryCapacity);
-    encoder->encode(initialHTTPCookieAcceptPolicy);
+    encoder.encode(shouldPaintNativeControls);
+    encoder.encode(cfURLCacheDiskCapacity);
+    encoder.encode(cfURLCacheMemoryCapacity);
+    encoder.encode(initialHTTPCookieAcceptPolicy);
 #if USE(CFURLSTORAGESESSIONS)
     CFDataRef storageSession = serializedDefaultStorageSession.get();
-    encoder->encode(static_cast<bool>(storageSession));
+    encoder.encode(static_cast<bool>(storageSession));
     if (storageSession)
-        CoreIPC::encode(encoder, storageSession);
+        CoreIPC::encode(&encoder, storageSession);
 #endif // USE(CFURLSTORAGESESSIONS)
 #endif
 
 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
-    encoder->encode(notificationPermissions);
+    encoder.encode(notificationPermissions);
 #endif
 
 #if ENABLE(NETWORK_PROCESS)
-    encoder->encode(usesNetworkProcess);
+    encoder.encode(usesNetworkProcess);
 #endif
 }
 
index 1f48803..5a651aa 100644 (file)
@@ -48,7 +48,7 @@ namespace WebKit {
 struct WebProcessCreationParameters {
     WebProcessCreationParameters();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WebProcessCreationParameters&);
 
     String injectedBundlePath;
index 7213c78..be0dec0 100644 (file)
@@ -40,11 +40,11 @@ WebTouchEvent::WebTouchEvent(WebEvent::Type type, Vector<WebPlatformTouchPoint>
     ASSERT(isTouchEventType(type));
 }
 
-void WebTouchEvent::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebTouchEvent::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     WebEvent::encode(encoder);
 
-    encoder->encode(m_touchPoints);
+    encoder.encode(m_touchPoints);
 }
 
 bool WebTouchEvent::decode(CoreIPC::ArgumentDecoder* decoder, WebTouchEvent& result)
index 37c691e..19ae532 100644 (file)
@@ -69,22 +69,22 @@ WebWheelEvent::WebWheelEvent(Type type, const IntPoint& position, const IntPoint
 }
 #endif
 
-void WebWheelEvent::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WebWheelEvent::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     WebEvent::encode(encoder);
 
-    encoder->encode(m_position);
-    encoder->encode(m_globalPosition);
-    encoder->encode(m_delta);
-    encoder->encode(m_wheelTicks);
-    encoder->encode(m_granularity);
-    encoder->encode(m_directionInvertedFromDevice);
+    encoder.encode(m_position);
+    encoder.encode(m_globalPosition);
+    encoder.encode(m_delta);
+    encoder.encode(m_wheelTicks);
+    encoder.encode(m_granularity);
+    encoder.encode(m_directionInvertedFromDevice);
 #if PLATFORM(MAC)
-    encoder->encode(m_phase);
-    encoder->encode(m_momentumPhase);
-    encoder->encode(m_hasPreciseScrollingDeltas);
-    encoder->encode(m_scrollCount);
-    encoder->encode(m_unacceleratedScrollingDelta);
+    encoder.encode(m_phase);
+    encoder.encode(m_momentumPhase);
+    encoder.encode(m_hasPreciseScrollingDeltas);
+    encoder.encode(m_scrollCount);
+    encoder.encode(m_unacceleratedScrollingDelta);
 #endif
 }
 
index 9159976..5d37a3c 100644 (file)
@@ -40,7 +40,7 @@ LayerTreeContext::~LayerTreeContext()
     notImplemented();
 }
 
-void LayerTreeContext::encode(CoreIPC::ArgumentEncoder*) const
+void LayerTreeContext::encode(CoreIPC::ArgumentEncoder&) const
 {
     notImplemented();
 }
index 881d787..32fa970 100644 (file)
@@ -40,9 +40,9 @@ LayerTreeContext::~LayerTreeContext()
 {
 }
 
-void LayerTreeContext::encode(CoreIPC::ArgumentEncoder* encoder) const
+void LayerTreeContext::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(webLayerID);
+    encoder.encode(webLayerID);
 }
 
 bool LayerTreeContext::decode(CoreIPC::ArgumentDecoder* decoder, LayerTreeContext& context)
index e7d918a..38a0d54 100644 (file)
@@ -40,9 +40,9 @@ LayerTreeContext::~LayerTreeContext()
 {
 }
 
-void LayerTreeContext::encode(CoreIPC::ArgumentEncoder* encoder) const
+void LayerTreeContext::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(windowHandle);
+    encoder.encode(windowHandle);
 }
 
 bool LayerTreeContext::decode(CoreIPC::ArgumentDecoder* decoder, LayerTreeContext& context)
index 6c8a8ae..6d3507f 100644 (file)
@@ -38,7 +38,7 @@ namespace CoreIPC {
 namespace WebKit {
 
 struct AttributedString {
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, AttributedString&);
     
     RetainPtr<NSAttributedString> string;
index bc7cfd0..b7a47d7 100644 (file)
 
 namespace WebKit {
 
-void AttributedString::encode(CoreIPC::ArgumentEncoder* encoder) const
+void AttributedString::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(!string);
+    encoder.encode(!string);
     if (!string)
         return;
-    CoreIPC::encode(encoder, string.get());
+    CoreIPC::encode(&encoder, string.get());
 }
 
 bool AttributedString::decode(CoreIPC::ArgumentDecoder* decoder, AttributedString& attributedString)
index cdea86e..afe5b77 100644 (file)
@@ -36,7 +36,7 @@ namespace CoreIPC {
 namespace WebKit {
 
 struct ColorSpaceData {
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, ColorSpaceData&);
 
     RetainPtr<CGColorSpaceRef> cgColorSpace;
index 796c06d..a934a99 100644 (file)
@@ -38,26 +38,26 @@ enum EncodedDataType {
     Data,
 };
 
-void ColorSpaceData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void ColorSpaceData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     if (cgColorSpace) {
         // Try to encode the name.
         if (RetainPtr<CFStringRef> name = adoptCF(CGColorSpaceCopyName(cgColorSpace.get()))) {
-            encoder->encodeEnum(Name);
-            CoreIPC::encode(encoder, name.get());
+            encoder.encodeEnum(Name);
+            CoreIPC::encode(&encoder, name.get());
             return;
         }
 
         // Failing that, just encode the ICC data.
         if (RetainPtr<CFDataRef> profileData = adoptCF(CGColorSpaceCopyICCProfile(cgColorSpace.get()))) {
-            encoder->encodeEnum(Data);
-            CoreIPC::encode(encoder, profileData.get());
+            encoder.encodeEnum(Data);
+            CoreIPC::encode(&encoder, profileData.get());
             return;
         }
     }
 
     // The color space was null or failed to be encoded.
-    encoder->encodeEnum(Null);
+    encoder.encodeEnum(Null);
 }
 
 bool ColorSpaceData::decode(CoreIPC::ArgumentDecoder* decoder, ColorSpaceData& colorSpaceData)
index e4ad1ce..d5957bf 100644 (file)
@@ -40,9 +40,9 @@ LayerTreeContext::~LayerTreeContext()
 {
 }
 
-void LayerTreeContext::encode(CoreIPC::ArgumentEncoder* encoder) const
+void LayerTreeContext::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(contextID);
+    encoder.encode(contextID);
 }
 
 bool LayerTreeContext::decode(CoreIPC::ArgumentDecoder* decoder, LayerTreeContext& result)
index 7ef5b37..93f09f3 100644 (file)
@@ -44,7 +44,7 @@ public:
 
     CFArrayRef certificateChain() const { return m_certificateChain.get(); }
 
-    void encode(CoreIPC::ArgumentEncoder* encoder) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder* decoder, PlatformCertificateInfo& t);
 
 #ifndef NDEBUG
index db2b90e..7f29153 100644 (file)
@@ -49,15 +49,15 @@ PlatformCertificateInfo::PlatformCertificateInfo(CFArrayRef certificateChain)
 {
 }
 
-void PlatformCertificateInfo::encode(CoreIPC::ArgumentEncoder* encoder) const
+void PlatformCertificateInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     if (!m_certificateChain) {
-        encoder->encode(false);
+        encoder.encode(false);
         return;
     }
 
-    encoder->encode(true);
-    CoreIPC::encode(encoder, m_certificateChain.get());
+    encoder.encode(true);
+    CoreIPC::encode(&encoder, m_certificateChain.get());
 }
 
 bool PlatformCertificateInfo::decode(CoreIPC::ArgumentDecoder* decoder, PlatformCertificateInfo& c)
index 109d1eb..b6c2c85 100644 (file)
@@ -53,10 +53,10 @@ SandboxExtension::Handle::~Handle()
     }
 }
 
-void SandboxExtension::Handle::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SandboxExtension::Handle::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     if (!m_sandboxExtension) {
-        encoder->encodeVariableLengthByteArray(CoreIPC::DataReference());
+        encoder.encodeVariableLengthByteArray(CoreIPC::DataReference());
         return;
     }
 
@@ -64,7 +64,7 @@ void SandboxExtension::Handle::encode(CoreIPC::ArgumentEncoder* encoder) const
     const char *serializedFormat = WKSandboxExtensionGetSerializedFormat(m_sandboxExtension, &length);
     ASSERT(serializedFormat);
 
-    encoder->encodeVariableLengthByteArray(CoreIPC::DataReference(reinterpret_cast<const uint8_t*>(serializedFormat), length));
+    encoder.encodeVariableLengthByteArray(CoreIPC::DataReference(reinterpret_cast<const uint8_t*>(serializedFormat), length));
 
     // Encoding will destroy the sandbox extension locally.
     WKSandboxExtensionDestroy(m_sandboxExtension);
@@ -126,11 +126,11 @@ size_t SandboxExtension::HandleArray::size() const
     return m_size;
 }
 
-void SandboxExtension::HandleArray::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SandboxExtension::HandleArray::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(static_cast<uint64_t>(size()));
+    encoder.encode(static_cast<uint64_t>(size()));
     for (size_t i = 0; i < m_size; ++i)
-        encoder->encode(m_data[i]);
+        encoder.encode(m_data[i]);
     
 }
 
index 2fb2f28..4c28d22 100644 (file)
@@ -49,15 +49,15 @@ SecItemRequestData::SecItemRequestData(Type type, CFDictionaryRef query, CFDicti
 {
 }
 
-void SecItemRequestData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SecItemRequestData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encodeEnum(m_type);
+    encoder.encodeEnum(m_type);
 
-    CoreIPC::encode(encoder, m_queryDictionary.get());
+    CoreIPC::encode(&encoder, m_queryDictionary.get());
 
-    encoder->encode(static_cast<bool>(m_attributesToMatch));
+    encoder.encode(static_cast<bool>(m_attributesToMatch));
     if (m_attributesToMatch)
-        CoreIPC::encode(encoder, m_attributesToMatch.get());
+        CoreIPC::encode(&encoder, m_attributesToMatch.get());
 }
 
 bool SecItemRequestData::decode(CoreIPC::ArgumentDecoder* decoder, SecItemRequestData& secItemRequestData)
index 57b18cf..cae2c0a 100644 (file)
@@ -50,7 +50,7 @@ public:
     SecItemRequestData(Type, CFDictionaryRef query);
     SecItemRequestData(Type, CFDictionaryRef query, CFDictionaryRef attributesToMatch);
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, SecItemRequestData&);
 
     Type type() const { return m_type; }
index 0cc8f13..6c4bad1 100644 (file)
@@ -41,12 +41,12 @@ SecItemResponseData::SecItemResponseData(OSStatus resultCode, CFTypeRef resultOb
 {
 }
 
-void SecItemResponseData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SecItemResponseData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(static_cast<int64_t>(m_resultCode));
-    encoder->encode(static_cast<bool>(m_resultObject.get()));
+    encoder.encode(static_cast<int64_t>(m_resultCode));
+    encoder.encode(static_cast<bool>(m_resultObject.get()));
     if (m_resultObject)
-        CoreIPC::encode(encoder, m_resultObject.get());
+        CoreIPC::encode(&encoder, m_resultObject.get());
 }
 
 bool SecItemResponseData::decode(CoreIPC::ArgumentDecoder* decoder, SecItemResponseData& secItemResponseData)
index 5c94336..cf5c9ee 100644 (file)
@@ -40,7 +40,7 @@ public:
     SecItemResponseData();
     SecItemResponseData(OSStatus, CFTypeRef result);
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, SecItemResponseData&);
 
     RetainPtr<CFTypeRef>& resultObject() { return m_resultObject; }
index dcbf994..2ee3e48 100644 (file)
@@ -123,19 +123,19 @@ SecKeychainAttributeList* SecKeychainItemRequestData::attributeList() const
     return m_attrs->m_attributeList.get();
 }
 
-void SecKeychainItemRequestData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SecKeychainItemRequestData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encodeEnum(m_type);
+    encoder.encodeEnum(m_type);
 
-    encoder->encode(static_cast<bool>(m_keychainItem));
+    encoder.encode(static_cast<bool>(m_keychainItem));
     if (m_keychainItem)
-        CoreIPC::encode(encoder, m_keychainItem.get());
+        CoreIPC::encode(&encoder, m_keychainItem.get());
 
-    encoder->encode(static_cast<int32_t>(m_keychainAttributes.size()));
+    encoder.encode(static_cast<int32_t>(m_keychainAttributes.size()));
     for (size_t i = 0, count = m_keychainAttributes.size(); i < count; ++i)
-        CoreIPC::encode(encoder, m_keychainAttributes[i]);
+        CoreIPC::encode(&encoder, m_keychainAttributes[i]);
     
-    encoder->encode(static_cast<uint64_t>(m_itemClass));
+    encoder.encode(static_cast<uint64_t>(m_itemClass));
     m_dataReference.encode(encoder);
 }
 
index 512ea54..181231b 100644 (file)
@@ -58,7 +58,7 @@ public:
     SecKeychainItemRequestData(Type, SecItemClass, SecKeychainAttributeList*, UInt32 length, const void* data);
     ~SecKeychainItemRequestData();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, SecKeychainItemRequestData&);
 
     Type type() const { return m_type; }
index 247f89b..495b301 100644 (file)
@@ -63,21 +63,21 @@ SecKeychainItemResponseData::SecKeychainItemResponseData(OSStatus resultCode)
 {
 }
 
-void SecKeychainItemResponseData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void SecKeychainItemResponseData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(static_cast<int64_t>(m_resultCode));
-    encoder->encode(static_cast<uint32_t>(m_itemClass));
-    encoder->encode(static_cast<uint32_t>(m_attributes.size()));
+    encoder.encode(static_cast<int64_t>(m_resultCode));
+    encoder.encode(static_cast<uint32_t>(m_itemClass));
+    encoder.encode(static_cast<uint32_t>(m_attributes.size()));
     for (size_t i = 0, count = m_attributes.size(); i < count; ++i)
-        CoreIPC::encode(encoder, m_attributes[i]);
+        CoreIPC::encode(&encoder, m_attributes[i]);
 
-    encoder->encode(static_cast<bool>(m_data));
+    encoder.encode(static_cast<bool>(m_data));
     if (m_data)
-        CoreIPC::encode(encoder, m_data.get());
+        CoreIPC::encode(&encoder, m_data.get());
 
-    encoder->encode(static_cast<bool>(m_keychainItem));
+    encoder.encode(static_cast<bool>(m_keychainItem));
     if (m_keychainItem)
-        CoreIPC::encode(encoder, m_keychainItem.get());
+        CoreIPC::encode(&encoder, m_keychainItem.get());
 }
 
 bool SecKeychainItemResponseData::decode(CoreIPC::ArgumentDecoder* decoder, SecKeychainItemResponseData& secKeychainItemResponseData)
index 09b38f0..cddcfc2 100644 (file)
@@ -47,7 +47,7 @@ public:
     SecKeychainItemResponseData(OSStatus, RetainPtr<SecKeychainItemRef>);
     SecKeychainItemResponseData(OSStatus);
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, SecKeychainItemResponseData&);
 
     SecItemClass itemClass() const { return m_itemClass; }
index d37d79c..00ea873 100644 (file)
@@ -40,9 +40,9 @@ LayerTreeContext::~LayerTreeContext()
 {
 }
 
-void LayerTreeContext::encode(CoreIPC::ArgumentEncoder* encoder) const
+void LayerTreeContext::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(webLayerID);
+    encoder.encode(webLayerID);
 }
 
 bool LayerTreeContext::decode(CoreIPC::ArgumentDecoder* decoder, LayerTreeContext& context)
index 32776f7..9c542a1 100644 (file)
@@ -42,7 +42,7 @@ public:
     {
     }
 
-    void encode(CoreIPC::ArgumentEncoder*) const
+    void encode(CoreIPC::ArgumentEncoder&) const
     {
     }
 
index 90f68e7..b11dc2f 100644 (file)
@@ -41,13 +41,13 @@ QtNetworkReplyData::QtNetworkReplyData()
     : m_contentLength(0)
 { }
 
-void QtNetworkReplyData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void QtNetworkReplyData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(m_urlString);
-    encoder->encode(m_contentType);
-    encoder->encode(static_cast<uint64_t>(m_contentLength));
-    encoder->encode(m_replyUuid);
-    encoder->encode(m_dataHandle);
+    encoder.encode(m_urlString);
+    encoder.encode(m_contentType);
+    encoder.encode(static_cast<uint64_t>(m_contentLength));
+    encoder.encode(m_replyUuid);
+    encoder.encode(m_dataHandle);
 }
 
 bool QtNetworkReplyData::decode(CoreIPC::ArgumentDecoder* decoder, QtNetworkReplyData& destination)
index 457d7be..02e5a15 100644 (file)
@@ -42,7 +42,7 @@ namespace WebKit {
 struct QtNetworkReplyData {
     QtNetworkReplyData();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, QtNetworkReplyData&);
 
     WTF::String m_urlString;
index 8a80fb3..4c216db 100644 (file)
@@ -50,11 +50,11 @@ QtNetworkRequestData::QtNetworkRequestData(const QNetworkRequest& request, QNetw
     m_replyUuid = QUuid::createUuid().toString();
 }
 
-void QtNetworkRequestData::encode(CoreIPC::ArgumentEncoder* encoder) const
+void QtNetworkRequestData::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(m_scheme);
-    encoder->encode(m_urlString);
-    encoder->encode(m_replyUuid);
+    encoder.encode(m_scheme);
+    encoder.encode(m_urlString);
+    encoder.encode(m_replyUuid);
 }
 
 bool QtNetworkRequestData::decode(CoreIPC::ArgumentDecoder* decoder, QtNetworkRequestData& destination)
index 9bcaac7..6583945 100644 (file)
@@ -44,7 +44,7 @@ namespace WebKit {
 struct QtNetworkRequestData {
     QtNetworkRequestData();
     QtNetworkRequestData(const QNetworkRequest&, QNetworkReply*);
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, QtNetworkRequestData&);
 
     String m_scheme;
index 388be7a..816920e 100644 (file)
@@ -51,24 +51,24 @@ PlatformCertificateInfo::~PlatformCertificateInfo()
 {
 }
 
-void PlatformCertificateInfo::encode(CoreIPC::ArgumentEncoder* encoder) const
+void PlatformCertificateInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     if (!m_certificate) {
-        encoder->encode(false);
+        encoder.encode(false);
         return;
     }
 
     GByteArray* certificateData = 0;
     g_object_get(G_OBJECT(m_certificate.get()), "certificate", &certificateData, NULL);
     if (!certificateData) {
-        encoder->encode(false);
+        encoder.encode(false);
         return;
     }
 
-    encoder->encode(true);
+    encoder.encode(true);
     GRefPtr<GByteArray> certificate = adoptGRef(certificateData);
-    encoder->encodeVariableLengthByteArray(CoreIPC::DataReference(certificate->data, certificate->len));
-    encoder->encode(static_cast<uint32_t>(m_tlsErrors));
+    encoder.encodeVariableLengthByteArray(CoreIPC::DataReference(certificate->data, certificate->len));
+    encoder.encode(static_cast<uint32_t>(m_tlsErrors));
 }
 
 bool PlatformCertificateInfo::decode(CoreIPC::ArgumentDecoder* decoder, PlatformCertificateInfo& certificateInfo)
index 0e76a3e..9f19a2f 100644 (file)
@@ -50,7 +50,7 @@ public:
     GTlsCertificate* certificate() const { return m_certificate.get(); }
     GTlsCertificateFlags tlsErrors() const { return m_tlsErrors; }
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, PlatformCertificateInfo&);
 
 private:
index ad05c1d..5dd7c66 100644 (file)
@@ -39,9 +39,9 @@ LayerTreeContext::~LayerTreeContext()
 {
 }
 
-void LayerTreeContext::encode(CoreIPC::ArgumentEncoder* encoder) const
+void LayerTreeContext::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(reinterpret_cast<uint64_t>(window));
+    encoder.encode(reinterpret_cast<uint64_t>(window));
 }
 
 bool LayerTreeContext::decode(CoreIPC::ArgumentDecoder* decoder, LayerTreeContext& context)
index 08cd4e2..5b0d20a 100644 (file)
@@ -106,19 +106,19 @@ PlatformCertificateInfo& PlatformCertificateInfo::operator=(const PlatformCertif
     return *this;
 }
 
-void PlatformCertificateInfo::encode(CoreIPC::ArgumentEncoder* encoder) const
+void PlatformCertificateInfo::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
     // Special case no certificates
     if (m_certificateChain.isEmpty()) {
-        encoder->encode(std::numeric_limits<uint64_t>::max());
+        encoder.encode(std::numeric_limits<uint64_t>::max());
         return;
     }
 
     uint64_t length = m_certificateChain.size();
-    encoder->encode(length);
+    encoder.encode(length);
 
     for (size_t i = 0; i < length; ++i)
-        encoder->encodeVariableLengthByteArray(CoreIPC::DataReference(static_cast<uint8_t*>(m_certificateChain[i]->pbCertEncoded), m_certificateChain[i]->cbCertEncoded));
+        encoder.encodeVariableLengthByteArray(CoreIPC::DataReference(static_cast<uint8_t*>(m_certificateChain[i]->pbCertEncoded), m_certificateChain[i]->cbCertEncoded));
 }
 
 bool PlatformCertificateInfo::decode(CoreIPC::ArgumentDecoder* decoder, PlatformCertificateInfo& c)
index dd999ef..7637bbb 100644 (file)
@@ -51,7 +51,7 @@ public:
 
     const Vector<PCCERT_CONTEXT>& certificateChain() const { return m_certificateChain; }
 
-    void encode(CoreIPC::ArgumentEncoder* encoder) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder* decoder, PlatformCertificateInfo& t);
 
 private:
index 73caa05..da40d24 100644 (file)
@@ -36,12 +36,12 @@ WindowGeometry::WindowGeometry()
 {
 }
 
-void WindowGeometry::encode(CoreIPC::ArgumentEncoder* encoder) const
+void WindowGeometry::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(reinterpret_cast<uint64_t>(window));
-    encoder->encode(visible);
-    encoder->encode(frame);
-    encoder->encode(clipRect);
+    encoder.encode(reinterpret_cast<uint64_t>(window));
+    encoder.encode(visible);
+    encoder.encode(frame);
+    encoder.encode(clipRect);
 }
 
 bool WindowGeometry::decode(CoreIPC::ArgumentDecoder* decoder, WindowGeometry& geometry)
index c5542bd..9194e53 100644 (file)
@@ -38,7 +38,7 @@ namespace WebKit {
 struct WindowGeometry {
     WindowGeometry();
 
-    void encode(CoreIPC::ArgumentEncoder*) const;
+    void encode(CoreIPC::ArgumentEncoder&) const;
     static bool decode(CoreIPC::ArgumentDecoder*, WindowGeometry&);
 
     HWND window;
index ffe3228..8d684c4 100644 (file)
@@ -46,7 +46,7 @@ public:
     {
     }
 
-    void encode(CoreIPC::ArgumentEncoder* encoder) const 
+    void encode(CoreIPC::ArgumentEncoder& encoder) const
     {
         APIObject::Type type = APIObject::TypeNull;
         if (baseEncode(encoder, type))
@@ -55,17 +55,17 @@ public:
         switch (type) {
         case APIObject::TypePage: {
             WebPageProxy* page = static_cast<WebPageProxy*>(m_root);
-            encoder->encode(page->pageID());
+            encoder.encode(page->pageID());
             break;
         }
         case APIObject::TypeFrame: {
             WebFrameProxy* frame = static_cast<WebFrameProxy*>(m_root);
-            encoder->encode(frame->frameID());
+            encoder.encode(frame->frameID());
             break;
         }
         case APIObject::TypePageGroup: {
             WebPageGroup* pageGroup = static_cast<WebPageGroup*>(m_root);
-            encoder->encode(pageGroup->data());
+            encoder.encode(pageGroup->data());
             break;
         }
         default:
index 49d6696..c5d56f1 100644 (file)
@@ -49,7 +49,7 @@ public:
     {
     }
 
-    void encode(CoreIPC::ArgumentEncoder* encoder) const 
+    void encode(CoreIPC::ArgumentEncoder& encoder) const
     {
         APIObject::Type type = APIObject::TypeNull;
         if (baseEncode(encoder, type))
@@ -58,17 +58,17 @@ public:
         switch (type) {
         case APIObject::TypeBundlePage: {
             WebPage* page = static_cast<WebPage*>(m_root);
-            encoder->encode(page->pageID());
+            encoder.encode(page->pageID());
             break;
         }
         case APIObject::TypeBundleFrame: {
             WebFrame* frame = static_cast<WebFrame*>(m_root);
-            encoder->encode(frame->frameID());
+            encoder.encode(frame->frameID());
             break;
         }
         case APIObject::TypeBundlePageGroup: {
             WebPageGroupProxy* pageGroup = static_cast<WebPageGroupProxy*>(m_root);
-            encoder->encode(pageGroup->pageGroupID());
+            encoder.encode(pageGroup->pageGroupID());
             break;
         }
         default:
index bc884b9..ee02bbb 100644 (file)
@@ -32,16 +32,16 @@ using namespace WebCore;
 
 namespace WebKit {
 
-void Plugin::Parameters::encode(CoreIPC::ArgumentEncoder* encoder) const
+void Plugin::Parameters::encode(CoreIPC::ArgumentEncoder& encoder) const
 {
-    encoder->encode(url.string());
-    encoder->encode(names);
-    encoder->encode(values);
-    encoder->encode(mimeType);
-    encoder->encode(isFullFramePlugin);
-    encoder->encode(shouldUseManualLoader);
+    encoder.encode(url.string());
+    encoder.encode(names);
+    encoder.encode(values);
+    encoder.encode(mimeType);
+    encoder.encode(isFullFramePlugin);
+    encoder.encode(shouldUseManualLoader);
 #if PLATFORM(MAC)
-    encoder->encodeEnum(layerHostingMode);
+    encoder.encodeEnum(layerHostingMode);
 #endif
 }
 
index 98f8770..ded53d1 100644 (file)
@@ -77,7 +77,7 @@ public:
         LayerHostingMode layerHostingMode;
 #endif
 
-        void encode(CoreIPC::ArgumentEncoder*) const;
+        void encode(CoreIPC::ArgumentEncoder&) const;
         static bool decode(CoreIPC::ArgumentDecoder*, Parameters&);
     };