Add the notion of auto-converting page and frame handles
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Dec 2014 19:26:53 +0000 (19:26 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Dec 2014 19:26:53 +0000 (19:26 +0000)
commit72cb93d5ba28cecec784dcc91cca17e29402a8c8
treea60cb2ad0efe17feb98ef57363cbcc1208c3c8be
parent6f2774e948429ef5552e811c28ae1f3d5c0b0618
Add the notion of auto-converting page and frame handles
https://bugs.webkit.org/show_bug.cgi?id=139954

Reviewed by Dan Bernstein.

This makes it possible to tell the difference between page and frame handles that
should be converted to their respective UI or web process object representations
and handles that should stay the same (for the modern API for example).

* Shared/API/APIFrameHandle.cpp:
(API::FrameHandle::create):
(API::FrameHandle::createAutoconverting):
(API::FrameHandle::FrameHandle):
* Shared/API/APIFrameHandle.h:
(API::FrameHandle::isAutoconverting):
* Shared/API/APIPageHandle.cpp:
(API::PageHandle::create):
(API::PageHandle::createAutoconverting):
(API::PageHandle::PageHandle):
* Shared/API/APIPageHandle.h:
(API::PageHandle::isAutoconverting):
* Shared/API/Cocoa/_WKFrameHandle.mm:
(-[_WKFrameHandle initWithCoder:]):
* Shared/UserData.cpp:
(WebKit::shouldTransform):
* Shared/UserData.h:
* UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::UIClient::printFrame):
* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::transformHandlesToObjects):
(WebKit::WebProcessProxy::transformObjectsToHandles):
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
(-[WKWebProcessPlugInFrame handle]):
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::transformHandlesToObjects):
(WebKit::WebProcess::transformObjectsToHandles):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/API/APIFrameHandle.cpp
Source/WebKit2/Shared/API/APIFrameHandle.h
Source/WebKit2/Shared/API/APIPageHandle.cpp
Source/WebKit2/Shared/API/APIPageHandle.h
Source/WebKit2/Shared/API/Cocoa/_WKFrameHandle.mm
Source/WebKit2/Shared/UserData.cpp
Source/WebKit2/Shared/UserData.h
Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm
Source/WebKit2/UIProcess/WebProcessProxy.cpp
Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm
Source/WebKit2/WebProcess/WebProcess.cpp