641cb4a14c1123c30506eb87983c35f612a7e273
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2014-01-04  Zan Dobersek  <zdobersek@igalia.com>
2
3         Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
4         https://bugs.webkit.org/show_bug.cgi?id=126439
5
6         Reviewed by Andreas Kling.
7
8         Instead of relying on std::pair and std::make_pair symbols being present in the current scope
9         through the pair and make_pair symbols, the std:: specifier should be used explicitly.
10
11         * Shared/mac/ArgumentCodersMac.mm:
12         (IPC::encode):
13         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
14         (WebKit::WebNotificationManagerProxy::show):
15         (WebKit::WebNotificationManagerProxy::cancel):
16         (WebKit::WebNotificationManagerProxy::didDestroyNotification):
17         * UIProcess/Notifications/WebNotificationManagerProxy.h:
18         * UIProcess/WebContext.cpp:
19         (WebKit::WebContext::createNewWebProcess):
20         * UIProcess/WebContext.h:
21
22 2014-01-03  Piotr Grad  <p.grad@samsung.com>
23
24         Build brake after 161045 on EFL port with WebKit2 and gcc 4.6.3
25         https://bugs.webkit.org/show_bug.cgi?id=126383
26
27         Reviewed by Sam Weinig.
28
29         Class identifier was missing.
30
31         * DatabaseProcess/DatabaseProcess.h:
32         * NetworkProcess/NetworkProcess.h:
33         * PluginProcess/PluginProcess.h:
34         * Shared/mac/CookieStorageShim.h:
35         * UIProcess/Plugins/PluginProcessManager.h:
36         * UIProcess/WebPageProxy.cpp:
37         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
38         * WebProcess/WebProcess.h:
39
40 2014-01-03  Seokju Kwon  <seokju@webkit.org>
41
42         Unreviewed build fix on non-Mac port
43
44         * Shared/API/c/WKDeprecatedFunctions.cpp: Add ENABLE(MAC) guard for "WKContextPrivateMac.h".
45
46 2014-01-03  Gavin Barraclough  <barraclough@apple.com>
47
48         Simplify process suppression state calculation
49         https://bugs.webkit.org/show_bug.cgi?id=126473
50
51         Reviewed by Geoffrey Garen & Sam Weinig.
52
53         Don't check the application occlusion state (this is covered by the pages already),
54         and let the page check visually idle. Remove layers of functions.
55
56         * UIProcess/Network/NetworkProcessProxy.cpp:
57         (WebKit::NetworkProcessProxy::didFinishLaunching):
58             - Let the network process nap if all processes in its context are napping.*
59               (* Except not really. We currently leak a boost onto the process anyway.)
60         * UIProcess/Plugins/PluginProcessProxy.cpp:
61         (WebKit::PluginProcessProxy::didFinishLaunching):
62             - Let the plugin process nap if all processes in all contexts are napping.
63         * UIProcess/WebContext.h:
64             - Remove canEnableProcessSuppressionForNetworkProcess & canEnableProcessSuppressionForWebProcess
65             - canEnableProcessSuppressionForGlobalChildProcesses -> processSuppressionIsEnabledForAllContexts
66             - combine updateProcessSuppressionStateOfChildProcesses & updateProcessSuppressionStateOfGlobalChildProcesses
67                 -> updateProcessSuppressionState
68         * UIProcess/WebPageProxy.cpp:
69         (WebKit::WebPageProxy::isProcessSuppressible):
70             - WebProcess is supressible if IsVisuallyIdle.
71         (WebKit::WebPageProxy::viewStateDidChange):
72             - WebProcessProxy should updateProcessSuppressionState when IsVisuallyIdle changes.
73         * UIProcess/WebPageProxy.h:
74         * UIProcess/WebProcessProxy.cpp:
75         (WebKit::WebProcessProxy::createWebPage):
76         (WebKit::WebProcessProxy::addExistingWebPage):
77         (WebKit::WebProcessProxy::pageSuppressibilityChanged):
78         (WebKit::WebProcessProxy::pagePreferencesChanged):
79             - pageIsProcessSuppressible -> isProcessSuppressible
80         * UIProcess/WebProcessProxy.h:
81         * UIProcess/mac/WebContextMac.mm:
82         (WebKit::WebContext::updateProcessSuppressionState):
83             - Update supression state of network & plugin processes.
84         (WebKit::WebContext::processSuppressionIsEnabledForAllContexts):
85             - Changed iterator style, made a static member of WebContext.
86         * UIProcess/mac/WebProcessProxyMac.mm:
87         (WebKit::WebProcessProxy::updateProcessSuppressionState):
88             - Ask the WebContext to update supression state.
89         * UIProcess/mac/WindowServerConnection.h:
90         * UIProcess/mac/WindowServerConnection.mm:
91         (WebKit::WindowServerConnection::windowServerConnectionStateChanged):
92         (WebKit::WindowServerConnection::WindowServerConnection):
93             - Remove application occlusion state.
94
95 2014-01-03  Tim Horton  <timothy_horton@apple.com>
96
97         [iOS] [WK2] TileController creates all tiles on first paint, making it slow and consuming lots of memory
98         https://bugs.webkit.org/show_bug.cgi?id=126457
99
100         Reviewed by Simon Fraser.
101
102         Instead of making all of the tiles all of the time, we should use the
103         view-exposed-rect mechanism to inform TileController about what portion
104         of the WKContentView is currently exposed by the WKScrollView.
105
106         * UIProcess/API/ios/WKContentView.h:
107         * UIProcess/API/ios/WKContentView.mm:
108         (-[WKContentView setViewportSize:]):
109         (-[WKContentView didFinishScrollTo:]):
110         (-[WKContentView didScrollTo:]):
111         Inform the WebPageProxy that our exposed rect changed.
112
113         * UIProcess/API/ios/WKView.mm:
114         (-[WKView scrollViewDidScroll:]):
115         Inform the WKContentView that we've scrolled at all.
116         Rename the existing WKContentView didScrollTo: to didFinishScrollTo:,
117         because it is expected to only fire when a scroll lands. Add didScrollTo:,
118         which fires continually as scrolling progresses.
119
120         * UIProcess/WebPageProxy.cpp:
121         (WebKit::WebPageProxy::WebPageProxy):
122         (WebKit::WebPageProxy::viewExposedRectChanged):
123         (WebKit::WebPageProxy::exposedRectChangedTimerFired):
124         * UIProcess/WebPageProxy.h:
125         (WebKit::WebPageProxy::viewExposedRect):
126         * UIProcess/mac/WebPageProxyMac.mm:
127         Move view-exposed-rect stuff to WebPageProxy so it can be built on both
128         Mac and iOS, and un-!PLATFORM(IOS) some of the related members.
129
130         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
131         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
132         (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
133         (WebKit::RemoteLayerTreeDrawingArea::setExposedRect):
134         (WebKit::RemoteLayerTreeDrawingArea::setClipsToExposedRect):
135         (WebKit::RemoteLayerTreeDrawingArea::updateScrolledExposedRect):
136         (WebKit::RemoteLayerTreeDrawingArea::updateMainFrameClipsToExposedRect):
137         (WebKit::RemoteLayerTreeDrawingArea::mainFrameTiledBacking):
138         Steal TiledCoreAnimationDrawingArea's exposed-rect code.
139         Note that on iOS, we don't need to manually offset the exposed rect by
140         the scroll position, because the scroll position is already baked into
141         the exposed rect, and WebCore's notion of the scroll position will be
142         inaccurate until the scroll lands.
143
144 2014-01-03  Simon Fraser  <simon.fraser@apple.com>
145
146         Give all PlatformCALayers a PlatformLayerID, not just remote ones
147         https://bugs.webkit.org/show_bug.cgi?id=126466
148
149         Reviewed by Tim Horton.
150
151         The ScrollingStateTree has references to both GraphicsLayers and PlatformLayers
152         which is confusing, and is necessary because the underlying PlatformLayer
153         inside a GraphicsLayer can change. In order to hide some of this complexity,
154         expose GraphicsLayer::primaryLayerID() which is a PlatformLayerID that clients
155         can hold onto to test for underlying layer swapping.
156         
157         GraphicsLayerCARemote and PlatformCALayerRemote can now just use the
158         primaryLayerID() function exposed via the base class.
159
160         * WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp:
161         * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
162         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
163         (PlatformCALayerRemote::PlatformCALayerRemote):
164         (PlatformCALayerRemote::recursiveBuildTransaction):
165         * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
166
167 2014-01-03  Dan Bernstein  <mitz@apple.com>
168
169         [Cocoa] Expose session state API
170         https://bugs.webkit.org/show_bug.cgi?id=126463
171
172         Reviewed by Sam Weinig.
173
174         * UIProcess/API/Cocoa/WKBrowsingContextController.h: Declared new property and method.
175         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
176         (-[WKBrowsingContextController sessionState]): Added. Calls WebPageProxy::sessionStateData.
177         (-[WKBrowsingContextController restoreFromSessionState:]): Added. Calls
178         WebPageProxy::restoreFromSessionState.
179
180 2014-01-03  Gavin Barraclough  <barraclough@apple.com>
181
182         Remove SPI, user default for disabling process suppression
183         https://bugs.webkit.org/show_bug.cgi?id=126458
184
185         Reviewed by Sam Weinig.
186
187         * Shared/API/c/WKDeprecatedFunctions.cpp:
188         (WKContextGetProcessSuppressionEnabled):
189         (WKContextSetProcessSuppressionEnabled):
190             - depracated SPI.
191         * UIProcess/API/C/mac/WKContextPrivateMac.mm:
192             - depracated SPI.
193         * UIProcess/WebContext.cpp:
194         (WebKit::WebContext::WebContext):
195             - removed m_processSuppressionEnabled.
196         * UIProcess/WebContext.h:
197             - removed setProcessSuppressionEnabled, processSuppressionEnabled implementation,
198               processSuppressionEnabledChanged, m_processSuppressionEnabled.
199         * UIProcess/mac/WebContextMac.mm:
200         (WebKit::WebContext::platformInitialize):
201             - removed m_processSuppressionEnabled.
202         (WebKit::WebContext::processSuppressionEnabled):
203             - check whether all pages in all processes are suppressible.
204         (WebKit::WebContext::canEnableProcessSuppressionForNetworkProcess):
205             - removed call to omitProcessSuppression, m_processSuppressionEnabled -> processSuppressionEnabled().
206         (WebKit::WebContext::canEnableProcessSuppressionForWebProcess):
207             - removed call to omitProcessSuppression, processSuppressionEnabled (we don't care if a page in a difference process is not suppresible).
208         (WebKit::WebContext::canEnableProcessSuppressionForGlobalChildProcesses):
209             - removed call to omitProcessSuppression, s_processSuppressionEnabledForAllContexts -> processSuppressionIsEnabledForAllContexts().
210
211 2014-01-03  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
212
213         [WK2][CoordinatedGraphics] Removing repeated protected keyword in WebView
214         https://bugs.webkit.org/show_bug.cgi?id=126462
215
216         Reviewed by Simon Fraser.
217
218         * UIProcess/CoordinatedGraphics/WebView.h:
219
220 2014-01-03  Carlos Garcia Campos  <cgarcia@igalia.com>
221
222         Define WebProcess::usesNetworkProcess unconditionally
223         https://bugs.webkit.org/show_bug.cgi?id=126208
224
225         Reviewed by Martin Robinson.
226
227         Returning false when network process is not enabled like
228         WebContext does. This way we reduce the amount of ifdefs used when
229         checking whether network process is in use.
230
231         * UIProcess/gtk/WebContextGtk.cpp:
232         (WebKit::WebContext::platformInitializeWebProcess): Remove #ifdef
233         and only setup network features when not using network process.
234         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
235         (WebKit::WebPlatformStrategies::isAvailable): Remove #ifdef.
236         * WebProcess/WebProcess.cpp:
237         (WebKit::WebProcess::downloadManager):
238         (WebKit::WebProcess::shouldTerminate):
239         (WebKit::WebProcess::usesNetworkProcess):
240         * WebProcess/WebProcess.h:
241         * WebProcess/mac/WebProcessMac.mm:
242         (WebKit::WebProcess::platformSetCacheModel): Remove #ifdef.
243         (WebKit::WebProcess::platformInitializeWebProcess): Ditto.
244         * WebProcess/soup/WebProcessSoup.cpp:
245         (WebKit::WebProcess::platformSetCacheModel): Ditto.
246         (WebKit::WebProcess::platformClearResourceCaches): Ditto.
247         (WebKit::WebProcess::platformInitializeWebProcess): Ditto.
248         (WebKit::WebProcess::platformTerminate): Only remove the language
249         observer when not using network process.
250         (WebKit::WebProcess::setIgnoreTLSErrors): Assert when this is
251         called with network process enabled.
252         (WebKit::WebProcess::allowSpecificHTTPSCertificateForHost): Ditto.
253
254 2014-01-03  Jinwoo Song  <jinwoo7.song@samsung.com>
255
256         VibrationPattern should allocate an single vector instance for single integer input
257         https://bugs.webkit.org/show_bug.cgi?id=126417
258
259         Reviewed by Gyuyoung Kim.
260
261         Fix a vibration unit test regression after r161139. Also remove unnecessary test cases. 
262
263         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
264         (EWK2ViewTest::loadVibrationHTMLString):
265         (TEST_F):
266
267 2014-01-02  Carlos Garcia Campos  <cgarcia@igalia.com>
268
269         [GTK] Add API to WebKitResponsePolicyDecision to check if the MIME type can be shown
270         https://bugs.webkit.org/show_bug.cgi?id=124652
271
272         Reviewed by Martin Robinson.
273
274         * UIProcess/API/gtk/WebKitPolicyClient.cpp:
275         (decidePolicyForResponse): Pass canShowMIMEType to
276         webkitResponsePolicyDecisionCreate.
277         * UIProcess/API/gtk/WebKitResponsePolicyDecision.cpp:
278         (webkit_response_policy_decision_is_mime_type_supported): Return
279         canShowMIMEType.
280         (webkitResponsePolicyDecisionCreate): Set the canShowMIMEType
281         member from the given parameter.
282         * UIProcess/API/gtk/WebKitResponsePolicyDecision.h:
283         * UIProcess/API/gtk/WebKitResponsePolicyDecisionPrivate.h:
284         * UIProcess/API/gtk/WebKitWebView.cpp:
285         (webkitWebViewDecidePolicy): Use the new API instead of
286         webkit_web_view_can_show_mime_type() since it's more efficient.
287         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbol.
288         * UIProcess/API/gtk/tests/TestWebKitPolicyClient.cpp:
289         (testResponsePolicy): Test the new API.
290
291 2014-01-02  Carlos Garcia Campos  <cgarcia@igalia.com>
292
293         REGRESSION(r160304): [GTK] Disable libtool fast install
294         https://bugs.webkit.org/show_bug.cgi?id=126381
295
296         Reviewed by Martin Robinson.
297
298         Remove -no-fast-install ld flag since fast install is now disabled
299         globally.
300
301         * GNUmakefile.am:
302         * UIProcess/API/gtk/tests/GNUmakefile.am:
303
304 2014-01-02  Ryuan Choi  <ryuan.choi@samsung.com>
305
306         [EFL][WK2] Remove defaultPageGroupIdentifier not to make the confusion
307         https://bugs.webkit.org/show_bug.cgi?id=126249
308
309         Reviewed by Gyuyoung Kim.
310
311         ewk_page_group_create always creates new page group,
312         but the identifiers of page groups will be same as "defaultPageGroupIdentifier" when passed 0 or "".
313         It is unnecessary and just makes the confusion.
314
315         This patch let WebPageGroup generate unique identifier if 0 or "" is passed as argument.
316
317         * UIProcess/API/efl/ewk_page_group.cpp:
318         (EwkPageGroup::create):
319         * UIProcess/API/efl/ewk_page_group_private.h:
320
321 2014-01-02  Zan Dobersek  <zdobersek@igalia.com>
322
323         [GTK] Switch from WTF::Function to std::function in WebProcessTest
324         https://bugs.webkit.org/show_bug.cgi?id=126397
325
326         Reviewed by Anders Carlsson.
327
328         Use std::function<> and std::bind() instead of WTF::Function and WTF::bind,
329         following the effort of using STL concepts where possible.
330
331         * UIProcess/API/gtk/tests/WebProcessTest.cpp:
332         (WebProcessTest::add):
333         * UIProcess/API/gtk/tests/WebProcessTest.h:
334
335 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
336
337         Refactor NSActivity handling code from ChildProcess to UserActivity
338         https://bugs.webkit.org/show_bug.cgi?id=126330
339
340         Reviewed by Sam Weinig.
341
342         UserActivity is a mechanism to express to the operating system (where appropriate)
343         that a user initiated activity is taking place, and as such that resources should be
344         made available to the process accordingly.
345
346         Currently we hold a single NSActivity, at the WebKit layer. This refactoring allows us
347         to hold different activity tokens for different user actions (which simplifies the
348         handling, and aides debugging since the token can more accurately express the activity
349         taking place), and also will allow us to avoid the layering difficulty of calling back
350         up the stack to WebKit to register that an activity is taking place.
351
352         * Shared/ChildProcess.cpp:
353         (WebKit::ChildProcess::ChildProcess):
354             - removed fields to directly manage NSActivity, use UserActivity objects instead.
355         * Shared/ChildProcess.h:
356         (WebKit::ChildProcess::processSuppressionEnabled):
357             - changed to initialize new fields.
358         * Shared/mac/ChildProcessMac.mm:
359         (WebKit::ChildProcess::setProcessSuppressionEnabled):
360             - implemented in terms of UserActivity m_processSuppressionDisabled.
361         (WebKit::ChildProcess::incrementActiveTaskCount):
362             - implemented in terms of UserActivity m_activeTasks.
363         (WebKit::ChildProcess::decrementActiveTaskCount):
364             - implemented in terms of UserActivity m_activeTasks.
365         (WebKit::ChildProcess::platformInitialize):
366             - implemented in terms of UserActivity m_processSuppressionDisabled.
367
368 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
369
370         Propagate WindowServer modifications state to WebProcess
371         https://bugs.webkit.org/show_bug.cgi?id=126356
372
373         Reviewed by Sam Weinig.
374
375         This will be necessary to move control of process suppression to the WebProcess.
376         IsVisuallyIdle implies the process has stopped painting, or painted rects are
377         occluded and not actually being composited. State is provided on a per
378         WindowServer connection basis, and as such may produce (safe) false positives.
379
380         * Shared/ViewState.h:
381             - added IsVisuallyIdle.
382         * UIProcess/API/mac/PageClientImpl.h:
383         * UIProcess/API/mac/PageClientImpl.mm:
384         (WebKit::PageClientImpl::isVisuallyIdle):
385             - added, on mac checks WindowServerConnection.
386         * UIProcess/PageClient.h:
387         (WebKit::PageClient::isVisuallyIdle):
388             - base implementation purely based on isViewVisible.
389         * UIProcess/WebContext.cpp:
390         (WebKit::WebContext::windowServerConnectionStateChanged):
391             - broadcast the state change.
392         * UIProcess/WebContext.h:
393         * UIProcess/WebPageProxy.cpp:
394         (WebKit::WebPageProxy::updateViewState):
395         (WebKit::WebPageProxy::viewStateDidChange):
396             - propagate IsVisuallyIdle.
397         * UIProcess/WebProcessProxy.cpp:
398         (WebKit::WebProcessProxy::windowServerConnectionStateChanged):
399             - broadcast the state change.
400         * UIProcess/WebProcessProxy.h:
401             - add windowServerConnectionStateChanged.
402         * UIProcess/mac/WebContextMac.mm:
403         (WebKit::WebContext::updateProcessSuppressionStateOfGlobalChildProcesses):
404             - moved from static in fle to static member of class.
405         (WebKit::WebContext::platformInitialize):
406             - no need to enableOcclusionNotifications.
407         (WebKit::WebContext::canEnableProcessSuppressionForNetworkProcess):
408         (WebKit::WebContext::canEnableProcessSuppressionForWebProcess):
409         (WebKit::WebContext::canEnableProcessSuppressionForGlobalChildProcesses):
410             - changed to call WindowServerConnection.
411         (WebKit::WebContext::processSuppressionEnabledChanged):
412             - don't remove/reregister occlusion notifications.
413         * UIProcess/mac/WindowServerConnection.h: Added.
414         (WebKit::WindowServerConnection::applicationIsOccluded):
415         (WebKit::WindowServerConnection::applicationWindowModificationsHaveStopped):
416             - accessors.
417         * UIProcess/mac/WindowServerConnection.mm: Added.
418         (WebKit::WindowServerConnection::applicationBecameOccluded):
419         (WebKit::WindowServerConnection::applicationWindowModificationsStopped):
420         (WebKit::WindowServerConnection::applicationBecameVisible):
421         (WebKit::WindowServerConnection::applicationWindowModificationsStarted):
422             - handle notifications from the WindowServer.
423         (WebKit::WindowServerConnection::windowServerConnectionStateChanged):
424             - broadcast the state change.
425         (WebKit::WindowServerConnection::shared):
426             - accessor for singleton object.
427         (WebKit::WindowServerConnection::WindowServerConnection):
428             - constructor inizializes fields & register notification handlers.
429         * WebKit2.xcodeproj/project.pbxproj:
430             - added new files.
431         * config.h:
432             - added HAVE_WINDOW_SERVER_OCCLUSION_NOTIFICATIONS.
433
434 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
435
436         Remove WindowIsVisible
437         https://bugs.webkit.org/show_bug.cgi?id=126270
438
439         Reviewed by Tim Horton.
440
441         We currently track visibility in two ways - ViewState::IsVisible and ViewState::WindowIsVisible.
442         The latter detects that the content is hidden in fewer cases than the former, and as such, the
443         former is always preferable.
444
445         This affects the hidden state provided to FocusController::contentAreaDidShowOrHide and to
446         Plugin::windowVisibilityChanged.
447
448         * Shared/ViewState.h:
449             - remove WindowIsVisible.
450         * UIProcess/API/mac/PageClientImpl.h:
451         * UIProcess/API/mac/PageClientImpl.mm:
452             - remove isWindowVisible.
453         * UIProcess/API/mac/WKView.mm:
454         (-[WKView viewDidMoveToWindow]):
455         (-[WKView _windowDidMiniaturize:]):
456         (-[WKView _windowDidDeminiaturize:]):
457         (-[WKView _windowDidOrderOffScreen:]):
458         (-[WKView _windowDidOrderOnScreen:]):
459             - remove ViewState::WindowIsVisible.
460         * UIProcess/PageClient.h:
461             - remove isWindowVisible.
462         * UIProcess/WebPageProxy.cpp:
463         (WebKit::WebPageProxy::updateViewState):
464             - remove handling of ViewState::WindowIsVisible.
465         * WebProcess/Plugins/PluginView.cpp:
466         (WebKit::PluginView::setIsVisible):
467         (WebKit::PluginView::didInitializePlugin):
468         * WebProcess/Plugins/PluginView.h:
469             - setWindowIsVisible -> setIsVisible.
470         * WebProcess/WebPage/WebPage.cpp:
471         (WebKit::WebPage::WebPage):
472         (WebKit::WebPage::setViewIsVisible):
473         (WebKit::WebPage::setViewState):
474         (WebKit::WebPage::windowAndWebPageAreFocused):
475         * WebProcess/WebPage/WebPage.h:
476         (WebKit::WebPage::isVisible):
477             - remove m_windowIsVisible, setWindowIsVisible (implementation moved to setViewIsVisible).
478
479 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
480
481         Refactor ViewState handling for drawing area / plugins
482         https://bugs.webkit.org/show_bug.cgi?id=126272
483
484         Reviewed by Tim Horton.
485
486         Instead of all ViewState changes being handled by the WebPage, notify the DrawingArea & PluginView to better encapsulate.
487
488         * WebProcess/Plugins/PluginView.cpp:
489         (WebKit::PluginView::viewStateDidChange):
490         (WebKit::PluginView::platformViewStateDidChange):
491             - added, handle changes in ViewState relevant to PluginView.
492         (WebKit::PluginView::didInitializePlugin):
493             - helper function removed.
494         * WebProcess/Plugins/PluginView.h:
495             - added/removed function declarations.
496         * WebProcess/WebPage/DrawingArea.h:
497         (WebKit::DrawingArea::viewStateDidChange):
498             - declare viewStateDidChange.
499         * WebProcess/WebPage/WebPage.cpp:
500         (WebKit::WebPage::setActive):
501             - no need to notify plugin.
502         (WebKit::WebPage::setViewIsVisible):
503             - no need to notify drawing area.
504         (WebKit::WebPage::setViewState):
505             - send viewStateDidChange to drawing area / plugin.
506         (WebKit::WebPage::setWindowIsVisible):
507             - no need to notify plugin.
508         * WebProcess/WebPage/WebPage.h:
509         (WebKit::WebPage::layerHostingMode):
510             - removed setLayerHostingMode.
511         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
512             - declare viewStateDidChange.
513         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
514         (WebKit::TiledCoreAnimationDrawingArea::viewStateDidChange):
515             - added, handle changes in ViewState relevant to DrawingArea.
516
517 2014-01-02  Alexey Proskuryakov  <ap@apple.com>
518
519         Merge didMoveOnscreen / page visibility to isVisible
520         https://bugs.webkit.org/show_bug.cgi?id=126268
521
522         Build fix.
523
524         * UIProcess/WebContext.h: Removed some accidental input.
525
526 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
527
528         Merge didMoveOnscreen / page visibility to isVisible
529         https://bugs.webkit.org/show_bug.cgi?id=126268
530
531         Reviewed by Tim Horton.
532
533         The onscreen state most closely tracks view visibility (though currently
534         also tracks a mix of in-window state). Make more consistent, simplify,
535         and move all animation suspension logic to Page, so it can be controlled
536         by the PageThrottler.
537
538         * WebProcess/WebPage/WebPage.cpp:
539         (WebKit::WebPage::WebPage):
540         (WebKit::WebPage::setViewIsVisible):
541             - updateVisibilityState -> setIsVisible.
542         (WebKit::WebPage::setIsInWindow):
543             - remove redundant willMoveOffscreen/didMoveOnscreen calls - this is handled
544               by setIsVisible.
545         (WebKit::WebPage::setMayStartMediaWhenInWindow):
546             - isOnscreen -> isInWindow. We start media when the view is in a window, not
547               when the view is visible.
548         (WebKit::WebPage::setVisibilityStatePrerender):
549             - setVisibilityState -> setIsPrerender.
550
551 2013-12-23  Oliver Hunt  <oliver@apple.com>
552
553         Refactor PutPropertySlot to be aware of custom properties
554         https://bugs.webkit.org/show_bug.cgi?id=126187
555
556         Reviewed by Antti Koivisto.
557
558         Update for new method signatures.
559
560         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
561         (WebKit::NPJSObject::setProperty):
562
563 2014-01-02  Simon Fraser  <simon.fraser@apple.com>
564
565         Add AsyncScrollingCoordinator, which is a base class for threaded and future remote ScrollingCoordinators
566         https://bugs.webkit.org/show_bug.cgi?id=126389
567
568         Reviewed by Tim Horton.
569         
570         Add AsyncScrollingCoordinator, a ScrollingCoordinator that knows about ScrollingStateTrees
571         and ScrollingTrees, but leaves it up to subclasses to decide when and how to commit.
572         
573         * WebProcess/WebPage/EventDispatcher.cpp:
574         (WebKit::EventDispatcher::addScrollingTreeForPage): The ScrollingTree is exposed on
575         AsyncScrollingCoordinator now, not ScrollingCoordinator, so we have to cast here.
576         * WebProcess/WebPage/WebPage.cpp: m_useThreadedScrolling -> m_useAsyncScrolling terminology change.
577         (WebKit::WebPage::WebPage):
578         (WebKit::WebPage::~WebPage):
579         * WebProcess/WebPage/WebPage.h:
580         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
581         (WebKit::TiledCoreAnimationDrawingArea::updatePreferences): Cast to AsyncScrollingCoordinator in order
582         to get to the ScrollingTree.
583
584 2014-01-01  Simon Fraser  <simon.fraser@apple.com>
585
586         Create a ThreadedScrollingTree subclass of ScrollingTree, and push all knowledge of the scrolling thread into it
587         https://bugs.webkit.org/show_bug.cgi?id=126362
588
589         Reviewed by Sam Weinig.
590
591         Eventually we'll have a ScrollingTree in situations where there is no scrolling
592         thread, so make the ScrollingTree base class thread-agnostic (but threadsafe),
593         and subclass it in ThreadedScrollingTree for scrolling-thread-specific functionality.
594         
595         The ScrollingTree base class also no longer needs to know about the
596         ScrollingCoordinator.
597
598         ScrollingCoordinatorMac creates a ThreadedScrollingTree.
599
600         * WebProcess/WebPage/EventDispatcher.cpp:
601         (WebKit::EventDispatcher::addScrollingTreeForPage):
602         (WebKit::EventDispatcher::wheelEvent):
603         * WebProcess/WebPage/EventDispatcher.h:
604
605 2014-01-01  Simon Fraser  <simon.fraser@apple.com>
606
607         Add a typedef for PlatformLayerID on GraphicsLayer, and migrate RemoteLayerTreeTransaction to use it
608         https://bugs.webkit.org/show_bug.cgi?id=126346
609
610         Reviewed by Tim Horton.
611         
612         Remote scrolling tree code is soon going to use RemoteLayerTreeTransaction::LayerID,
613         so it makes more sense to put this layerID type on GraphicsLayer as
614         GraphicsLayer::PlatformLayerID.
615         
616         Also add some type cast macros for PlatformCALayer and subclasses, and use them
617         where appropriate.
618
619         * Shared/mac/RemoteLayerTreePropertyApplier.h:
620         * Shared/mac/RemoteLayerTreeTransaction.h:
621         (WebKit::RemoteLayerTreeTransaction::rootLayerID):
622         (WebKit::RemoteLayerTreeTransaction::changedLayers):
623         (WebKit::RemoteLayerTreeTransaction::destroyedLayers):
624         * Shared/mac/RemoteLayerTreeTransaction.mm:
625         (WebKit::RemoteLayerTreeTransaction::decode):
626         (WebKit::RemoteLayerTreeTransaction::setRootLayerID):
627         (WebKit::RemoteLayerTreeTransaction::setDestroyedLayerIDs):
628         (WebKit::RemoteLayerTreeTextStream::operator<<):
629         (WebKit::dumpChangedLayers):
630         (WebKit::RemoteLayerTreeTransaction::description):
631         * UIProcess/mac/RemoteLayerTreeHost.h:
632         * UIProcess/mac/RemoteLayerTreeHost.mm:
633         (WebKit::RemoteLayerTreeHost::commit):
634         (WebKit::RemoteLayerTreeHost::getLayer):
635         * WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp:
636         (WebKit::GraphicsLayerCARemote::primaryLayerID):
637         * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
638         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
639         (generateLayerID):
640         * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
641         (WebKit::PlatformCALayerRemote::layerID):
642         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
643
644 2014-01-01  Martin Robinson  <mrobinson@igalia.com>
645
646         [GTK] [CMake] Fix the WEBKIT_SRC_DIR define when building the WebKit2 GObject API unit tests
647         https://bugs.webkit.org/show_bug.cgi?id=126350
648
649         Reviewed by Carlos Garcia Campos.
650
651         * UIProcess/API/gtk/tests/CMakeLists.txt: Fix the define.
652
653 2014-01-01  Martin Robinson  <mrobinson@igalia.com>
654
655         [GTK] Rename libtestnetscapeplugin to libTestNetscapePlugin
656         https://bugs.webkit.org/show_bug.cgi?id=126349
657
658         Reviewed by Carlos Garcia Campos.
659
660         All CMake ports use "libTestNetscapePlugin," so choosing the same
661         name in the autotools port will make the transition easier.
662
663         * UIProcess/API/gtk/tests/TestWebKitWebContext.cpp:
664         (testWebContextGetPlugins): Use the new plugin library name.
665
666 2013-12-31  Brendan Long  <b.long@cablelabs.com>
667
668         [Gtk] WebKitWebInspector has build warnings due to uninitialized didChangeAttachedWidth member
669         https://bugs.webkit.org/show_bug.cgi?id=126353
670
671         Reviewed by Martin Robinson.
672
673         * UIProcess/API/gtk/WebKitWebInspector.cpp:
674         (webkitWebInspectorCreate): Initialize didChangeAttachedWidth to null.
675
676 2013-12-30  Martin Robinson  <mrobinson@igalia.com>
677
678         [GTK] Make the output directory of GObject unit tests binaries consistent with the CMake build
679         https://bugs.webkit.org/show_bug.cgi?id=126297
680
681         Reviewed by Philippe Normand.
682
683         * UIProcess/API/gtk/tests/GNUmakefile.am: Build the tests in the new directory.
684         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
685         (startTestServer): Update the search path to reflect the new directory.
686         * UIProcess/API/gtk/tests/TestWebKitAccessibility.cpp:
687         (startTestServer): Update the search path to reflect the new directory.
688
689 2013-12-30  Carlos Garcia Campos  <cgarcia@igalia.com>
690
691         [SOUP] willSendRequest doesn't work after a redirect
692         https://bugs.webkit.org/show_bug.cgi?id=126290
693
694         Reviewed by Martin Robinson.
695
696         Add test cases to test send-request signal in case of
697         redirection.
698
699         * UIProcess/API/gtk/tests/TestResources.cpp:
700         (testWebResourceSendRequest):
701         (serverCallback):
702
703 2013-12-30  Commit Queue  <commit-queue@webkit.org>
704
705         Unreviewed, rolling out r161157, r161158, r161160, r161161,
706         r161163, and r161165.
707         http://trac.webkit.org/changeset/161157
708         http://trac.webkit.org/changeset/161158
709         http://trac.webkit.org/changeset/161160
710         http://trac.webkit.org/changeset/161161
711         http://trac.webkit.org/changeset/161163
712         http://trac.webkit.org/changeset/161165
713         https://bugs.webkit.org/show_bug.cgi?id=126332
714
715         Broke WebKit2 on Mountain Lion (Requested by ap on #webkit).
716
717         * Platform/IPC/Connection.cpp:
718         (IPC::Connection::SyncMessageState::wait):
719         (IPC::Connection::sendSyncMessageFromSecondaryThread):
720         (IPC::Connection::waitForSyncReply):
721
722 2013-12-30  Anders Carlsson  <andersca@apple.com>
723
724         Try to fix the test failures seen on the bots.
725
726         Restore the BinarySemaphore behavior that existed in the old binary semaphore.
727
728         * Platform/IPC/Connection.cpp:
729         (IPC::BinarySemaphore::wait):
730
731 2013-12-30  Anders Carlsson  <andersca@apple.com>
732
733         Fix.
734
735         * WebProcess/WebProcess.cpp:
736         (WebKit::WebProcess::plugInDidStartFromOrigin):
737
738 2013-12-30  Anders Carlsson  <andersca@apple.com>
739
740         Move more of Connection over to STL threading primitives
741         https://bugs.webkit.org/show_bug.cgi?id=126308
742
743         Reviewed by Andreas Kling.
744
745         * Platform/IPC/Connection.cpp:
746         (IPC::BinarySemaphore::BinarySemaphore):
747         (IPC::BinarySemaphore::~BinarySemaphore):
748         (IPC::BinarySemaphore::signal):
749         (IPC::BinarySemaphore::wait):
750         Add a new BinarySemaphore class that uses STL threading primitives.
751
752         (IPC::Connection::SyncMessageState::wait):
753         Change this to take a std::chrono::steady_clock::time_point.
754
755         (IPC::absoluteTimeoutTime):
756         Add a new helper function that returns a time point from the a given timeout duration,
757         correctly handling the max duration.
758
759         (IPC::Connection::sendSyncMessageFromSecondaryThread):
760         Pass a time point to SyncMessageState::wait.
761
762         (IPC::Connection::waitForSyncReply):
763         Ditto.
764
765 2013-12-30  Ryuan Choi  <ryuan.choi@samsung.com>
766
767         Replace remaning CoreIPC namespace to IPC
768         https://bugs.webkit.org/show_bug.cgi?id=126305
769
770         Reviewed by Anders Carlsson.
771
772         This patch replaces CoreIPC to IPC in build scripts and source codes to fix
773         build break on CMake based ports and Gtk (and maybe IOS).
774
775         * CMakeLists.txt:
776         * GNUmakefile.am:
777         * GNUmakefile.list.am:
778         * Platform/IPC/unix/AttachmentUnix.cpp:
779         * Platform/IPC/unix/ConnectionUnix.cpp:
780         * Platform/unix/SharedMemoryUnix.cpp:
781         (WebKit::SharedMemory::Handle::encode):
782         (WebKit::SharedMemory::Handle::decode):
783         (WebKit::SharedMemory::Handle::releaseToAttachment):
784         * PlatformEfl.cmake:
785         * PlatformGTK.cmake:
786         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
787         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
788         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
789         (WebKit::WebCoordinatedSurface::Handle::encode):
790         (WebKit::WebCoordinatedSurface::Handle::decode):
791         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
792         * Shared/Downloads/soup/DownloadSoup.cpp:
793         (WebKit::DownloadClient::downloadFailed):
794         (WebKit::Download::cancel):
795         * Shared/WebBatteryStatus.cpp:
796         (WebKit::WebBatteryStatus::Data::encode):
797         (WebKit::WebBatteryStatus::Data::decode):
798         * Shared/WebBatteryStatus.h:
799         * Shared/WebNetworkInfo.cpp:
800         (WebKit::WebNetworkInfo::Data::encode):
801         (WebKit::WebNetworkInfo::Data::decode):
802         * Shared/WebNetworkInfo.h:
803         * Shared/cairo/LayerTreeContextCairo.cpp:
804         (WebKit::LayerTreeContext::encode):
805         (WebKit::LayerTreeContext::decode):
806         * Shared/efl/LayerTreeContextEfl.cpp:
807         (WebKit::LayerTreeContext::encode):
808         (WebKit::LayerTreeContext::decode):
809         * Shared/gtk/ArgumentCodersGtk.cpp:
810         * Shared/gtk/ArgumentCodersGtk.h:
811         * Shared/gtk/LayerTreeContextGtk.cpp:
812         (WebKit::LayerTreeContext::encode):
813         (WebKit::LayerTreeContext::decode):
814         * Shared/ios/WebPlatformTouchPointIOS.cpp:
815         (WebKit::WebPlatformTouchPoint::encode):
816         (WebKit::WebPlatformTouchPoint::decode):
817         * Shared/ios/WebTouchEventIOS.cpp:
818         (WebKit::WebTouchEvent::encode):
819         (WebKit::WebTouchEvent::decode):
820         * Shared/linux/SeccompFilters/OpenSyscall.cpp:
821         (WebKit::OpenSyscall::encode):
822         (WebKit::OpenSyscall::decode):
823         (WebKit::OpenSyscallResult::encode):
824         (WebKit::OpenSyscallResult::decode):
825         * Shared/linux/SeccompFilters/OpenSyscall.h:
826         * Shared/linux/SeccompFilters/SeccompBroker.cpp:
827         (WebKit::SeccompBrokerClient::dispatch):
828         (WebKit::SeccompBroker::runLoop):
829         * Shared/linux/SeccompFilters/Syscall.cpp:
830         (WebKit::Syscall::createFromDecoder):
831         (WebKit::SyscallResult::createFromDecoder):
832         * Shared/linux/SeccompFilters/Syscall.h:
833         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
834         (IPC::ArgumentCoder<CertificateInfo>::encode):
835         (IPC::ArgumentCoder<CertificateInfo>::decode):
836         * UIProcess/API/ios/PageClientImplIOS.h:
837         * UIProcess/API/ios/PageClientImplIOS.mm:
838         (WebKit::PageClientImpl::accessibilityWebProcessTokenReceived):
839         * UIProcess/API/mac/PDFViewController.h:
840         * UIProcess/API/mac/PDFViewController.mm:
841         (WebKit::convertPostScriptDataSourceToPDF):
842         (WebKit::PDFViewController::setPDFDocumentData):
843         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
844         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
845         * UIProcess/DrawingAreaProxyImpl.h:
846         * UIProcess/WebBatteryManagerProxy.h:
847         * UIProcess/WebNetworkInfoManagerProxy.h:
848         * UIProcess/WebVibrationProxy.h:
849         * UIProcess/ios/WebPageProxyIOS.mm:
850         (WebKit::WebPageProxy::registerWebProcessAccessibilityToken):
851         (WebKit::WebPageProxy::registerUIProcessAccessibilityTokens):
852         (WebKit::WebPageProxy::savePDFToTemporaryFolderAndOpenWithNativeApplication):
853         * UIProcess/soup/WebSoupRequestManagerProxy.h:
854         * WebProcess/Battery/WebBatteryManager.h:
855         * WebProcess/NetworkInfo/WebNetworkInfoManager.h:
856         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
857         (WebKit::CoordinatedDrawingArea::didReceiveCoordinatedLayerTreeHostMessage):
858         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
859         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
860         * WebProcess/WebPage/DrawingAreaImpl.h:
861         * WebProcess/WebPage/ios/WebPageIOS.mm:
862         (WebKit::WebPage::registerUIProcessAccessibilityTokens):
863         * WebProcess/ios/WebProcessIOS.mm:
864         (WebKit::WebProcess::platformInitializeWebProcess):
865         * WebProcess/soup/WebProcessSoup.cpp:
866         (WebKit::WebProcess::platformInitializeWebProcess):
867         * WebProcess/soup/WebSoupRequestManager.cpp:
868         (WebKit::WebSoupRequestManager::didHandleURIRequest):
869         (WebKit::WebSoupRequestManager::didReceiveURIRequestData):
870         * WebProcess/soup/WebSoupRequestManager.h:
871         * WebProcess/soup/WebSoupRequestManager.messages.in:
872
873 2013-12-30  Ryuan Choi  <ryuan.choi@samsung.com>
874
875         Unreviewed build fix attempt on GTK port after 161152
876
877         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
878         (WebKit::WebEditorClient::getEditorCommandsForKeyEvent):
879
880 2013-12-30  Anders Carlsson  <andersca@apple.com>
881
882         Use std::chrono::milliseconds for all IPC message timeouts
883         https://bugs.webkit.org/show_bug.cgi?id=126303
884
885         Reviewed by Andreas Kling.
886
887         * Platform/IPC/Connection.cpp:
888         (IPC::Connection::sendSyncMessage):
889         (IPC::Connection::sendSyncMessageFromSecondaryThread):
890         (IPC::Connection::waitForSyncReply):
891         * Platform/IPC/Connection.h:
892         (IPC::Connection::sendSync):
893         * Platform/IPC/MessageSender.h:
894         (IPC::MessageSender::sendSync):
895         * Shared/ChildProcessProxy.h:
896         (WebKit::ChildProcessProxy::sendSync):
897         * UIProcess/mac/WebPageProxyMac.mm:
898         (WebKit::WebPageProxy::stringSelectionForPasteboard):
899         (WebKit::WebPageProxy::dataSelectionForPasteboard):
900         (WebKit::WebPageProxy::readSelectionFromPasteboard):
901         (WebKit::WebPageProxy::shouldDelayWindowOrderingForEvent):
902         (WebKit::WebPageProxy::acceptsFirstMouse):
903         * WebProcess/InjectedBundle/InjectedBundle.cpp:
904         (WebKit::InjectedBundle::postSynchronousMessage):
905         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
906         (WebKit::WebChromeClient::runJavaScriptAlert):
907         (WebKit::WebChromeClient::runJavaScriptConfirm):
908         (WebKit::WebChromeClient::runJavaScriptPrompt):
909         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
910         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
911         * WebProcess/WebPage/WebInspector.cpp:
912         (WebKit::WebInspector::createInspectorPage):
913
914 2013-12-30  Anders Carlsson  <andersca@apple.com>
915
916         Remove empty directories.
917
918         * Platform/CoreIPC: Removed.
919         * Platform/CoreIPC/mac: Removed.
920         * Platform/CoreIPC/unix: Removed.
921
922 2013-12-30  Anders Carlsson  <andersca@apple.com>
923
924         Move code over to the IPC namespace.
925
926         Rubber-stamped by Andreas Kling.
927
928         * DatabaseProcess/DatabaseProcess.cpp:
929         (WebKit::DatabaseProcess::initializeConnection):
930         (WebKit::DatabaseProcess::didClose):
931         (WebKit::DatabaseProcess::didReceiveInvalidMessage):
932         (WebKit::DatabaseProcess::createDatabaseToWebProcessConnection):
933         * DatabaseProcess/DatabaseProcess.h:
934         * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
935         (WebKit::DatabaseToWebProcessConnection::create):
936         (WebKit::DatabaseToWebProcessConnection::DatabaseToWebProcessConnection):
937         (WebKit::DatabaseToWebProcessConnection::didReceiveMessage):
938         (WebKit::DatabaseToWebProcessConnection::didClose):
939         (WebKit::DatabaseToWebProcessConnection::didReceiveInvalidMessage):
940         * DatabaseProcess/DatabaseToWebProcessConnection.h:
941         (WebKit::DatabaseToWebProcessConnection::connection):
942         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
943         (WebKit::DatabaseProcessIDBConnection::messageSenderConnection):
944         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
945         * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
946         (WebKit::AsynchronousNetworkLoaderClient::willSendRequest):
947         (WebKit::AsynchronousNetworkLoaderClient::canAuthenticateAgainstProtectionSpace):
948         (WebKit::AsynchronousNetworkLoaderClient::didReceiveBuffer):
949         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
950         (WebKit::NetworkConnectionToWebProcess::create):
951         (WebKit::NetworkConnectionToWebProcess::NetworkConnectionToWebProcess):
952         (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
953         (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
954         (WebKit::NetworkConnectionToWebProcess::didClose):
955         (WebKit::NetworkConnectionToWebProcess::didReceiveInvalidMessage):
956         * NetworkProcess/NetworkConnectionToWebProcess.h:
957         (WebKit::NetworkConnectionToWebProcess::connection):
958         * NetworkProcess/NetworkProcess.cpp:
959         (WebKit::NetworkProcess::didReceiveMessage):
960         (WebKit::NetworkProcess::didReceiveSyncMessage):
961         (WebKit::NetworkProcess::didClose):
962         (WebKit::NetworkProcess::didReceiveInvalidMessage):
963         (WebKit::NetworkProcess::downloadProxyConnection):
964         (WebKit::NetworkProcess::initializeConnection):
965         (WebKit::NetworkProcess::createNetworkConnectionToWebProcess):
966         * NetworkProcess/NetworkProcess.h:
967         * NetworkProcess/NetworkResourceLoader.cpp:
968         (WebKit::NetworkResourceLoader::messageSenderConnection):
969         * NetworkProcess/NetworkResourceLoader.h:
970         * NetworkProcess/mac/DiskCacheMonitor.h:
971         * NetworkProcess/mac/DiskCacheMonitor.mm:
972         (WebKit::DiskCacheMonitor::messageSenderConnection):
973         * Platform/IPC/ArgumentCoder.h:
974         * Platform/IPC/ArgumentCoders.cpp:
975         * Platform/IPC/ArgumentCoders.h:
976         * Platform/IPC/ArgumentDecoder.cpp:
977         * Platform/IPC/ArgumentDecoder.h:
978         * Platform/IPC/ArgumentEncoder.cpp:
979         * Platform/IPC/ArgumentEncoder.h:
980         * Platform/IPC/Arguments.h:
981         * Platform/IPC/Attachment.cpp:
982         * Platform/IPC/Attachment.h:
983         * Platform/IPC/Connection.cpp:
984         (IPC::Connection::Connection):
985         * Platform/IPC/Connection.h:
986         * Platform/IPC/HandleMessage.h:
987         * Platform/IPC/MessageDecoder.cpp:
988         * Platform/IPC/MessageDecoder.h:
989         * Platform/IPC/MessageEncoder.cpp:
990         * Platform/IPC/MessageEncoder.h:
991         * Platform/IPC/MessageFlags.h:
992         * Platform/IPC/MessageReceiver.h:
993         * Platform/IPC/MessageReceiverMap.cpp:
994         * Platform/IPC/MessageReceiverMap.h:
995         * Platform/IPC/mac/ConnectionMac.cpp:
996         * Platform/IPC/mac/ImportanceAssertion.h:
997         * Platform/IPC/mac/MachPort.h:
998         * Platform/SharedMemory.h:
999         * Platform/mac/SharedMemoryMac.cpp:
1000         (WebKit::SharedMemory::Handle::encode):
1001         (WebKit::SharedMemory::Handle::decode):
1002         * PluginProcess/PluginControllerProxy.cpp:
1003         (WebKit::PluginControllerProxy::streamDidReceiveData):
1004         (WebKit::PluginControllerProxy::manualStreamDidReceiveData):
1005         * PluginProcess/PluginControllerProxy.h:
1006         * PluginProcess/PluginControllerProxy.messages.in:
1007         * PluginProcess/PluginCreationParameters.cpp:
1008         (WebKit::PluginCreationParameters::encode):
1009         (WebKit::PluginCreationParameters::decode):
1010         * PluginProcess/PluginCreationParameters.h:
1011         * PluginProcess/PluginProcess.cpp:
1012         (WebKit::PluginProcess::didReceiveMessage):
1013         (WebKit::PluginProcess::didClose):
1014         (WebKit::PluginProcess::didReceiveInvalidMessage):
1015         (WebKit::PluginProcess::createWebProcessConnection):
1016         * PluginProcess/PluginProcess.h:
1017         * PluginProcess/WebProcessConnection.cpp:
1018         (WebKit::WebProcessConnection::create):
1019         (WebKit::WebProcessConnection::WebProcessConnection):
1020         (WebKit::WebProcessConnection::setGlobalException):
1021         (WebKit::WebProcessConnection::didReceiveMessage):
1022         (WebKit::WebProcessConnection::didReceiveSyncMessage):
1023         (WebKit::WebProcessConnection::didClose):
1024         (WebKit::WebProcessConnection::didReceiveInvalidMessage):
1025         * PluginProcess/WebProcessConnection.h:
1026         (WebKit::WebProcessConnection::connection):
1027         * PluginProcess/mac/PluginControllerProxyMac.mm:
1028         (WebKit::PluginControllerProxy::setComplexTextInputState):
1029         * Scripts/webkit2/messages.py:
1030         (arguments_type_old):
1031         (message_to_struct_declaration):
1032         (forward_declarations_and_headers):
1033         (generate_messages_header):
1034         (async_message_statement):
1035         (sync_message_statement):
1036         (headers_for_type):
1037         (generate_message_handler):
1038         * Scripts/webkit2/messages_unittest.py:
1039         (IPC):
1040         (std):
1041         * Shared/API/Cocoa/RemoteObjectRegistry.h:
1042         * Shared/APIGeometry.cpp:
1043         (API::Point::encode):
1044         (API::Point::decode):
1045         (API::Size::encode):
1046         (API::Size::decode):
1047         (API::Rect::encode):
1048         (API::Rect::decode):
1049         * Shared/APIGeometry.h:
1050         * Shared/APINumber.h:
1051         (API::Number::encode):
1052         (API::Number::decode):
1053         * Shared/Authentication/AuthenticationManager.h:
1054         * Shared/ChildProcess.cpp:
1055         (WebKit::didCloseOnConnectionWorkQueue):
1056         (WebKit::ChildProcess::initialize):
1057         (WebKit::ChildProcess::initializeConnection):
1058         (WebKit::ChildProcess::addMessageReceiver):
1059         (WebKit::ChildProcess::removeMessageReceiver):
1060         (WebKit::ChildProcess::messageSenderConnection):
1061         * Shared/ChildProcess.h:
1062         (WebKit::ChildProcess::parentProcessConnection):
1063         (WebKit::ChildProcess::messageReceiverMap):
1064         * Shared/ChildProcessProxy.cpp:
1065         (WebKit::ChildProcessProxy::fromConnection):
1066         (WebKit::ChildProcessProxy::sendMessage):
1067         (WebKit::ChildProcessProxy::addMessageReceiver):
1068         (WebKit::ChildProcessProxy::removeMessageReceiver):
1069         (WebKit::ChildProcessProxy::dispatchMessage):
1070         (WebKit::ChildProcessProxy::dispatchSyncMessage):
1071         (WebKit::ChildProcessProxy::didFinishLaunching):
1072         (WebKit::ChildProcessProxy::connectionWillOpen):
1073         (WebKit::ChildProcessProxy::connectionWillClose):
1074         * Shared/ChildProcessProxy.h:
1075         (WebKit::ChildProcessProxy::connection):
1076         (WebKit::ChildProcessProxy::send):
1077         * Shared/ChildProcessSupplement.h:
1078         (WebKit::ChildProcessSupplement::initializeConnection):
1079         * Shared/ConnectionStack.h:
1080         (WebKit::ConnectionStack::current):
1081         (WebKit::ConnectionStack::CurrentConnectionPusher::CurrentConnectionPusher):
1082         * Shared/CoreIPCSupport/WebContextMessageKinds.h:
1083         (WebContextLegacyMessages::messageReceiverName):
1084         (WebContextLegacyMessages::postMessageMessageName):
1085         (WebContextLegacyMessages::postSynchronousMessageMessageName):
1086         * Shared/Databases/DatabaseProcessCreationParameters.cpp:
1087         (WebKit::DatabaseProcessCreationParameters::encode):
1088         (WebKit::DatabaseProcessCreationParameters::decode):
1089         * Shared/Databases/DatabaseProcessCreationParameters.h:
1090         * Shared/DictionaryPopupInfo.cpp:
1091         (WebKit::DictionaryPopupInfo::encode):
1092         (WebKit::DictionaryPopupInfo::decode):
1093         * Shared/DictionaryPopupInfo.h:
1094         * Shared/Downloads/Download.cpp:
1095         (WebKit::Download::didFail):
1096         (WebKit::Download::didCancel):
1097         (WebKit::Download::messageSenderConnection):
1098         * Shared/Downloads/Download.h:
1099         * Shared/Downloads/DownloadManager.cpp:
1100         (WebKit::DownloadManager::downloadProxyConnection):
1101         * Shared/Downloads/DownloadManager.h:
1102         * Shared/Downloads/mac/DownloadMac.mm:
1103         (WebKit::Download::cancel):
1104         (-[WKDownloadAsDelegate download:didFailWithError:]):
1105         * Shared/EditorState.cpp:
1106         (WebKit::EditorState::encode):
1107         (WebKit::EditorState::decode):
1108         * Shared/EditorState.h:
1109         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
1110         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
1111         (WebKit::ChildProcessMainDelegate::getConnectionIdentifier):
1112         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
1113         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.mm:
1114         (WebKit::XPCServiceInitializerDelegate::getConnectionIdentifier):
1115         * Shared/FileAPI/BlobRegistrationData.cpp:
1116         (WebKit::BlobRegistrationData::encode):
1117         (WebKit::BlobRegistrationData::decode):
1118         * Shared/FileAPI/BlobRegistrationData.h:
1119         * Shared/FontInfo.cpp:
1120         (WebKit::FontInfo::encode):
1121         (WebKit::FontInfo::decode):
1122         * Shared/FontInfo.h:
1123         * Shared/LayerTreeContext.h:
1124         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1125         * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
1126         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1127         (WebKit::CustomProtocolManager::initializeConnection):
1128         (WebKit::CustomProtocolManager::didLoadData):
1129         * Shared/Network/NetworkProcessCreationParameters.cpp:
1130         (WebKit::NetworkProcessCreationParameters::encode):
1131         (WebKit::NetworkProcessCreationParameters::decode):
1132         * Shared/Network/NetworkProcessCreationParameters.h:
1133         * Shared/Network/NetworkResourceLoadParameters.cpp:
1134         (WebKit::NetworkResourceLoadParameters::encode):
1135         (WebKit::NetworkResourceLoadParameters::decode):
1136         * Shared/Network/NetworkResourceLoadParameters.h:
1137         * Shared/OriginAndDatabases.cpp:
1138         (WebKit::OriginAndDatabases::encode):
1139         (WebKit::OriginAndDatabases::decode):
1140         * Shared/OriginAndDatabases.h:
1141         * Shared/PlatformPopupMenuData.cpp:
1142         (WebKit::PlatformPopupMenuData::encode):
1143         (WebKit::PlatformPopupMenuData::decode):
1144         * Shared/PlatformPopupMenuData.h:
1145         * Shared/Plugins/NPIdentifierData.cpp:
1146         (WebKit::NPIdentifierData::encode):
1147         (WebKit::NPIdentifierData::decode):
1148         * Shared/Plugins/NPIdentifierData.h:
1149         * Shared/Plugins/NPObjectMessageReceiver.h:
1150         * Shared/Plugins/NPRemoteObjectMap.cpp:
1151         (WebKit::NPRemoteObjectMap::create):
1152         (WebKit::NPRemoteObjectMap::NPRemoteObjectMap):
1153         (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
1154         * Shared/Plugins/NPRemoteObjectMap.h:
1155         (WebKit::NPRemoteObjectMap::connection):
1156         * Shared/Plugins/NPVariantData.cpp:
1157         (WebKit::NPVariantData::encode):
1158         (WebKit::NPVariantData::decode):
1159         * Shared/Plugins/NPVariantData.h:
1160         * Shared/Plugins/PluginProcessCreationParameters.cpp:
1161         (WebKit::PluginProcessCreationParameters::encode):
1162         (WebKit::PluginProcessCreationParameters::decode):
1163         * Shared/Plugins/PluginProcessCreationParameters.h:
1164         * Shared/PrintInfo.cpp:
1165         (WebKit::PrintInfo::encode):
1166         (WebKit::PrintInfo::decode):
1167         * Shared/PrintInfo.h:
1168         * Shared/SandboxExtension.h:
1169         (WebKit::SandboxExtension::Handle::encode):
1170         (WebKit::SandboxExtension::Handle::decode):
1171         (WebKit::SandboxExtension::HandleArray::encode):
1172         (WebKit::SandboxExtension::HandleArray::decode):
1173         * Shared/SecurityOriginData.cpp:
1174         (WebKit::SecurityOriginData::encode):
1175         (WebKit::SecurityOriginData::decode):
1176         * Shared/SecurityOriginData.h:
1177         * Shared/SessionState.cpp:
1178         (WebKit::SessionState::encode):
1179         (WebKit::SessionState::decode):
1180         * Shared/SessionState.h:
1181         * Shared/ShareableBitmap.cpp:
1182         (WebKit::ShareableBitmap::Handle::encode):
1183         (WebKit::ShareableBitmap::Handle::decode):
1184         * Shared/ShareableBitmap.h:
1185         * Shared/ShareableResource.cpp:
1186         (WebKit::ShareableResource::Handle::encode):
1187         (WebKit::ShareableResource::Handle::decode):
1188         * Shared/ShareableResource.h:
1189         * Shared/StatisticsData.cpp:
1190         (WebKit::StatisticsData::encode):
1191         (WebKit::StatisticsData::decode):
1192         * Shared/StatisticsData.h:
1193         * Shared/TextCheckerState.h:
1194         * Shared/UpdateInfo.cpp:
1195         (WebKit::UpdateInfo::encode):
1196         (WebKit::UpdateInfo::decode):
1197         * Shared/UpdateInfo.h:
1198         * Shared/UserData.cpp:
1199         (WebKit::UserData::encode):
1200         (WebKit::UserData::decode):
1201         * Shared/UserData.h:
1202         * Shared/UserMessageCoders.h:
1203         (WebKit::UserMessageEncoder::baseEncode):
1204         (WebKit::UserMessageDecoder::baseDecode):
1205         * Shared/WebBackForwardListItem.cpp:
1206         (WebKit::WebBackForwardListItem::encode):
1207         (WebKit::WebBackForwardListItem::decode):
1208         * Shared/WebBackForwardListItem.h:
1209         * Shared/WebConnection.cpp:
1210         (WebKit::WebConnection::postMessage):
1211         (WebKit::WebConnection::didReceiveMessage):
1212         (WebKit::WebConnection::handleMessage):
1213         * Shared/WebConnection.h:
1214         * Shared/WebContextMenuItemData.cpp:
1215         (WebKit::WebContextMenuItemData::encode):
1216         (WebKit::WebContextMenuItemData::decode):
1217         * Shared/WebContextMenuItemData.h:
1218         * Shared/WebCoreArgumentCoders.cpp:
1219         * Shared/WebCoreArgumentCoders.h:
1220         * Shared/WebEvent.cpp:
1221         (WebKit::WebEvent::encode):
1222         (WebKit::WebEvent::decode):
1223         * Shared/WebEvent.h:
1224         * Shared/WebGeolocationPosition.cpp:
1225         (WebKit::WebGeolocationPosition::Data::encode):
1226         (WebKit::WebGeolocationPosition::Data::decode):
1227         * Shared/WebGeolocationPosition.h:
1228         * Shared/WebHitTestResult.cpp:
1229         (WebKit::WebHitTestResult::Data::encode):
1230         (WebKit::WebHitTestResult::Data::decode):
1231         * Shared/WebHitTestResult.h:
1232         * Shared/WebKeyboardEvent.cpp:
1233         (WebKit::WebKeyboardEvent::encode):
1234         (WebKit::WebKeyboardEvent::decode):
1235         * Shared/WebMouseEvent.cpp:
1236         (WebKit::WebMouseEvent::encode):
1237         (WebKit::WebMouseEvent::decode):
1238         * Shared/WebNavigationDataStore.h:
1239         (WebKit::WebNavigationDataStore::encode):
1240         (WebKit::WebNavigationDataStore::decode):
1241         * Shared/WebPageCreationParameters.cpp:
1242         (WebKit::WebPageCreationParameters::encode):
1243         (WebKit::WebPageCreationParameters::decode):
1244         * Shared/WebPageCreationParameters.h:
1245         * Shared/WebPageGroupData.cpp:
1246         (WebKit::WebPageGroupData::encode):
1247         (WebKit::WebPageGroupData::decode):
1248         * Shared/WebPageGroupData.h:
1249         * Shared/WebPlatformTouchPoint.cpp:
1250         (WebKit::WebPlatformTouchPoint::encode):
1251         (WebKit::WebPlatformTouchPoint::decode):
1252         * Shared/WebPopupItem.cpp:
1253         (WebKit::WebPopupItem::encode):
1254         (WebKit::WebPopupItem::decode):
1255         * Shared/WebPopupItem.h:
1256         * Shared/WebPreferencesStore.cpp:
1257         (WebKit::WebPreferencesStore::encode):
1258         (WebKit::WebPreferencesStore::decode):
1259         * Shared/WebPreferencesStore.h:
1260         * Shared/WebProcessCreationParameters.cpp:
1261         (WebKit::WebProcessCreationParameters::encode):
1262         (WebKit::WebProcessCreationParameters::decode):
1263         * Shared/WebProcessCreationParameters.h:
1264         * Shared/WebSerializedScriptValue.h:
1265         (WebKit::WebSerializedScriptValue::dataReference):
1266         * Shared/WebTouchEvent.cpp:
1267         (WebKit::WebTouchEvent::encode):
1268         (WebKit::WebTouchEvent::decode):
1269         * Shared/WebWheelEvent.cpp:
1270         (WebKit::WebWheelEvent::encode):
1271         (WebKit::WebWheelEvent::decode):
1272         * Shared/cf/ArgumentCodersCF.cpp:
1273         (IPC::encode):
1274         (IPC::decode):
1275         * Shared/cf/ArgumentCodersCF.h:
1276         * Shared/mac/ArgumentCodersMac.h:
1277         * Shared/mac/ArgumentCodersMac.mm:
1278         (IPC::encode):
1279         (IPC::decode):
1280         * Shared/mac/AttributedString.h:
1281         * Shared/mac/AttributedString.mm:
1282         (WebKit::AttributedString::encode):
1283         (WebKit::AttributedString::decode):
1284         * Shared/mac/ColorSpaceData.h:
1285         * Shared/mac/ColorSpaceData.mm:
1286         (WebKit::ColorSpaceData::encode):
1287         (WebKit::ColorSpaceData::decode):
1288         * Shared/mac/LayerTreeContextMac.mm:
1289         (WebKit::LayerTreeContext::encode):
1290         (WebKit::LayerTreeContext::decode):
1291         * Shared/mac/ObjCObjectGraphCoders.h:
1292         * Shared/mac/ObjCObjectGraphCoders.mm:
1293         (WebKit::ObjCObjectGraphEncoder::baseEncode):
1294         (WebKit::ObjCObjectGraphDecoder::baseDecode):
1295         (WebKit::WebContextObjCObjectGraphEncoderImpl::encode):
1296         (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
1297         (WebKit::InjectedBundleObjCObjectGraphEncoderImpl::encode):
1298         (WebKit::InjectedBundleObjCObjectGraphDecoderImpl::decode):
1299         (WebKit::WebContextObjCObjectGraphEncoder::encode):
1300         (WebKit::WebContextObjCObjectGraphDecoder::decode):
1301         (WebKit::InjectedBundleObjCObjectGraphEncoder::encode):
1302         (WebKit::InjectedBundleObjCObjectGraphDecoder::decode):
1303         * Shared/mac/RemoteLayerBackingStore.h:
1304         * Shared/mac/RemoteLayerBackingStore.mm:
1305         (RemoteLayerBackingStore::encode):
1306         (RemoteLayerBackingStore::decode):
1307         * Shared/mac/RemoteLayerTreeTransaction.h:
1308         * Shared/mac/RemoteLayerTreeTransaction.mm:
1309         (WebKit::RemoteLayerTreeTransaction::LayerCreationProperties::encode):
1310         (WebKit::RemoteLayerTreeTransaction::LayerCreationProperties::decode):
1311         (WebKit::RemoteLayerTreeTransaction::LayerProperties::encode):
1312         (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
1313         (WebKit::RemoteLayerTreeTransaction::encode):
1314         (WebKit::RemoteLayerTreeTransaction::decode):
1315         * Shared/mac/SandboxExtensionMac.mm:
1316         (WebKit::SandboxExtension::Handle::encode):
1317         (WebKit::SandboxExtension::Handle::decode):
1318         (WebKit::SandboxExtension::HandleArray::encode):
1319         (WebKit::SandboxExtension::HandleArray::decode):
1320         * Shared/mac/SecItemRequestData.cpp:
1321         (WebKit::SecItemRequestData::encode):
1322         (WebKit::SecItemRequestData::decode):
1323         * Shared/mac/SecItemRequestData.h:
1324         * Shared/mac/SecItemResponseData.cpp:
1325         (WebKit::SecItemResponseData::encode):
1326         (WebKit::SecItemResponseData::decode):
1327         * Shared/mac/SecItemResponseData.h:
1328         * Shared/mac/SecItemShim.cpp:
1329         (WebKit::SecItemShim::initializeConnection):
1330         * Shared/mac/SecItemShim.h:
1331         * Shared/mac/WebCoreArgumentCodersMac.mm:
1332         (IPC::ArgumentCoder<ResourceRequest>::encodePlatformData):
1333         (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData):
1334         (IPC::ArgumentCoder<ResourceResponse>::encodePlatformData):
1335         (IPC::ArgumentCoder<ResourceResponse>::decodePlatformData):
1336         (IPC::ArgumentCoder<CertificateInfo>::encode):
1337         (IPC::ArgumentCoder<CertificateInfo>::decode):
1338         (IPC::ArgumentCoder<ResourceError>::encodePlatformData):
1339         (IPC::ArgumentCoder<ResourceError>::decodePlatformData):
1340         * UIProcess/API/mac/PageClientImpl.h:
1341         * UIProcess/API/mac/PageClientImpl.mm:
1342         (WebKit::PageClientImpl::accessibilityWebProcessTokenReceived):
1343         * UIProcess/API/mac/WKView.mm:
1344         (-[WKView _accessibilityRegisterUIProcessTokens]):
1345         * UIProcess/API/mac/WKViewInternal.h:
1346         * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
1347         (WebKit::AuthenticationChallengeProxy::AuthenticationChallengeProxy):
1348         * UIProcess/Authentication/AuthenticationChallengeProxy.h:
1349         (WebKit::AuthenticationChallengeProxy::create):
1350         * UIProcess/Databases/DatabaseProcessProxy.cpp:
1351         (WebKit::DatabaseProcessProxy::connectionWillOpen):
1352         (WebKit::DatabaseProcessProxy::connectionWillClose):
1353         (WebKit::DatabaseProcessProxy::getDatabaseProcessConnection):
1354         (WebKit::DatabaseProcessProxy::didClose):
1355         (WebKit::DatabaseProcessProxy::didReceiveInvalidMessage):
1356         (WebKit::DatabaseProcessProxy::didCreateDatabaseToWebProcessConnection):
1357         (WebKit::DatabaseProcessProxy::didFinishLaunching):
1358         * UIProcess/Databases/DatabaseProcessProxy.h:
1359         * UIProcess/Databases/DatabaseProcessProxy.messages.in:
1360         * UIProcess/Downloads/DownloadProxy.cpp:
1361         (WebKit::createData):
1362         (WebKit::DownloadProxy::didFail):
1363         (WebKit::DownloadProxy::didCancel):
1364         * UIProcess/Downloads/DownloadProxy.h:
1365         * UIProcess/Downloads/DownloadProxy.messages.in:
1366         * UIProcess/DrawingAreaProxy.h:
1367         * UIProcess/Launcher/ProcessLauncher.cpp:
1368         (WebKit::ProcessLauncher::didFinishLaunchingProcess):
1369         * UIProcess/Launcher/ProcessLauncher.h:
1370         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1371         (WebKit::connectToService):
1372         (WebKit::tryPreexistingProcess):
1373         (WebKit::createProcess):
1374         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
1375         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
1376         (-[WKCustomProtocolLoader connection:didReceiveData:]):
1377         * UIProcess/Network/NetworkProcessProxy.cpp:
1378         (WebKit::NetworkProcessProxy::connectionWillOpen):
1379         (WebKit::NetworkProcessProxy::connectionWillClose):
1380         (WebKit::NetworkProcessProxy::getNetworkProcessConnection):
1381         (WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch):
1382         (WebKit::NetworkProcessProxy::didReceiveMessage):
1383         (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
1384         (WebKit::NetworkProcessProxy::didClose):
1385         (WebKit::NetworkProcessProxy::didReceiveInvalidMessage):
1386         (WebKit::NetworkProcessProxy::didCreateNetworkConnectionToWebProcess):
1387         (WebKit::NetworkProcessProxy::didFinishLaunching):
1388         * UIProcess/Network/NetworkProcessProxy.h:
1389         * UIProcess/Network/NetworkProcessProxy.messages.in:
1390         * UIProcess/Notifications/WebNotification.h:
1391         * UIProcess/PageClient.h:
1392         * UIProcess/Plugins/PluginProcessManager.h:
1393         * UIProcess/Plugins/PluginProcessProxy.cpp:
1394         (WebKit::PluginProcessProxy::getPluginProcessConnection):
1395         (WebKit::PluginProcessProxy::pluginProcessCrashedOrFailedToLaunch):
1396         (WebKit::PluginProcessProxy::didClose):
1397         (WebKit::PluginProcessProxy::didReceiveInvalidMessage):
1398         (WebKit::PluginProcessProxy::didFinishLaunching):
1399         (WebKit::PluginProcessProxy::didCreateWebProcessConnection):
1400         * UIProcess/Plugins/PluginProcessProxy.h:
1401         * UIProcess/Plugins/PluginProcessProxy.messages.in:
1402         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
1403         (WebKit::PluginProcessProxy::platformInitializePluginProcess):
1404         * UIProcess/Storage/StorageManager.cpp:
1405         (WebKit::StorageManager::StorageArea::addListener):
1406         (WebKit::StorageManager::StorageArea::removeListener):
1407         (WebKit::StorageManager::StorageArea::setItem):
1408         (WebKit::StorageManager::StorageArea::removeItem):
1409         (WebKit::StorageManager::StorageArea::clear):
1410         (WebKit::StorageManager::StorageArea::dispatchEvents):
1411         (WebKit::StorageManager::SessionStorageNamespace::allowedConnection):
1412         (WebKit::StorageManager::SessionStorageNamespace::create):
1413         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
1414         (WebKit::StorageManager::SessionStorageNamespace::setAllowedConnection):
1415         (WebKit::StorageManager::createSessionStorageNamespace):
1416         (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnection):
1417         (WebKit::StorageManager::processWillCloseConnection):
1418         (WebKit::StorageManager::createLocalStorageMap):
1419         (WebKit::StorageManager::createSessionStorageMap):
1420         (WebKit::StorageManager::destroyStorageMap):
1421         (WebKit::StorageManager::getValues):
1422         (WebKit::StorageManager::setItem):
1423         (WebKit::StorageManager::removeItem):
1424         (WebKit::StorageManager::clear):
1425         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
1426         (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnectionInternal):
1427         (WebKit::StorageManager::invalidateConnectionInternal):
1428         (WebKit::StorageManager::findStorageArea):
1429         * UIProcess/Storage/StorageManager.h:
1430         * UIProcess/WebApplicationCacheManagerProxy.h:
1431         * UIProcess/WebConnectionToWebProcess.cpp:
1432         (WebKit::WebConnectionToWebProcess::encodeMessageBody):
1433         (WebKit::WebConnectionToWebProcess::decodeMessageBody):
1434         (WebKit::WebConnectionToWebProcess::messageSenderConnection):
1435         * UIProcess/WebConnectionToWebProcess.h:
1436         * UIProcess/WebContext.cpp:
1437         (WebKit::WebContext::networkingProcessConnection):
1438         (WebKit::WebContext::didReceiveInvalidMessage):
1439         (WebKit::WebContext::createNewWebProcess):
1440         (WebKit::WebContext::postMessageToInjectedBundle):
1441         (WebKit::WebContext::addMessageReceiver):
1442         (WebKit::WebContext::removeMessageReceiver):
1443         (WebKit::WebContext::dispatchMessage):
1444         (WebKit::WebContext::dispatchSyncMessage):
1445         (WebKit::WebContext::didReceiveMessage):
1446         (WebKit::WebContext::didReceiveSyncMessage):
1447         * UIProcess/WebContext.h:
1448         * UIProcess/WebContextUserMessageCoders.h:
1449         (WebKit::WebContextUserMessageEncoder::encode):
1450         (WebKit::WebContextUserMessageDecoder::decode):
1451         * UIProcess/WebCookieManagerProxy.h:
1452         * UIProcess/WebDatabaseManagerProxy.h:
1453         * UIProcess/WebEditCommandProxy.cpp:
1454         (WebKit::WebEditCommandProxy::unapply):
1455         (WebKit::WebEditCommandProxy::reapply):
1456         * UIProcess/WebFrameProxy.h:
1457         * UIProcess/WebFullScreenManagerProxy.h:
1458         * UIProcess/WebGeolocationManagerProxy.cpp:
1459         (WebKit::WebGeolocationManagerProxy::startUpdating):
1460         (WebKit::WebGeolocationManagerProxy::stopUpdating):
1461         (WebKit::WebGeolocationManagerProxy::removeRequester):
1462         (WebKit::WebGeolocationManagerProxy::setEnableHighAccuracy):
1463         * UIProcess/WebGeolocationManagerProxy.h:
1464         * UIProcess/WebIconDatabase.cpp:
1465         (WebKit::WebIconDatabase::setIconDataForIconURL):
1466         (WebKit::WebIconDatabase::synchronousIconDataForPageURL):
1467         * UIProcess/WebIconDatabase.h:
1468         * UIProcess/WebIconDatabase.messages.in:
1469         * UIProcess/WebInspectorProxy.h:
1470         * UIProcess/WebMediaCacheManagerProxy.h:
1471         * UIProcess/WebOriginDataManagerProxy.h:
1472         * UIProcess/WebPageProxy.cpp:
1473         (WebKit::WebPageProxy::willGoToBackForwardListItem):
1474         (WebKit::WebPageProxy::preferencesDidChange):
1475         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
1476         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
1477         (WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
1478         (WebKit::WebPageProxy::didCommitLoadForFrame):
1479         (WebKit::WebPageProxy::didFinishDocumentLoadForFrame):
1480         (WebKit::WebPageProxy::didFinishLoadForFrame):
1481         (WebKit::WebPageProxy::didFailLoadForFrame):
1482         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
1483         (WebKit::WebPageProxy::didReceiveTitleForFrame):
1484         (WebKit::WebPageProxy::didFirstLayoutForFrame):
1485         (WebKit::WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame):
1486         (WebKit::WebPageProxy::didLayout):
1487         (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
1488         (WebKit::WebPageProxy::didDisplayInsecureContentForFrame):
1489         (WebKit::WebPageProxy::didRunInsecureContentForFrame):
1490         (WebKit::WebPageProxy::didDetectXSSForFrame):
1491         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
1492         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
1493         (WebKit::WebPageProxy::decidePolicyForResponse):
1494         (WebKit::WebPageProxy::decidePolicyForResponseSync):
1495         (WebKit::WebPageProxy::unableToImplementPolicy):
1496         (WebKit::WebPageProxy::willSubmitForm):
1497         (WebKit::WebPageProxy::mouseDidMoveOverElement):
1498         (WebKit::WebPageProxy::connectionWillOpen):
1499         (WebKit::WebPageProxy::connectionWillClose):
1500         (WebKit::WebPageProxy::sendMessage):
1501         (WebKit::WebPageProxy::messageSenderConnection):
1502         (WebKit::WebPageProxy::showContextMenu):
1503         (WebKit::WebPageProxy::internalShowContextMenu):
1504         (WebKit::WebPageProxy::dataCallback):
1505         (WebKit::WebPageProxy::scriptValueCallback):
1506         (WebKit::WebPageProxy::beginPrinting):
1507         (WebKit::WebPageProxy::endPrinting):
1508         (WebKit::WebPageProxy::computePagesForPrinting):
1509         (WebKit::WebPageProxy::drawRectToImage):
1510         (WebKit::WebPageProxy::drawPagesToPDF):
1511         (WebKit::WebPageProxy::drawPagesForPrinting):
1512         (WebKit::WebPageProxy::savePDFToFileInDownloadsFolder):
1513         * UIProcess/WebPageProxy.h:
1514         * UIProcess/WebPageProxy.messages.in:
1515         * UIProcess/WebProcessProxy.cpp:
1516         (WebKit::WebProcessProxy::connectionWillOpen):
1517         (WebKit::WebProcessProxy::connectionWillClose):
1518         (WebKit::WebProcessProxy::addBackForwardItem):
1519         (WebKit::WebProcessProxy::didReceiveMessage):
1520         (WebKit::WebProcessProxy::didReceiveSyncMessage):
1521         (WebKit::WebProcessProxy::didClose):
1522         (WebKit::WebProcessProxy::didReceiveInvalidMessage):
1523         (WebKit::WebProcessProxy::didFinishLaunching):
1524         * UIProcess/WebProcessProxy.h:
1525         (WebKit::WebProcessProxy::fromConnection):
1526         * UIProcess/WebProcessProxy.messages.in:
1527         * UIProcess/WebResourceCacheManagerProxy.h:
1528         * UIProcess/cf/WebBackForwardListCF.cpp:
1529         (WebKit::WebBackForwardList::createCFDictionaryRepresentation):
1530         * UIProcess/mac/RemoteLayerTreeHost.h:
1531         * UIProcess/mac/SecItemShimProxy.cpp:
1532         (WebKit::SecItemShimProxy::initializeConnection):
1533         (WebKit::SecItemShimProxy::secItemRequest):
1534         * UIProcess/mac/SecItemShimProxy.h:
1535         * UIProcess/mac/ViewGestureController.h:
1536         * UIProcess/mac/WebContextMac.mm:
1537         (WebKit::WebContext::platformInitializeWebProcess):
1538         * UIProcess/mac/WebPageProxyMac.mm:
1539         (WebKit::WebPageProxy::registerWebProcessAccessibilityToken):
1540         (WebKit::WebPageProxy::registerUIProcessAccessibilityTokens):
1541         (WebKit::WebPageProxy::savePDFToTemporaryFolderAndOpenWithNativeApplication):
1542         * WebKit2.xcodeproj/project.pbxproj:
1543         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
1544         * WebProcess/Cookies/WebCookieManager.h:
1545         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
1546         (WebKit::WebIDBServerConnection::messageSenderConnection):
1547         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
1548         * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
1549         (WebKit::WebToDatabaseProcessConnection::WebToDatabaseProcessConnection):
1550         (WebKit::WebToDatabaseProcessConnection::didReceiveMessage):
1551         (WebKit::WebToDatabaseProcessConnection::didClose):
1552         (WebKit::WebToDatabaseProcessConnection::didReceiveInvalidMessage):
1553         * WebProcess/Databases/WebToDatabaseProcessConnection.h:
1554         (WebKit::WebToDatabaseProcessConnection::create):
1555         (WebKit::WebToDatabaseProcessConnection::connection):
1556         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
1557         (WebKit::WebContentProcessMainDelegate::getConnectionIdentifier):
1558         * WebProcess/FullScreen/WebFullScreenManager.cpp:
1559         (WebKit::WebFullScreenManager::didReceiveMessage):
1560         * WebProcess/FullScreen/WebFullScreenManager.h:
1561         * WebProcess/Geolocation/WebGeolocationManager.h:
1562         * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp:
1563         (WebKit::WebIconDatabaseProxy::synchronousIconForPageURL):
1564         (WebKit::WebIconDatabaseProxy::setIconDataForIconURL):
1565         * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
1566         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1567         (WebKit::InjectedBundle::postMessage):
1568         (WebKit::InjectedBundle::postSynchronousMessage):
1569         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
1570         (WebKit::InjectedBundleUserMessageEncoder::encode):
1571         (WebKit::InjectedBundleUserMessageDecoder::decode):
1572         * WebProcess/MediaCache/WebMediaCacheManager.h:
1573         * WebProcess/Network/NetworkProcessConnection.cpp:
1574         (WebKit::NetworkProcessConnection::NetworkProcessConnection):
1575         (WebKit::NetworkProcessConnection::didReceiveMessage):
1576         (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
1577         (WebKit::NetworkProcessConnection::didClose):
1578         (WebKit::NetworkProcessConnection::didReceiveInvalidMessage):
1579         * WebProcess/Network/NetworkProcessConnection.h:
1580         (WebKit::NetworkProcessConnection::create):
1581         (WebKit::NetworkProcessConnection::connection):
1582         * WebProcess/Network/WebResourceLoader.cpp:
1583         (WebKit::WebResourceLoader::messageSenderConnection):
1584         (WebKit::WebResourceLoader::didReceiveData):
1585         * WebProcess/Network/WebResourceLoader.h:
1586         * WebProcess/Network/WebResourceLoader.messages.in:
1587         * WebProcess/Notifications/WebNotificationManager.h:
1588         * WebProcess/OriginData/WebOriginDataManager.h:
1589         * WebProcess/Plugins/PDF/PDFPlugin.h:
1590         * WebProcess/Plugins/Plugin.cpp:
1591         (WebKit::Plugin::Parameters::encode):
1592         (WebKit::Plugin::Parameters::decode):
1593         * WebProcess/Plugins/Plugin.h:
1594         * WebProcess/Plugins/PluginProcessConnection.cpp:
1595         (WebKit::PluginProcessConnection::PluginProcessConnection):
1596         (WebKit::PluginProcessConnection::didReceiveMessage):
1597         (WebKit::PluginProcessConnection::didReceiveSyncMessage):
1598         (WebKit::PluginProcessConnection::didClose):
1599         (WebKit::PluginProcessConnection::didReceiveInvalidMessage):
1600         * WebProcess/Plugins/PluginProcessConnection.h:
1601         (WebKit::PluginProcessConnection::create):
1602         (WebKit::PluginProcessConnection::connection):
1603         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
1604         (WebKit::PluginProcessConnectionManager::initializeConnection):
1605         (WebKit::PluginProcessConnectionManager::getPluginProcessConnection):
1606         (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
1607         * WebProcess/Plugins/PluginProcessConnectionManager.h:
1608         * WebProcess/Plugins/PluginProxy.cpp:
1609         (WebKit::PluginProxy::geometryDidChange):
1610         (WebKit::PluginProxy::streamDidReceiveData):
1611         (WebKit::PluginProxy::manualStreamDidReceiveData):
1612         * WebProcess/Plugins/PluginProxy.h:
1613         * WebProcess/ResourceCache/WebResourceCacheManager.h:
1614         * WebProcess/Storage/StorageAreaMap.h:
1615         * WebProcess/WebConnectionToUIProcess.cpp:
1616         (WebKit::WebConnectionToUIProcess::encodeMessageBody):
1617         (WebKit::WebConnectionToUIProcess::decodeMessageBody):
1618         (WebKit::WebConnectionToUIProcess::messageSenderConnection):
1619         * WebProcess/WebConnectionToUIProcess.h:
1620         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1621         (WebKit::WebChromeClient::runJavaScriptAlert):
1622         (WebKit::WebChromeClient::runJavaScriptConfirm):
1623         (WebKit::WebChromeClient::runJavaScriptPrompt):
1624         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
1625         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1626         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1627         * WebProcess/WebPage/DecoderAdapter.cpp:
1628         (WebKit::DecoderAdapter::decodeBytes):
1629         (WebKit::DecoderAdapter::decodeString):
1630         * WebProcess/WebPage/DecoderAdapter.h:
1631         * WebProcess/WebPage/DrawingArea.h:
1632         * WebProcess/WebPage/EncoderAdapter.cpp:
1633         (WebKit::EncoderAdapter::dataReference):
1634         (WebKit::EncoderAdapter::encodeBytes):
1635         (WebKit::EncoderAdapter::encodeString):
1636         * WebProcess/WebPage/EncoderAdapter.h:
1637         * WebProcess/WebPage/EventDispatcher.cpp:
1638         (WebKit::EventDispatcher::initializeConnection):
1639         * WebProcess/WebPage/EventDispatcher.h:
1640         * WebProcess/WebPage/LayerTreeHost.h:
1641         * WebProcess/WebPage/ViewGestureGeometryCollector.h:
1642         * WebProcess/WebPage/WebInspector.cpp:
1643         (WebKit::WebInspector::createInspectorPage):
1644         * WebProcess/WebPage/WebInspector.h:
1645         * WebProcess/WebPage/WebPage.cpp:
1646         (WebKit::WebPage::messageSenderConnection):
1647         (WebKit::WebPage::loadURL):
1648         (WebKit::WebPage::loadURLRequest):
1649         (WebKit::WebPage::loadDataImpl):
1650         (WebKit::WebPage::loadString):
1651         (WebKit::WebPage::loadData):
1652         (WebKit::WebPage::loadHTMLString):
1653         (WebKit::WebPage::loadAlternateHTMLString):
1654         (WebKit::WebPage::loadPlainTextString):
1655         (WebKit::WebPage::loadWebArchiveData):
1656         (WebKit::WebPage::postInjectedBundleMessage):
1657         (WebKit::WebPage::runJavaScriptInMainFrame):
1658         (WebKit::WebPage::getContentsAsMHTMLData):
1659         (WebKit::WebPage::getSelectionAsWebArchiveData):
1660         (WebKit::WebPage::getMainResourceDataOfFrame):
1661         (WebKit::WebPage::getResourceDataFromFrame):
1662         (WebKit::WebPage::getWebArchiveOfFrame):
1663         (WebKit::WebPage::didReceiveMessage):
1664         (WebKit::WebPage::didReceiveSyncMessage):
1665         (WebKit::WebPage::drawPagesToPDF):
1666         (WebKit::WebPage::savePDFToFileInDownloadsFolder):
1667         (WebKit::WebPage::savePDFToTemporaryFolderAndOpenWithNativeApplication):
1668         * WebProcess/WebPage/WebPage.h:
1669         * WebProcess/WebPage/WebPage.messages.in:
1670         * WebProcess/WebPage/WebPageGroupProxy.h:
1671         * WebProcess/WebPage/mac/WebPageMac.mm:
1672         (WebKit::WebPage::platformInitialize):
1673         (WebKit::WebPage::registerUIProcessAccessibilityTokens):
1674         * WebProcess/WebProcess.cpp:
1675         (WebKit::WebProcess::initializeConnection):
1676         (WebKit::WebProcess::downloadProxyConnection):
1677         (WebKit::WebProcess::initializeWebProcess):
1678         (WebKit::WebProcess::ensureNetworkProcessConnection):
1679         (WebKit::WebProcess::didReceiveSyncMessage):
1680         (WebKit::WebProcess::didReceiveMessage):
1681         (WebKit::WebProcess::didClose):
1682         (WebKit::WebProcess::didReceiveInvalidMessage):
1683         (WebKit::WebProcess::postInjectedBundleMessage):
1684         (WebKit::WebProcess::ensureWebToDatabaseProcessConnection):
1685         * WebProcess/WebProcess.h:
1686         * WebProcess/WebProcess.messages.in:
1687         * WebProcess/mac/WebProcessMac.mm:
1688         (WebKit::WebProcess::platformInitializeWebProcess):
1689         * config.h:
1690
1691 2013-12-30  Anders Carlsson  <andersca@apple.com>
1692
1693         Move remaining IPC related files to Platform/IPC.
1694
1695         Rubber-stamped by Andreas Kling.
1696
1697         * Platform/IPC/ArgumentCoder.h: Renamed from Source/WebKit2/Platform/CoreIPC/ArgumentCoder.h.
1698         * Platform/IPC/ArgumentCoders.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/ArgumentCoders.cpp.
1699         * Platform/IPC/ArgumentCoders.h: Renamed from Source/WebKit2/Platform/CoreIPC/ArgumentCoders.h.
1700         * Platform/IPC/ArgumentDecoder.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/ArgumentDecoder.cpp.
1701         * Platform/IPC/ArgumentDecoder.h: Renamed from Source/WebKit2/Platform/CoreIPC/ArgumentDecoder.h.
1702         * Platform/IPC/ArgumentEncoder.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp.
1703         * Platform/IPC/ArgumentEncoder.h: Renamed from Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.h.
1704         * Platform/IPC/Arguments.h: Renamed from Source/WebKit2/Platform/CoreIPC/Arguments.h.
1705         * Platform/IPC/Attachment.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/Attachment.cpp.
1706         * Platform/IPC/Attachment.h: Renamed from Source/WebKit2/Platform/CoreIPC/Attachment.h.
1707         * Platform/IPC/Connection.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/Connection.cpp.
1708         * Platform/IPC/Connection.h: Renamed from Source/WebKit2/Platform/CoreIPC/Connection.h.
1709         * Platform/IPC/HandleMessage.h: Renamed from Source/WebKit2/Platform/CoreIPC/HandleMessage.h.
1710         * Platform/IPC/MessageDecoder.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/MessageDecoder.cpp.
1711         * Platform/IPC/MessageDecoder.h: Renamed from Source/WebKit2/Platform/CoreIPC/MessageDecoder.h.
1712         * Platform/IPC/MessageEncoder.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/MessageEncoder.cpp.
1713         * Platform/IPC/MessageEncoder.h: Renamed from Source/WebKit2/Platform/CoreIPC/MessageEncoder.h.
1714         * Platform/IPC/MessageFlags.h: Renamed from Source/WebKit2/Platform/CoreIPC/MessageFlags.h.
1715         * Platform/IPC/MessageReceiver.h: Renamed from Source/WebKit2/Platform/CoreIPC/MessageReceiver.h.
1716         * Platform/IPC/MessageReceiverMap.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/MessageReceiverMap.cpp.
1717         * Platform/IPC/MessageReceiverMap.h: Renamed from Source/WebKit2/Platform/CoreIPC/MessageReceiverMap.h.
1718         * Platform/IPC/mac/ConnectionMac.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp.
1719         * Platform/IPC/mac/ImportanceAssertion.h: Renamed from Source/WebKit2/Platform/CoreIPC/mac/ImportanceAssertion.h.
1720         * Platform/IPC/mac/MachPort.h: Renamed from Source/WebKit2/Platform/CoreIPC/mac/MachPort.h.
1721         * Platform/IPC/unix/AttachmentUnix.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/unix/AttachmentUnix.cpp.
1722         * Platform/IPC/unix/ConnectionUnix.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/unix/ConnectionUnix.cpp.
1723         * WebKit2.xcodeproj/project.pbxproj:
1724
1725 2013-12-30  Martin Robinson  <mrobinson@igalia.com>
1726
1727         [GTK] [CMake] Parallel build sometimes fails when building libWebKit2APITestCore
1728         https://bugs.webkit.org/show_bug.cgi?id=126294
1729
1730         Reviewed by Daniel Bates.
1731
1732         * UIProcess/API/gtk/tests/CMakeLists.txt: Give libWebKit2APITestCore a dependency on
1733         WebKit2 so that it's always built before the auto-generated sources.
1734
1735 2013-12-30  Martin Robinson  <mrobinson@igalia.com>
1736
1737         [CMake] [GTK] Add support for GObject introspection
1738         https://bugs.webkit.org/show_bug.cgi?id=126162
1739
1740         Reviewed by Daniel Bates.
1741
1742         * PlatformGTK.cmake: Add the GIR targets, split the installed headers list
1743         between WebKitWebExtension and the WebKit2 library. Update the headers list
1744         with new headers.
1745
1746 2013-12-30  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
1747
1748         [EFL][WK2] Replace ecore_main_loop_iterate with waitUntilTrue in ewk tests
1749         https://bugs.webkit.org/show_bug.cgi?id=125919
1750
1751         Reviewed by Gyuyoung Kim.
1752
1753         Using ecore_main_loop_iterate in while loop may result in tests hang-up when
1754         condition is not met. Replacing it with waitUntilTrue introduces a timer
1755         after which internal loop is canceled. This will cause test to fail instead
1756         of running infinitely.
1757
1758         * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp:
1759         (TEST_F):
1760         * UIProcess/API/efl/tests/test_ewk2_color_picker.cpp:
1761         (TEST_F):
1762         * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
1763         (TEST_F):
1764         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
1765         (EWK2ViewTest::onVibrate):
1766         (EWK2ViewTest::onCancelVibration):
1767         (EWK2ViewTest::loadVibrationHTMLString):
1768         (TEST_F):
1769
1770 2013-12-30  Carlos Garcia Campos  <cgarcia@igalia.com>
1771
1772         [GTK] Split WebKit2APITests/TestWebKitWebView
1773         https://bugs.webkit.org/show_bug.cgi?id=126284
1774
1775         Reviewed by Philippe Normand.
1776
1777         WebKitWebView test is too big already making more difficult to
1778         handle timeouts and skipped tests. Split it in 3 by moving
1779         UIClient and auth tests to their own files.
1780
1781         * UIProcess/API/gtk/tests/GNUmakefile.am:
1782         * UIProcess/API/gtk/tests/TestAuthentication.cpp: Added.
1783         (testWebViewAuthenticationRequest):
1784         (testWebViewAuthenticationCancel):
1785         (testWebViewAuthenticationLoadCancelled):
1786         (testWebViewAuthenticationFailure):
1787         (testWebViewAuthenticationNoCredential):
1788         (testWebViewAuthenticationStorage):
1789         (testWebViewAuthenticationSuccess):
1790         (serverCallback):
1791         (beforeAll):
1792         (afterAll):
1793         * UIProcess/API/gtk/tests/TestUIClient.cpp: Added.
1794         (testWebViewCreateReadyClose):
1795         (checkMimeTypeForFilter):
1796         (testWebViewAllowModalDialogs):
1797         (testWebViewDisallowModalDialogs):
1798         (testWebViewJavaScriptDialogs):
1799         (testWebViewWindowProperties):
1800         (testWebViewMouseTarget):
1801         (testWebViewPermissionRequests):
1802         (testWebViewFileChooserRequest):
1803         (beforeAll):
1804         (afterAll):
1805         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
1806         (beforeAll):
1807         (afterAll):
1808
1809 2013-12-29  Martin Robinson  <mrobinson@igalia.com>
1810
1811         [GTK] [CMake] Convenience libraries that export API should be compiled with --whole-archive on Unix
1812         https://bugs.webkit.org/show_bug.cgi?id=126232
1813
1814         Reviewed by Gustavo Noronha Silva.
1815
1816         * PlatformGTK.cmake: Prefix libGObjectDOMBindings with --whole-archive so that
1817         symbols are not omitted during final linking.
1818
1819 2013-12-26  Sam Weinig  <sam@webkit.org>
1820
1821         Move FilterIterator and IteratorPair to WTF and reimplement HashMap::keys() and HashMap::values() using IteratorPair
1822         https://bugs.webkit.org/show_bug.cgi?id=126253
1823
1824         Reviewed by Anders Carlsson.
1825
1826         * Shared/APIArray.h:
1827         Update includes and make elementsOfType() a bit easier to read by using a typedef and some
1828         judicial indentation.
1829
1830         * Shared/FilterIterator.h: Moved to WTF.
1831         * Shared/IteratorPair.h: Moved to WTF.
1832         
1833         * WebKit2.xcodeproj/project.pbxproj:
1834         Remove the two files.
1835
1836 2013-12-28  Kwang Yul Seo  <skyul@company100.net>
1837
1838         [WK2][SOUP] Fix handling of cookies when network process is enabled
1839         https://bugs.webkit.org/show_bug.cgi?id=125576
1840
1841         Reviewed by Carlos Garcia Campos.
1842
1843         Initialize the network process with cookie accept policy, persistent
1844         storage path and type. Use
1845         WebContext::sendToNetworkingProcessRelaunchingIfNecessary instead of
1846         WebContext::sendToAllProcessesRelaunchingThemIfNecessary to send
1847         SetCookiePersistentStorage message.
1848
1849         * NetworkProcess/soup/NetworkProcessSoup.cpp:
1850         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
1851         * Shared/Network/NetworkProcessCreationParameters.cpp:
1852         (WebKit::NetworkProcessCreationParameters::encode):
1853         (WebKit::NetworkProcessCreationParameters::decode):
1854         * Shared/Network/NetworkProcessCreationParameters.h:
1855         * UIProcess/soup/WebContextSoup.cpp:
1856         (WebKit::WebContext::platformInitializeNetworkProcess):
1857         * UIProcess/soup/WebCookieManagerProxySoup.cpp:
1858         (WebKit::WebCookieManagerProxy::setCookiePersistentStorage):
1859         * WebProcess/soup/WebProcessSoup.cpp:
1860         (WebKit::WebProcess::platformInitializeWebProcess):
1861
1862 2013-12-27  Daniel Bates  <dabates@apple.com>
1863
1864         [iOS] Upstream WebCore/page changes
1865         https://bugs.webkit.org/show_bug.cgi?id=126180
1866
1867         Reviewed by Darin Adler.
1868
1869         * WebProcess/WebCoreSupport/WebChromeClient.h:
1870         * WebProcess/WebCoreSupport/ios/WebChromeClientIOS.mm: Added.
1871         * WebProcess/WebPage/WebPage.cpp: Include header <WebCore/HitTestResult.h>.
1872
1873 2013-12-27  Gavin Barraclough  <barraclough@apple.com>
1874
1875         Merge PageVisibilityState & ViewState::IsVisible in WebKit2
1876         https://bugs.webkit.org/show_bug.cgi?id=126214
1877
1878         Reviewed by Alexey Proskuryakov.
1879
1880         WebKit2 redundantly tracks the visibility of the view through two mechanisms - the visibility
1881         state, and the view state. Remove visibility state from the WebKit2 layer. The visibility
1882         state also tracks the prerender state - so split this out and handle it separately (a change
1883         we should make in WebCore, too).
1884
1885         Removing the redundancy also removes the ability from the API to set a fake visibility state
1886         (IsVisible tracks the actual visibility of the view). Through private API
1887         (WKPageSetVisibilityState) a client could previously request the view be reported as hidden or
1888         visible, but this didn't really work - the override was not enforced and the API may reset the
1889         state at an arbitrary point. The mechanism is only used by testing code, which instead should
1890         actually update the view visibility (this tests more of the actual visibility mechanisms used
1891         by the browser). The one aspect of the API relied on by existing clients is the ability to
1892         initialize a hidden view as prerender - continue to support this specific functionality via
1893         WKPageSetVisibilityState, to maintain backwards compatibility.
1894
1895         - WebKit2 - remove internal state that tracks page visibility separately from the view state
1896         visibility. For backwards compatibility continue to support the WKPageSetVisibilityState API,
1897         but only to initialize the state to prerender.
1898
1899         * UIProcess/API/C/WKPage.cpp:
1900         (WKPageSetVisibilityState):
1901             - only support initializing the visibility state to prerender.
1902         * UIProcess/WebPageProxy.cpp:
1903         (WebKit::WebPageProxy::WebPageProxy):
1904             - remove m_visibilityState
1905         (WebKit::WebPageProxy::initializeWebPage):
1906             - no need to send initial visibility state (this is sent as a part of the creation parameters).
1907         (WebKit::WebPageProxy::viewStateDidChange):
1908             - no need to send visibility state change (this is sent as a part of view state).
1909         (WebKit::WebPageProxy::setVisibilityStatePrerender):
1910             - setVisibilityState -> setVisibilityStatePrerender.
1911         * UIProcess/WebPageProxy.h:
1912             - remove m_visibilityState, setVisibilityState -> setVisibilityStatePrerender.
1913         * WebProcess/WebPage/WebPage.cpp:
1914         (WebKit::WebPage::WebPage):
1915             - added call to updateVisibilityState.
1916         (WebKit::WebPage::setViewIsVisible):
1917             - added call to updateVisibilityState.
1918         (WebKit::WebPage::updateVisibilityState):
1919             - previously setVisibilityState, updates the page visibility state according to the view state.
1920         (WebKit::WebPage::setVisibilityStatePrerender):
1921             - set visibility state to prerender.
1922         * WebProcess/WebPage/WebPage.h:
1923             - remove m_visibilityState, setVisibilityState -> setVisibilityStatePrerender.
1924         * WebProcess/WebPage/WebPage.messages.in:
1925             - SetVisibilityState -> SetVisibilityStatePrerender.
1926
1927 2013-12-27  Zan Dobersek  <zdobersek@igalia.com>
1928
1929         [GTK] Unnecessary code is built into WebKitPluginProcess
1930         https://bugs.webkit.org/show_bug.cgi?id=126259
1931
1932         Reviewed by Carlos Garcia Campos.
1933
1934         * GNUmakefile.list.am: Stop building ChildProcessProxy and ProcessLauncher classes into WebKitPluginProcess.
1935         That code is not required in the plugin process, as one would expect.
1936
1937 2013-12-27  Ryuan Choi  <ryuan.choi@samsung.com>
1938
1939         [EFL][WK2] MiniBrowser scale up/down infinitely after r161087
1940         https://bugs.webkit.org/show_bug.cgi?id=126254
1941
1942         Reviewed by Gyuyoung Kim.
1943
1944         After r161087, contentScaleFactor of WebView is synced with pageScaleFactor
1945         of WebPage. It means that WKViewGetContentScaleFactor might not be same
1946         with PageViewportController's current scale value until received PageScaleFactorDidChange.
1947
1948         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
1949         (WebKit::PageViewportControllerClientEfl::setViewportPosition):
1950         Use controller's current scale just to update and sync the position.
1951
1952 2013-12-26  Martin Robinson  <mrobinson@igalia.com>
1953
1954         Small build fix for the GTK+ CMake port
1955
1956         * UIProcess/API/gtk/tests/CMakeLists.txt: Make the way the output directory is specified similar
1957         to the WebKit1 version of these tests, so that it is more difficult to inadvertently specify the
1958         wrong directory.
1959
1960 2013-12-26  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
1961
1962         [WK2][CoordinatedGraphics] Removing duplicate scale information from WebVIew.cpp
1963         https://bugs.webkit.org/show_bug.cgi?id=126243
1964
1965         Reviewed by Benjamin Poulain.
1966
1967         The scale factor of the WebView must reflect the same information present in
1968         WebPageProxy.
1969         Previously, in WebView.cpp, there was a m_contentScaleFactor member, which adds
1970         information duplication and needs to be synchronizing with pageScaleFactor in
1971         WebPageProxy. We can avoid this by just making WebView access and set WebPageProxy's
1972         pageScaleFactor directly.
1973
1974         * UIProcess/CoordinatedGraphics/WebView.cpp:
1975         (WebKit::WebView::WebView):
1976         (WebKit::WebView::setContentScaleFactor):
1977         (WebKit::WebView::transformToScene):
1978         (WebKit::WebView::visibleContentsSize):
1979         * UIProcess/CoordinatedGraphics/WebView.h:
1980         (WebKit::WebView::contentScaleFactor):
1981
1982 2013-12-25  Commit Queue  <commit-queue@webkit.org>
1983
1984         Unreviewed, rolling out r161033 and r161074.
1985         http://trac.webkit.org/changeset/161033
1986         http://trac.webkit.org/changeset/161074
1987         https://bugs.webkit.org/show_bug.cgi?id=126240
1988
1989         Oliver says that a rollout would be better (Requested by ap on
1990         #webkit).
1991
1992         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
1993         (WebKit::NPJSObject::setProperty):
1994
1995 2013-12-25  Brady Eidson  <beidson@apple.com>
1996
1997         DatabaseProcess: Implement version changing
1998         https://bugs.webkit.org/show_bug.cgi?id=126099
1999
2000         Reviewed by Sam Weinig.
2001
2002         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
2003         (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata): Add logging.
2004         (WebKit::DatabaseProcessIDBConnection::openTransaction): Ditto.
2005         (WebKit::DatabaseProcessIDBConnection::beginTransaction): Ditto.
2006         (WebKit::DatabaseProcessIDBConnection::commitTransaction): Ditto.
2007         (WebKit::DatabaseProcessIDBConnection::resetTransaction): Ditto.
2008         (WebKit::DatabaseProcessIDBConnection::rollbackTransaction): Ditto.
2009         (WebKit::DatabaseProcessIDBConnection::changeDatabaseVersion): Implement this!
2010         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
2011         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
2012
2013         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
2014         (WebKit::UniqueIDBDatabase::shutdown): Clean up all requests, and also cleanup the backing store
2015           on the database queue.
2016         (WebKit::UniqueIDBDatabase::shutdownBackingStore): Shutdown the backing store.
2017         (WebKit::UniqueIDBDatabase::didShutdownBackingStore):
2018         (WebKit::UniqueIDBDatabase::changeDatabaseVersion): Pass along the new version to the database queue.
2019         (WebKit::UniqueIDBDatabase::didChangeDatabaseVersion):
2020         (WebKit::UniqueIDBDatabase::changeDatabaseVersionInBackingStore): Set the new version in the backing store.
2021         (WebKit::UniqueIDBDatabase::postMainThreadTask): Add a ref() to keep the database alive incase it is being
2022           shutdown on the main thread.
2023         (WebKit::UniqueIDBDatabase::performNextMainThreadTask): Balance the ref() from postMainThreadTask, and
2024           accept an empty mainThreadTask queue.
2025         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
2026
2027         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h: Add changeDatabaseVersion.
2028
2029         Flesh out SQLiteIDBTransaction to actually operation on a SQLiteTransaction in a real SQLiteDatabase:
2030         * DatabaseProcess/IndexedDB/sqlite/SQLiteIDBTransaction.cpp:
2031         (WebKit::SQLiteIDBTransaction::SQLiteIDBTransaction):
2032         (WebKit::SQLiteIDBTransaction::~SQLiteIDBTransaction):
2033         (WebKit::SQLiteIDBTransaction::begin):
2034         (WebKit::SQLiteIDBTransaction::commit):
2035         (WebKit::SQLiteIDBTransaction::reset):
2036         (WebKit::SQLiteIDBTransaction::rollback):
2037         (WebKit::SQLiteIDBTransaction::inProgress):
2038         * DatabaseProcess/IndexedDB/sqlite/SQLiteIDBTransaction.h:
2039         (WebKit::SQLiteIDBTransaction::create):
2040         (WebKit::SQLiteIDBTransaction::mode):
2041
2042         Rename m_metadataDB to m_sqliteDB, 
2043         * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
2044         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createAndPopulateInitialMetadata):
2045         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::extractExistingMetadata):
2046         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::openSQLiteDatabaseAtPath): Disable threading checks on the DB
2047           as work queues can change threads.
2048         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::getOrEstablishMetadata):
2049         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::establishTransaction):
2050         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::beginTransaction):
2051         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::changeDatabaseVersion): After validating the transaction, actually
2052           update the version number on disk.
2053         * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:
2054
2055         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
2056         (WebKit::WebIDBServerConnection::~WebIDBServerConnection): Make sure to abort in-flight requests.
2057         (WebKit::WebIDBServerConnection::changeDatabaseVersion): 
2058         (WebKit::WebIDBServerConnection::didChangeDatabaseVersion):
2059         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
2060         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
2061
2062 2013-12-25  Martin Robinson  <mrobinson@igalia.com>
2063
2064         [GTK] [CMake] Fix CMake style errors in Source/WebKit2/PlatformGTK.cmake
2065         https://bugs.webkit.org/show_bug.cgi?id=126221
2066
2067         Reviewed by Gustavo Noronha Silva.
2068
2069         * PlatformGTK.cmake: Fix CMake style errors.
2070
2071 2013-12-25  Martin Robinson  <mrobinson@igalia.com>
2072
2073         [GTK] [CMake] Clean up generated sources directories
2074         https://bugs.webkit.org/show_bug.cgi?id=126216
2075
2076         Reviewed by Gustavo Noronha Silva.
2077
2078         * PlatformGTK.cmake: Use the new derived sources variables.
2079         * UIProcess/API/gtk/tests/CMakeLists.txt: Ditto.
2080
2081 2013-12-25  Philippe Normand  <pnormand@igalia.com>
2082
2083         Unreviewed, GTK build fix after r161063
2084
2085         * GNUmakefile.am: Use locally built .gir dependencies when
2086         building the WebExtensions gir file.
2087
2088 2013-12-25  Carlos Garcia Campos  <cgarcia@igalia.com>
2089
2090         [GTK] Fix warnings when generating WebExtensions gobject-instrospection files
2091         https://bugs.webkit.org/show_bug.cgi?id=126225
2092
2093         Reviewed by Philippe Normand.
2094
2095         Add transfer annotation to webkit_web_page_get_dom_document() and
2096         document webkit_web_page_get_main_frame().
2097
2098         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
2099
2100 2013-12-25  Carlos Garcia Campos  <cgarcia@igalia.com>
2101
2102         [GTK] Missing introspection information for WebExtensions
2103         https://bugs.webkit.org/show_bug.cgi?id=122407
2104
2105         Reviewed by Philippe Normand.
2106
2107         Generate WebKit2WebExtension-3.0.gir with the WebExtensions API
2108         and move the DOM bindings API from WebKit2-3.0.gir to
2109         WebKit2WebExtension-3.0.gir.
2110
2111         * GNUmakefile.am:
2112
2113 2013-12-24  Ryosuke Niwa  <rniwa@webkit.org>
2114
2115         32-bit Mac build fix attempt after r161045.
2116
2117         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
2118         (WebKit::windowMap):
2119
2120 2013-12-22  Sam Weinig  <sam@webkit.org>
2121
2122         [WK2] Replace usage of DEFINE_STATIC_LOCAL with NeverDestroyed
2123         https://bugs.webkit.org/show_bug.cgi?id=126144
2124
2125         Reviewed by Anders Carlsson.
2126
2127         * DatabaseProcess/DatabaseProcess.cpp:
2128         (WebKit::DatabaseProcess::shared):
2129         * DatabaseProcess/DatabaseProcess.h:
2130         * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp:
2131         (WebKit::NetworkBlobRegistry::shared):
2132         * NetworkProcess/NetworkProcess.cpp:
2133         (WebKit::NetworkProcess::shared):
2134         (WebKit::NetworkProcess::downloadManager):
2135         * NetworkProcess/NetworkProcess.h:
2136         * NetworkProcess/NetworkProcessPlatformStrategies.cpp:
2137         (WebKit::NetworkProcessPlatformStrategies::initialize):
2138         * NetworkProcess/mac/RemoteNetworkingContext.mm:
2139         (WebKit::privateBrowsingStorageSessionIdentifierBase):
2140         * Platform/CoreIPC/Connection.cpp:
2141         (CoreIPC::Connection::SyncMessageState::syncMessageStateMap):
2142         (CoreIPC::Connection::SyncMessageState::syncMessageStateMapMutex):
2143         * PluginProcess/PluginProcess.cpp:
2144         (WebKit::PluginProcess::shared):
2145         * PluginProcess/PluginProcess.h:
2146         * PluginProcess/mac/PluginProcessMac.mm:
2147         (WebKit::fullscreenWindowTracker):
2148         * Shared/ConnectionStack.cpp:
2149         (WebKit::ConnectionStack::shared):
2150         * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
2151         (WebKit::initializedNetscapePluginModules):
2152         * Shared/WebContextMenuItem.cpp:
2153         (WebKit::WebContextMenuItem::separatorItem):
2154         * Shared/WebPreferencesStore.cpp:
2155         (WebKit::boolTestRunnerOverridesMap):
2156         * Shared/mac/CookieStorageShim.cpp:
2157         (WebKit::CookieStorageShim::shared):
2158         * Shared/mac/CookieStorageShim.h:
2159         (WebKit::CookieStorageShim::CookieStorageShim):
2160         * UIProcess/Plugins/PluginProcessManager.cpp:
2161         (WebKit::PluginProcessManager::shared):
2162         * UIProcess/Plugins/PluginProcessManager.h:
2163         * UIProcess/WebContext.cpp:
2164         (WebKit::contexts):
2165         * UIProcess/WebDatabaseManagerProxy.cpp:
2166         (WebKit::WebDatabaseManagerProxy::originKey):
2167         (WebKit::WebDatabaseManagerProxy::originQuotaKey):
2168         (WebKit::WebDatabaseManagerProxy::originUsageKey):
2169         (WebKit::WebDatabaseManagerProxy::databaseDetailsKey):
2170         (WebKit::WebDatabaseManagerProxy::databaseDetailsNameKey):
2171         (WebKit::WebDatabaseManagerProxy::databaseDetailsDisplayNameKey):
2172         (WebKit::WebDatabaseManagerProxy::databaseDetailsExpectedUsageKey):
2173         (WebKit::WebDatabaseManagerProxy::databaseDetailsCurrentUsageKey):
2174         * UIProcess/WebInspectorProxy.cpp:
2175         (WebKit::WebInspectorPageGroups::shared):
2176         * UIProcess/WebPageGroup.cpp:
2177         (WebKit::webPageGroupMap):
2178         * UIProcess/WebPageProxy.cpp:
2179         (WebKit::ExceededDatabaseQuotaRecords::shared):
2180         (WebKit::WebPageProxy::executeEditCommand):
2181         * UIProcess/WebProcessProxy.cpp:
2182         (WebKit::globalPageMap):
2183         * UIProcess/cf/WebBackForwardListCF.cpp:
2184         (WebKit::SessionHistoryCurrentVersion):
2185         (WebKit::createEmptySessionHistoryDictionary):
2186         (WebKit::WebBackForwardList::createCFDictionaryRepresentation):
2187         (WebKit::WebBackForwardList::restoreFromCFDictionaryRepresentation):
2188         (WebKit::WebBackForwardList::restoreFromV0CFDictionaryRepresentation):
2189         (WebKit::WebBackForwardList::restoreFromV1CFDictionaryRepresentation):
2190         (WebKit::extractBackForwardListEntriesFromArray):
2191         * UIProcess/cf/WebPageProxyCF.cpp:
2192         (WebKit::WebPageProxy::sessionStateData):
2193         (WebKit::WebPageProxy::restoreFromSessionStateData):
2194         * UIProcess/mac/WebPageProxyMac.mm:
2195         (WebKit::WebPageProxy::standardUserAgent):
2196         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
2197         (WebKit::sharedDatabaseBackendMap):
2198         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
2199         (WebKit::generateServerConnectionIdentifier):
2200         * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm:
2201         (WebKit::WKDOMNodeCache):
2202         (WebKit::WKDOMRangeCache):
2203         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
2204         (WebKit::domHandleCache):
2205         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
2206         (WebKit::domHandleCache):
2207         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
2208         (WebKit::allExtensions):
2209         * WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp:
2210         (WebKit::allWorlds):
2211         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
2212         (WebKit::globalExceptionString):
2213         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
2214         (WebKit::windowMap):
2215         * WebProcess/Storage/StorageNamespaceImpl.cpp:
2216         (WebKit::localStorageNamespaceMap):
2217         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2218         (WebKit::WebEditorClient::didBeginEditing):
2219         (WebKit::WebEditorClient::respondToChangedContents):
2220         (WebKit::WebEditorClient::respondToChangedSelection):
2221         (WebKit::WebEditorClient::didEndEditing):
2222         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2223         (WebKit::WebFrameLoaderClient::shouldFallBack):
2224         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2225         (WebKit::WebPlatformStrategies::initialize):
2226         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
2227         * WebProcess/WebPage/WebBackForwardListProxy.cpp:
2228         (WebKit::idToHistoryItemMap):
2229         (WebKit::historyItemToIDMap):
2230         * WebProcess/WebProcess.cpp:
2231         (WebKit::WebProcess::downloadManager):
2232         * WebProcess/WebProcess.h:
2233         * config.h:
2234
2235 2013-12-23  Tim Horton  <timothy_horton@apple.com>
2236
2237         Fix the iOS build after r161013 and r160672.
2238
2239         * Shared/mac/RemoteLayerTreePropertyApplier.mm:
2240         (WebKit::updateCustomAppearance):
2241         * Shared/mac/RemoteLayerTreeTransaction.mm:
2242
2243 2013-12-23  Ryuan Choi  <ryuan.choi@samsung.com>
2244
2245         Unreviewed build fix for EFL after r161007
2246
2247         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
2248         (WebKit::CoordinatedDrawingAreaProxy::waitForAndDispatchDidUpdateBackingStoreState):
2249         Changed the timeout parameter to std::chrono::milliseconds
2250
2251 2013-12-23  Oliver Hunt  <oliver@apple.com>
2252
2253         Refactor PutPropertySlot to be aware of custom properties
2254         https://bugs.webkit.org/show_bug.cgi?id=126187
2255
2256         Reviewed by msaboff.
2257
2258         Update for new method signatures.
2259
2260         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
2261         (WebKit::NPJSObject::setProperty):
2262
2263 2013-12-23  Zan Dobersek  <zdobersek@igalia.com>
2264
2265         [GTK][WK2] Simplify ProcessExecutablePathGtk
2266         https://bugs.webkit.org/show_bug.cgi?id=126173
2267
2268         Reviewed by Martin Robinson.
2269
2270         Don't store process name strings in global variables -- each of the names is only used in the relevant
2271         function, so the string can be directly passed into the findWebKitProcess function call.
2272
2273         Simplify the findWebKitProcess function. Make the execDirectory variable static so that g_getenv is only
2274         called once, as it's not expected for the WEBKIT_EXEC_PATH environment variable to change during the runtime.
2275
2276         Introduce the getExecutablePath helper function that gets the current executable path and, if non-null, returns
2277         the directory path of that executable. The helper function preserves the small performance improvement of querying
2278         and processing the executable path only once.
2279         The return value of getExecutablePath is stored in a static variable and is used to construct the process path
2280         if the executable path was successfully retrieved.
2281
2282         * Shared/gtk/ProcessExecutablePathGtk.cpp:
2283         (WebKit::getExecutablePath):
2284         (WebKit::findWebKitProcess):
2285         (WebKit::executablePathOfWebProcess):
2286         (WebKit::executablePathOfPluginProcess):
2287         (WebKit::executablePathOfNetworkProcess):
2288
2289 2013-12-23  Zan Dobersek  <zdobersek@igalia.com>
2290
2291         Unreviewed build fix for GTK and EFL after r161007.
2292
2293         * UIProcess/DrawingAreaProxyImpl.cpp:
2294         (WebKit::DrawingAreaProxyImpl::waitForAndDispatchDidUpdateBackingStoreState):
2295         Use std::chrono::milliseconds instead of double for the timeout parameter to
2296         CoreIPC::Connection::waitForAndDispatchImmediately.
2297
2298 2013-12-23  Gustavo Noronha Silva  <gns@gnome.org>
2299
2300         [GTK] [CMake] Add support for generating gtkdoc
2301         https://bugs.webkit.org/show_bug.cgi?id=116376
2302
2303         Reviewed by Martin Robinson.
2304
2305         * PlatformGTK.cmake: make generated API files go to DerivedSources/WebKit2, to
2306         match the autotools build and gtkdoc.py's expectation.
2307
2308 2013-12-23  Martin Robinson  <mrobinson@igalia.com>
2309
2310         [GTK] [CMake] Build the WebKit2 GObject API tests
2311         https://bugs.webkit.org/show_bug.cgi?id=125683
2312
2313         Reviewed by Daniel Bates.
2314
2315         * UIProcess/API/gtk/tests/CMakeLists.txt: Added.
2316
2317 2013-12-23  Tim Horton  <timothy_horton@apple.com>
2318
2319         REGRESSION (r160672): Random remote layers are getting shadows
2320         https://bugs.webkit.org/show_bug.cgi?id=126126
2321
2322         Reviewed by Anders Carlsson.
2323
2324         In http://trac.webkit.org/changeset/160672, we unconditionally
2325         check m_properties.customAppearance without regard for whether it
2326         has ever been initialized. This would result in sending an uninitialized
2327         custom appearance to the UI process, which could end up requesting a shadow.
2328
2329         * Shared/mac/RemoteLayerTreeTransaction.mm:
2330         (WebKit::RemoteLayerTreeTransaction::LayerProperties::LayerProperties):
2331         Initialize LayerProperties to the CoreAnimation defaults.
2332
2333         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
2334         (PlatformCALayerRemote::PlatformCALayerRemote):
2335         Remove wrongly-placed default initialization of contentsScale;
2336         there's no reason to send it across the wire for every new layer
2337         if it's left at the default.
2338
2339 2013-12-23  Anders Carlsson  <andersca@apple.com>
2340
2341         Use std::chrono::milliseconds for message wait timeouts in WebKit2
2342         https://bugs.webkit.org/show_bug.cgi?id=126168
2343
2344         Reviewed by Sam Weinig.
2345
2346         * Platform/CoreIPC/Connection.cpp:
2347         (CoreIPC::Connection::waitForMessage):
2348         * Platform/CoreIPC/Connection.h:
2349         (CoreIPC::Connection::waitForAndDispatchImmediately):
2350         * UIProcess/API/mac/WKView.mm:
2351         (-[WKView forceAsyncDrawingAreaSizeUpdate:]):
2352         (-[WKView waitForAsyncDrawingAreaSizeUpdate]):
2353         * UIProcess/DrawingAreaProxy.cpp:
2354         * UIProcess/DrawingAreaProxy.h:
2355         (WebKit::DrawingAreaProxy::didUpdateBackingStoreStateTimeout):
2356         (WebKit::DrawingAreaProxy::waitForPossibleGeometryUpdate):
2357         * UIProcess/WebPageProxy.cpp:
2358         (WebKit::WebPageProxy::waitForDidUpdateViewState):
2359         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
2360         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
2361         (WebKit::TiledCoreAnimationDrawingAreaProxy::waitForPossibleGeometryUpdate):
2362
2363 2013-12-23  Anders Carlsson  <andersca@apple.com>
2364
2365         Include <condition_variable>, not <thread>.
2366
2367         * Platform/CoreIPC/Connection.h:
2368         * Shared/BlockingResponseMap.h:
2369         * UIProcess/API/mac/WKPrintingView.h:
2370
2371 2013-12-23  Lucas Forschler  <lforschler@apple.com>
2372
2373         <rdar://problem/15682948> Update copyright strings
2374
2375         Reviewed by Dan Bernstein
2376
2377         * DatabaseProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2378         * DatabaseProcess/EntryPoint/mac/XPCService/DatabaseService.Development/Info.plist:
2379         * DatabaseProcess/EntryPoint/mac/XPCService/DatabaseService/Info.plist:
2380         * Info.plist:
2381         * NetworkProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2382         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info.plist:
2383         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX.plist:
2384         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-iOS.plist:
2385         * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2386         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist:
2387         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
2388         * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2389         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
2390         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-iOS.plist:
2391         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
2392
2393 2013-12-23  Anders Carlsson  <andersca@apple.com>
2394
2395         Convert ThreadCondition in WebKit2 over to std::condition_variable
2396         https://bugs.webkit.org/show_bug.cgi?id=126161
2397
2398         Reviewed by Sam Weinig.
2399
2400         * Platform/CoreIPC/Connection.cpp:
2401         (CoreIPC::Connection::waitForMessage):
2402         (CoreIPC::Connection::processIncomingMessage):
2403         * Platform/CoreIPC/Connection.h:
2404         * Shared/BlockingResponseMap.h:
2405         (BlockingResponseMap::waitForResponse):
2406         (BlockingResponseMap::didReceiveResponse):
2407         (BlockingResponseMap::cancel):
2408         * UIProcess/API/mac/WKPrintingView.h:
2409         * UIProcess/API/mac/WKPrintingView.mm:
2410         (pageDidDrawToPDF):
2411         (-[WKPrintingView _preparePDFDataForPrintingOnSecondaryThread]):
2412         (prepareDataForPrintingOnSecondaryThread):
2413         (-[WKPrintingView knowsPageRange:]):
2414
2415 2013-12-22  Martin Robinson  <mrobinson@igalia.com>
2416
2417         [GTK][CMake] libtool-compatible soversion calculation
2418         https://bugs.webkit.org/show_bug.cgi?id=125511
2419
2420         Reviewed by Gustavo Noronha Silva.
2421
2422         * CMakeLists.txt: Use the POPULATE_LIBRARY_VERSION macro and the
2423         library-specific version information.
2424
2425 2013-12-23  Gustavo Noronha Silva  <gns@gnome.org>
2426
2427         [GTK] [CMake] Generate pkg-config files
2428         https://bugs.webkit.org/show_bug.cgi?id=125685
2429
2430         Reviewed by Martin Robinson.
2431
2432         * PlatformGTK.cmake: generate webkit2gtk.pc.
2433
2434 2013-12-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2435
2436         [GTK] Build with network process unconditionally
2437         https://bugs.webkit.org/show_bug.cgi?id=126128
2438
2439         Reviewed by Martin Robinson.
2440
2441         Build always with the network process enabled and decide whether
2442         to use it or not using an environment variable. This makes a lot
2443         easier to work on the network process and also to switch between
2444         using it or not.
2445
2446         * GNUmakefile.am: Make sure we always include the WebKit2Prefix.h.
2447         * UIProcess/API/gtk/WebKitWebContext.cpp:
2448         (createDefaultWebContext): Use the network process when
2449         WEBKIT_USE_NETWORK_PROCESS environment variable is present.
2450         * WebKit2Prefix.h: Always enable network process for GTK port.
2451
2452 2013-12-23  Brian Holt  <brian.holt@samsung.com>
2453
2454         [WK2] Implement platform specific Resource Response for SOUP
2455         https://bugs.webkit.org/show_bug.cgi?id=125422
2456
2457         Reviewed by Martin Robinson.
2458
2459         SOUP specific Resource Response implementation for the Network
2460         Process.
2461
2462         * NetworkProcess/NetworkResourceLoader.cpp:
2463         (WebKit::NetworkResourceLoader::continueWillSendRequest):
2464         * WebProcess/Network/WebResourceLoader.cpp:
2465         (WebKit::WebResourceLoader::didReceiveResponseWithCertificateInfo):
2466
2467 2013-12-22  Kwang Yul Seo  <skyul@company100.net>
2468
2469         [WK2][SOUP] WebContext::allowSpecificHTTPSCertificateForHost does not work correctly when m_usesNetworkProcess is false
2470         https://bugs.webkit.org/show_bug.cgi?id=125564
2471
2472         Reviewed Carlos Garcia Campos.
2473
2474         WebContext::allowSpecificHTTPSCertificateForHost should send
2475         AllowSpecificHTTPSCertificateForHost to the web process when
2476         m_usesNetworkProcess is false. Also we shouldn't guard
2477         WebProcess::allowSpecificHTTPSCertificateForHost with
2478         !ENABLE(NETWORK_PROCESS) because we need this method when
2479         m_usesNetworkProcess is false.
2480
2481         * UIProcess/WebContext.cpp:
2482         (WebKit::WebContext::allowSpecificHTTPSCertificateForHost):
2483         * WebProcess/WebProcess.h:
2484         * WebProcess/WebProcess.messages.in:
2485         * WebProcess/soup/WebProcessSoup.cpp:
2486
2487 2013-12-22  Martin Robinson  <mrobinson@igalia.com>
2488
2489         [GTK][CMake] Integrate GResource for inspector files (and others?)
2490         https://bugs.webkit.org/show_bug.cgi?id=125569
2491
2492         Reviewed by Gustavo Noronha Silva.
2493
2494         * GNUmakefile.am: Use the newly added static WebKit2InspectorGResourceBundle.xml
2495         instead of generating the same file each time.
2496         * PlatformGTK.cmake: Add support for building the GResource bundles into WebKit2.
2497         * UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml: Added.
2498
2499 2013-12-22  Csaba Osztrogonác  <ossy@webkit.org>
2500
2501         URTBF after r160971 to try to make EFL build again.
2502
2503         * WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp:
2504         (WebKit::internalError):
2505
2506 2013-12-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2507
2508         Unreviewed. Fix GTK+ build after r160971 and r160969.
2509
2510         * GNUmakefile.list.am:
2511         * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
2512         (webkit_file_chooser_request_select_files):
2513         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
2514         (didReceiveWebViewMessageFromInjectedBundle):
2515         * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
2516         (webkitURISchemeRequestCreate):
2517         * UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h:
2518         * UIProcess/API/gtk/WebKitWebResource.cpp:
2519         (webkit_web_resource_get_data):
2520         * UIProcess/soup/WebSoupRequestManagerClient.h:
2521         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
2522         (WebKit::internalError):
2523
2524 2013-12-21  Ryuan Choi  <ryuan.choi@samsung.com>
2525
2526         Unreviewed build fix attempt on EFL port after r160971 and r160969
2527
2528         * CMakeLists.txt:
2529         * UIProcess/soup/WebSoupRequestManagerClient.cpp:
2530         (WebKit::WebSoupRequestManagerClient::didReceiveURIRequest):
2531         * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
2532         (WebKit::WebSoupRequestManagerProxy::didReceiveURIRequest):
2533
2534 2013-12-21  Sam Weinig  <sam@webkit.org>
2535
2536         [WK2] Rename WebError to API::Error
2537         https://bugs.webkit.org/show_bug.cgi?id=126125
2538
2539         Reviewed by Anders Carlsson.
2540
2541         * Shared/API/c/WKError.cpp:
2542         (WKErrorGetTypeID):
2543         (WKErrorCopyWKErrorDomain):
2544         * Shared/API/c/WKSharedAPICast.h:
2545         (WebKit::toAPI):
2546         * Shared/API/c/cf/WKErrorCF.cpp:
2547         (WKErrorCreateWithCFError):
2548         * Shared/APIError.cpp: Copied from Source/WebKit2/Shared/WebError.cpp.
2549         (API::Error::webKitErrorDomain):
2550         (API::Error::encode):
2551         (API::Error::decode):
2552         * Shared/APIError.h: Copied from Source/WebKit2/Shared/WebError.h.
2553         (API::Error::create):
2554         (API::Error::domain):
2555         (API::Error::failingURL):
2556         (API::Error::localizedDescription):
2557         (API::Error::Error):
2558         * Shared/Cocoa/WKNSError.h:
2559         (WebKit::wrapper):
2560         * Shared/Cocoa/WKNSError.mm:
2561         (-[WKNSError _web_createTarget]):
2562         * Shared/UserData.cpp:
2563         (WebKit::UserData::encode):
2564         (WebKit::UserData::decode):
2565         * Shared/UserMessageCoders.h:
2566         (WebKit::UserMessageEncoder::baseEncode):
2567         (WebKit::UserMessageDecoder::baseDecode):
2568         * Shared/WebError.cpp: Removed.
2569         * Shared/WebError.h: Removed.
2570         * UIProcess/AutoCorrectionCallback.h:
2571         (WebKit::AutocorrectionDataCallback::invalidate):
2572         * UIProcess/GenericCallback.h:
2573         (WebKit::VoidCallback::invalidate):
2574         (WebKit::GenericCallback::invalidate):
2575         (WebKit::ComputedPagesCallback::invalidate):
2576         (WebKit::ImageCallback::invalidate):
2577         * UIProcess/WebPageProxy.cpp:
2578         (WebKit::WebPageProxy::printFinishedCallback):
2579         * UIProcess/WebPageProxy.h:
2580         (WebKit::ValidateCommandCallback::invalidate):
2581         (WebKit::GestureCallback::invalidate):
2582         (WebKit::TouchesCallback::invalidate):
2583         * WebKit2.xcodeproj/project.pbxproj:
2584         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
2585         * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
2586         * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm:
2587         (WebKit::blockedError):
2588         (WebKit::cannotShowURLError):
2589         (WebKit::interruptedForPolicyChangeError):
2590         (WebKit::cannotShowMIMETypeError):
2591         (WebKit::pluginWillHandleLoadError):
2592         (WebKit::internalError):
2593
2594 2013-12-20  Sam Weinig  <sam@webkit.org>
2595
2596         [WK2] Rename WebURL to API::URL
2597         https://bugs.webkit.org/show_bug.cgi?id=126100
2598
2599         Reviewed by Anders Carlsson.
2600
2601         * Shared/API/c/WKSharedAPICast.h:
2602         (WebKit::toURLRef):
2603         (WebKit::toCopiedURLAPI):
2604         * Shared/API/c/WKURL.cpp:
2605         (WKURLGetTypeID):
2606         (WKURLCreateWithUTF8CString):
2607         (WKURLCreateWithBaseURL):
2608         * Shared/API/c/cf/WKURLCF.mm:
2609         (WKURLCreateWithCFURL):
2610         * Shared/APIURL.h: Copied from Source/WebKit2/Shared/WebURL.h.
2611         (API::URL::create):
2612         (API::URL::string):
2613         (API::URL::host):
2614         (API::URL::protocol):
2615         (API::URL::path):
2616         (API::URL::lastPathComponent):
2617         (API::URL::encode):
2618         (API::URL::decode):
2619         (API::URL::URL):
2620         * Shared/Cocoa/WKNSURL.h:
2621         (WebKit::wrapper):
2622         * Shared/Cocoa/WKNSURL.mm:
2623         (-[WKNSURL _web_createTarget]):
2624         * Shared/Plugins/Netscape/PluginInformation.cpp:
2625         (WebKit::createPluginInformationDictionary):
2626         * Shared/UserData.cpp:
2627         (WebKit::UserData::encode):
2628         (WebKit::UserData::decode):
2629         * Shared/UserMessageCoders.h:
2630         (WebKit::UserMessageEncoder::baseEncode):
2631         (WebKit::UserMessageDecoder::baseDecode):
2632         * Shared/WebArchiveResource.h:
2633         * Shared/WebURL.h: Removed.
2634         * UIProcess/WebFrameProxy.cpp:
2635         (WebKit::WebFrameProxy::getResourceData):
2636         * UIProcess/WebFrameProxy.h:
2637         * UIProcess/WebIconDatabase.cpp:
2638         (WebKit::WebIconDatabase::didChangeIconForPageURL):
2639         (WebKit::WebIconDatabase::notifyIconDataReadyForPageURL):
2640         * UIProcess/WebIconDatabaseClient.cpp:
2641         (WebKit::WebIconDatabaseClient::didChangeIconForPageURL):
2642         (WebKit::WebIconDatabaseClient::iconDataReadyForPageURL):
2643         * UIProcess/WebIconDatabaseClient.h:
2644         * UIProcess/WebOpenPanelResultListenerProxy.cpp:
2645         (WebKit::WebOpenPanelResultListenerProxy::chooseFiles):
2646         * UIProcess/WebPageProxy.cpp:
2647         (WebKit::WebPageProxy::getResourceDataFromFrame):
2648         * UIProcess/WebPageProxy.h:
2649         * WebKit2.xcodeproj/project.pbxproj:
2650         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2651
2652 2013-12-21  Carlos Garcia Campos  <cgarcia@igalia.com>
2653
2654         [GTK] Test /webkit2/WebKitWebResource/mime-type fails when run after /webkit2/WebKitWebView/resources
2655         https://bugs.webkit.org/show_bug.cgi?id=126119
2656
2657         Reviewed by Martin Robinson.
2658
2659         The problem is that when the blank.ico resource is loaded from the
2660         disk cache, the mime type is null, because the soup cache doesn't
2661         cache sniffed mime types. This doesn't happen when a resource is
2662         loaded form the memory cache, because the ResourceResponse is
2663         cached, not only the headers. I think the disk cache should also
2664         cache the sniffed content type, but that needs to be done in
2665         soup. For now we can workaround the issue in the unit test by
2666         making sure that resources that can be cached, also include the
2667         Content-Type header, this way the mime type won't be sniffed and
2668         it will be cached as a HTTP header in the disk cache.
2669
2670         * UIProcess/API/gtk/tests/TestResources.cpp:
2671         (serverCallback): Add Content-Type header for resources that can
2672         be cached.
2673
2674 2013-12-21  Carlos Garcia Campos  <cgarcia@igalia.com>
2675
2676         REGRESSION(r160909): [GTK] Tests /webkit2/WebKitWebView/default-menu and /webkit2/WebKitSettings/webkit-settings fail
2677         https://bugs.webkit.org/show_bug.cgi?id=126117
2678
2679         Reviewed by Martin Robinson.
2680
2681         In r160909 the fullscreen setting default value was changed, but
2682         the unit tests relaying on the default value were not updated
2683         accordingly.
2684
2685         * UIProcess/API/gtk/tests/TestContextMenu.cpp:
2686         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
2687         (testWebKitSettings):
2688
2689 2013-12-20  Jaehun Lim  <ljaehun.lim@samsung.com>
2690
2691         Unreviewed build fix after r160939
2692
2693         Add ENABLE(CUSTOM_PROTOCOLS) guard.
2694
2695         * UIProcess/WebContext.cpp:
2696
2697 2013-12-20  Simon Fraser  <simon.fraser@apple.com>
2698
2699         Change "threaded scrolling" terminology to "asynchronous scrolling"
2700         https://bugs.webkit.org/show_bug.cgi?id=126094
2701
2702         Reviewed by Tim Horton.
2703         
2704         Rename ENABLE_THREADED_SCROLLING to ENABLE_ASYNC_SCROLLING, and change
2705         references to "main thread scrolling" to "synchronous scrolling".
2706
2707         * WebProcess/WebPage/EventDispatcher.cpp:
2708         (WebKit::EventDispatcher::wheelEvent):
2709         * WebProcess/WebPage/EventDispatcher.h:
2710         * WebProcess/WebPage/WebPage.cpp:
2711         (WebKit::WebPage::WebPage):
2712         (WebKit::WebPage::~WebPage):
2713         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2714         (WebKit::TiledCoreAnimationDrawingArea::didInstallPageOverlay):
2715         (WebKit::TiledCoreAnimationDrawingArea::didUninstallPageOverlay):
2716         (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
2717         (WebKit::TiledCoreAnimationDrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):
2718
2719 2013-12-20  Ricky Mondello  <rmondello@apple.com>
2720
2721         Rename PlugInAutoStartProvider's ...EntriesAddedBeforeTime facility to ...EntriesAddedAfterTime
2722         https://bugs.webkit.org/show_bug.cgi?id=126078
2723
2724         Reviewed by Anders Carlsson.
2725
2726         r160922 accidentally named a facility for filtering out data added after a certain time,
2727         "...FilteringOutEntriesAddedBeforeTime", which was incorrect. This patch renames those instances
2728         to "...FilteringOutEntriesAddedAfterTime".
2729
2730         * UIProcess/API/C/WKContext.cpp:
2731         (WKContextSetPlugInAutoStartOriginsFilteringOutEntriesAddedAfterTime):
2732         * UIProcess/API/C/WKContext.h:
2733         * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
2734         (WebKit::PlugInAutoStartProvider::setAutoStartOriginsFilteringOutEntriesAddedAfterTime):
2735         * UIProcess/Plugins/PlugInAutoStartProvider.h:
2736         * UIProcess/WebContext.cpp:
2737         (WebKit::WebContext::setPlugInAutoStartOriginsFilteringOutEntriesAddedAfterTime):
2738         * UIProcess/WebContext.h:
2739
2740 2013-12-20  Sam Weinig  <sam@webkit.org>
2741
2742         [WK2] Add SPI for using a custom protocol handler
2743         https://bugs.webkit.org/show_bug.cgi?id=126089
2744
2745         Reviewed by Anders Carlsson.
2746
2747         * UIProcess/API/C/mac/WKContextPrivateMac.h:
2748         * UIProcess/API/C/mac/WKContextPrivateMac.mm:
2749         (WKContextRegisterSchemeForCustomProtocol):
2750         (WKContextUnregisterSchemeForCustomProtocol):
2751         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2752         (+[WKBrowsingContextController registerSchemeForCustomProtocol:]):
2753         (+[WKBrowsingContextController unregisterSchemeForCustomProtocol:]):
2754         * UIProcess/WebContext.cpp:
2755         (WebKit::WebContext::globalURLSchemesWithCustomProtocolHandlers):
2756         (WebKit::WebContext::registerGlobalURLSchemeAsHavingCustomProtocolHandlers):
2757         (WebKit::WebContext::unregisterGlobalURLSchemeAsHavingCustomProtocolHandlers):
2758         * UIProcess/WebContext.h:
2759         * UIProcess/mac/WebContextMac.mm:
2760         (WebKit::WebContext::platformInitializeWebProcess):
2761         (WebKit::WebContext::platformInitializeNetworkProcess):
2762         (WebKit::WebContext::registerNotificationObservers):
2763         (WebKit::WebContext::unregisterNotificationObservers):
2764
2765 2013-12-20  Tim Horton  <timothy_horton@apple.com>
2766
2767         WebKit2 View Gestures: Implement smartMagnifyWithEvent: and make it work
2768         https://bugs.webkit.org/show_bug.cgi?id=125752
2769         <rdar://problem/15664245>
2770
2771         Reviewed by Anders Carlsson.
2772
2773         Implement "smart magnify", which is the double-tap-to-zoom gesture on OS X.
2774
2775         * UIProcess/API/mac/WKView.mm:
2776         (-[WKView smartMagnifyWithEvent:]):
2777         Forward smartMagnifyWithEvent to ViewGestureController.
2778
2779         * UIProcess/mac/ViewGestureController.cpp:
2780         (WebKit::ViewGestureController::handleMagnificationGesture):
2781         Drive-by repair a comment.
2782
2783         (WebKit::ViewGestureController::handleSmartMagnificationGesture):
2784         Added. Immediately dispatch a message to the web process to retrieve
2785         the rendered rect of the element under the gesture.
2786
2787         (WebKit::maximumRectangleComponentDelta):
2788         Return the absolute maximum delta between corresponding components of two rects.
2789
2790         (WebKit::ViewGestureController::didCollectGeometryForSmartMagnificationGesture):
2791         Once the WebProcess has replied with the relevant geometry, use it to
2792         determine our target rectangle (the element's rect, with some padding)
2793         and target magnification (attempting to keep replaced elements
2794         fully in-view, and otherwise zooming in as far as possible to fit the
2795         element's width).
2796
2797         If this gesture occurs after the page is already magnified, and targets
2798         a similar region to the previous smart magnification gesture, zoom out
2799         instead of panning across the page.
2800
2801         Begin a transient zoom with the current magnification, and immediately
2802         commit it at our target magnification and offset, so that the drawing
2803         area will animate to the new parameters.
2804
2805         (WebKit::ViewGestureController::endActiveGesture):
2806         * UIProcess/mac/ViewGestureController.h:
2807         * UIProcess/mac/ViewGestureController.messages.in:
2808         * WebProcess/WebPage/ViewGestureGeometryCollector.cpp:
2809         (WebKit::ViewGestureGeometryCollector::collectGeometryForSmartMagnificationGesture):
2810         Hit-test the document to determine the node under the smart magnification
2811         gesture, and return it to the UI process along with various other bits of data.
2812
2813         * WebProcess/WebPage/ViewGestureGeometryCollector.h:
2814         * WebProcess/WebPage/ViewGestureGeometryCollector.messages.in:
2815         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2816         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2817         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
2818         (WebKit::TiledCoreAnimationDrawingArea::adjustTransientZoom):
2819         (WebKit::TiledCoreAnimationDrawingArea::commitTransientZoom):
2820         (WebKit::TiledCoreAnimationDrawingArea::applyTransientZoomToPage):
2821         Instead of short-circuiting the animation if we didn't have to constrain
2822         the origin, short-circuit if we're already *at* the right origin,
2823         like the comment said. This prevents jarring jumps when double-tap-panning
2824         between elements when zoomed all the way in.
2825
2826 2013-12-20  Ricky Mondello  <rmondello@apple.com>
2827
2828         Allow partial application of PlugInAutoStart tables based on timestamp
2829         https://bugs.webkit.org/show_bug.cgi?id=125871
2830
2831         Reviewed by Anders Carlsson.
2832
2833         * UIProcess/API/C/WKContext.cpp:
2834         (WKContextSetPlugInAutoStartOriginsFilteringOutEntriesAddedBeforeTime): New API.
2835         * UIProcess/API/C/WKContext.h: New API.
2836
2837         * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
2838         (WebKit::PlugInAutoStartProvider::setAutoStartOriginsTable): Call setAutoStartOriginsTableWithItemsPassingTest
2839             with a predicate that lets all policies pass.
2840         (WebKit::PlugInAutoStartProvider::setAutoStartOriginsFilteringOutEntriesAddedBeforeTime): Call
2841             setAutoStartOriginsTableWithItemsPassingTest with a predicate that lets policies created before a certain
2842             time pass.
2843         (WebKit::PlugInAutoStartProvider::setAutoStartOriginsTableWithItemsPassingTest): Added. Contains most of the
2844             contents of setAutoStartOriginsTable, with support for applying a predicate.
2845         * UIProcess/Plugins/PlugInAutoStartProvider.h: Add public method,
2846             `setAutoStartOriginsFilteringOutEntriesAddedBeforeTime`, and private method,
2847             `setAutoStartOriginsTableWithItemsPassingTest`.
2848
2849         * UIProcess/WebContext.cpp:
2850         (WebKit::WebContext::setPlugInAutoStartOriginsFilteringOutEntriesAddedBeforeTime): Pass through to the
2851             PlugInAutoStartProvider.
2852         * UIProcess/WebContext.h: Declare `setPlugInAutoStartOriginsFilteringOutEntriesAddedBeforeTime`.
2853
2854 2013-12-20  Enrique Ocaña González  <eocanha@igalia.com>
2855
2856         [GTK] WebKitWebViewBase's ClickCounter should be reset
2857         https://bugs.webkit.org/show_bug.cgi?id=122551
2858
2859         Reviewed by Martin Robinson.
2860
2861         * UIProcess/API/gtk/PageClientImpl.cpp:
2862         (WebKit::PageClientImpl::didCommitLoadForMainFrame):
2863         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2864         (webkitWebViewBaseResetClickCounter):
2865         * UIProcess/API/gtk/WebKitWebViewBasePrivate.h:
2866
2867 2013-12-20  Enrique Ocaña González  <eocanha@igalia.com>
2868
2869         [GTK] The fullscreen API should be enabled by default
2870         https://bugs.webkit.org/show_bug.cgi?id=125993
2871
2872         Reviewed by Gustavo Noronha Silva.
2873
2874         Set the WebSettings property to TRUE
2875
2876         * UIProcess/API/gtk/WebKitSettings.cpp:
2877         (webkit_settings_class_init):
2878
2879 2013-12-20  Carlos Garcia Campos  <cgarcia@igalia.com>
2880
2881         [GTK] Some unit tests using web extensions fail when run alone
2882         https://bugs.webkit.org/show_bug.cgi?id=126002
2883
2884         Reviewed by Gustavo Noronha Silva.
2885
2886         The problem is that the page is created before the dbus connection
2887         has been established, and we are connecting to web-page-created
2888         signal once we have a valid dbus connection. We should connect to
2889         the signal before connecting to dbus and queue any request to emit
2890         a dbus signal until the connection is set. This also fixes the
2891         WebExtensions tests when using the network process because a new
2892         web process is launched for every test case.
2893
2894         * UIProcess/API/gtk/tests/WebExtensionTest.cpp:
2895         (DelayedSignal::DelayedSignal): Helper struct to queue signal
2896         emissions requested before the dbus connection has been
2897         established.
2898         (emitDocumentLoaded): Emit the dbus DocumentLoaded signal.
2899         (documentLoadedCallback): Queue the signal emission if we still
2900         don't have a connection or call emitDocumentLoaded otherwise.
2901         (emitURIChanged): Emit the dbus URIChanged signal.
2902         (uriChangedCallback): Queue the signal emission if we still don't
2903         have a connection or call emitURIChanged otherwise.
2904         (pageCreatedCallback): Pass the web extension as user data to
2905         document-loaded and uri-changed callbacks.
2906         (busAcquiredCallback): Set the connection as user data of the web
2907         extension and process any delayed signal emission pending.
2908         (webkit_web_extension_initialize): Connect to web-page-create
2909         signal before connecting to dbus.
2910
2911 2013-12-19  Benjamin Poulain  <bpoulain@apple.com>
2912
2913         [WK2][iOS] Enable multiprocess by default
2914         https://bugs.webkit.org/show_bug.cgi?id=126030
2915
2916         Reviewed by Anders Carlsson.
2917
2918         * UIProcess/API/Cocoa/WKProcessGroup.mm:
2919         (-[WKProcessGroup initWithInjectedBundleURL:]):
2920
2921 2013-12-19  Andy Estes  <aestes@apple.com>
2922
2923         Remove WebFilterEvaluator wrappers from WebKitSystemInterface
2924         https://bugs.webkit.org/show_bug.cgi?id=126028
2925
2926         Reviewed by Anders Carlsson.
2927
2928         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
2929         (InitWebCoreSystemInterface): Don't INIT() removed function pointers.
2930
2931 2013-12-19  Benjamin Poulain  <bpoulain@apple.com>
2932
2933         Remove WKContentViewPrivate.h, WKContentView.h is private now
2934         https://bugs.webkit.org/show_bug.cgi?id=125981
2935
2936         Reviewed by Dan Bernstein.
2937
2938         There is no need for a separate header, WKContentView has become an implementation
2939         detail of WKView.
2940
2941         * UIProcess/API/ios/WKContentView.h:
2942         * UIProcess/API/ios/WKContentViewInternal.h:
2943         * UIProcess/API/ios/WKContentViewPrivate.h: Removed.
2944         * UIProcess/API/ios/WKView.mm:
2945
2946 2013-12-19  Alexey Proskuryakov  <ap@apple.com>
2947
2948         REGRESSION (r160515): Frequent assertion failures on printing/print-close-crash.html
2949         https://bugs.webkit.org/show_bug.cgi?id=126014
2950
2951         Rolled out r160515 while Chris is investigating. Added FIXME comments in other
2952         places where we use this pattern.
2953
2954         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2955         (WebKit::WebChromeClient::runJavaScriptAlert):
2956         (WebKit::WebChromeClient::runJavaScriptConfirm):
2957         (WebKit::WebChromeClient::runJavaScriptPrompt):
2958         (WebKit::WebChromeClient::print):
2959         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2960         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2961
2962 2013-12-19  Ricky Mondello  <rmondello@apple.com>
2963
2964         Add WebKit2 API for clearing the back-forward list
2965         https://bugs.webkit.org/show_bug.cgi?id=126005
2966
2967         Reviewed by Anders Carlsson.
2968
2969         * UIProcess/API/C/WKBackForwardListRef.cpp:
2970         (WKBackForwardListClear): Call through to the back-forward list's `clear()`.
2971         * UIProcess/API/C/WKBackForwardListRef.h: Declare new API.
2972
2973 2013-12-19  Csaba Osztrogonác  <ossy@webkit.org>
2974
2975         One more URTBF to make GTK build happy after r160853.
2976
2977         * UIProcess/API/gtk/WebKitDownloadClient.cpp:
2978         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
2979         (didReceiveWebViewMessageFromInjectedBundle):
2980         * UIProcess/API/gtk/WebKitResponsePolicyDecision.cpp:
2981         (webkitResponsePolicyDecisionCreate):
2982         * UIProcess/API/gtk/WebKitResponsePolicyDecisionPrivate.h:
2983
2984 2013-12-19  Csaba Osztrogonác  <ossy@webkit.org>
2985
2986         URTBF for GTK after r160853.
2987
2988         * GNUmakefile.list.am:
2989
2990 2013-12-19  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
2991
2992         Unreviewed EFL build fix attempt after r160853
2993
2994         * CMakeLists.txt: Change WebURLResponse.cpp to APIURLResponse.cpp.
2995
2996 2013-12-17  Sam Weinig  <sam@webkit.org>
2997
2998         [WK2] Rename WebURLResponse to API::URLResponse
2999         https://bugs.webkit.org/show_bug.cgi?id=125910
3000
3001         Reviewed by Andreas Kling.
3002
3003         * Shared/API/c/WKSharedAPICast.h:
3004         (WebKit::toAPI):
3005         * Shared/API/c/WKURLResponse.cpp:
3006         (WKURLResponseGetTypeID):
3007         * Shared/API/c/mac/WKURLResponseNS.mm:
3008         (WKURLResponseCreateWithNSURLResponse):
3009         * Shared/APIURLRequest.cpp:
3010         * Shared/APIURLResponse.cpp: Copied from Source/WebKit2/Shared/WebURLResponse.cpp.
3011         (API::URLResponse::URLResponse):
3012         (API::URLResponse::encode):
3013         (API::URLResponse::decode):
3014         * Shared/APIURLResponse.h: Copied from Source/WebKit2/Shared/WebURLResponse.h.
3015         (API::URLResponse::create):
3016         * Shared/UserMessageCoders.h:
3017         (WebKit::UserMessageEncoder::baseEncode):
3018         (WebKit::UserMessageDecoder::baseDecode):
3019         * Shared/WebURLResponse.cpp: Removed.
3020         * Shared/WebURLResponse.h: Removed.
3021         * UIProcess/WebDownloadClient.cpp:
3022         (WebKit::WebDownloadClient::didReceiveResponse):
3023         * UIProcess/WebPolicyClient.cpp:
3024         (WebKit::WebPolicyClient::decidePolicyForResponse):
3025         * WebKit2.xcodeproj/project.pbxproj:
3026         * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
3027         (WebKit::InjectedBundlePagePolicyClient::decidePolicyForResponse):
3028
3029 2013-12-19  Nick Diego Yamane  <nick.yamane@openbossa.org>
3030
3031         [CoordinatedGraphics] Regressions in WebView's contentScaleFactor/contentPosition
3032         https://bugs.webkit.org/show_bug.cgi?id=125943
3033
3034         Reviewed by Noam Rosenthal.
3035
3036         When WebView::pageDidRequestScroll is called it is scaling position requested
3037         to scroll before store it as contentPosition, that is not necessary since WebView
3038         already stores the requested contentScaleFactor so it's able to do that internally
3039         when needed, what simplifies the API and improves the readability of webview's code.
3040         This patch reverts changes from https://bugs.webkit.org/show_bug.cgi?id=118548, which
3041         was causing some regressions in contentScaleFactor/contentPosition related stuff.
3042         Besides that WebView::pageDidRequestScroll calls viewClient callback with the wrong
3043         position (different from the position stored in WebView).
3044
3045         * UIProcess/API/efl/EwkView.cpp:
3046         (EwkView::scrollBy):
3047         * UIProcess/CoordinatedGraphics/WebView.cpp:
3048         (WebKit::WebView::transformToScene):
3049         (WebKit::WebView::updateViewportSize):
3050         (WebKit::WebView::pageDidRequestScroll):
3051         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
3052         (WebKit::PageViewportControllerClientEfl::setViewportPosition):
3053 2013-12-18  Tim Horton  <timothy_horton@apple.com>
3054
3055         WebKit2 View Gestures: Move WebProcess-side geometry collection into its own class
3056         https://bugs.webkit.org/show_bug.cgi?id=125967
3057
3058         Reviewed by Anders Carlsson.
3059
3060         Move the messages dispatched by ViewGestureController that grab geometry
3061         from the WebProcess out of the DrawingArea and into ViewGestureGeometryCollector.
3062         This class will grow when smart magnification is implemented.
3063
3064         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
3065         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
3066         * WebProcess/WebPage/DrawingArea.h:
3067         * WebProcess/WebPage/DrawingArea.messages.in:
3068         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
3069         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
3070         Remove BeginTransientZoom() message.
3071
3072         * DerivedSources.make:
3073         * UIProcess/DrawingAreaProxy.h:
3074         
3075         * UIProcess/mac/ViewGestureController.cpp:
3076         (WebKit::ViewGestureController::didCollectGeometryForMagnificationGesture):
3077         (WebKit::ViewGestureController::handleMagnificationGesture):
3078         * UIProcess/mac/ViewGestureController.h:
3079         * UIProcess/mac/ViewGestureController.messages.in:
3080         Make use of ViewGestureGeometryCollector and rename didBeginTransientZoom to didCollectGeometryForMagnificationGesture.
3081
3082         * WebKit2.xcodeproj/project.pbxproj:
3083         Add new files.
3084         
3085         * WebProcess/WebPage/ViewGestureGeometryCollector.cpp: Added.
3086         (WebKit::ViewGestureGeometryCollector::ViewGestureGeometryCollector):
3087         (WebKit::ViewGestureGeometryCollector::~ViewGestureGeometryCollector):
3088         (WebKit::ViewGestureGeometryCollector::collectGeometryForMagnificationGesture):
3089         * WebProcess/WebPage/ViewGestureGeometryCollector.h: Added.
3090         * WebProcess/WebPage/ViewGestureGeometryCollector.messages.in: Added.
3091         Move the code to collect the visible content rect and return it to the ViewGestureController into its own class.
3092
3093         * WebProcess/WebPage/WebPage.cpp:
3094         (WebKit::WebPage::WebPage):
3095         * WebProcess/WebPage/WebPage.h:
3096         Move m_pageID to the top of WebPage's initialization list so that
3097         it can be safely used from other members' constructors.
3098
3099         Add a ViewGestureGeometryCollector member and construct it.
3100
3101 2013-12-18  Gustavo Noronha Silva  <gns@gnome.org>
3102
3103         Unreviewed cmake build fix for GTK+.
3104
3105         * PlatformGTK.cmake: fix paths for files that were moved.
3106
3107 2013-12-18  Anders Carlsson  <andersca@apple.com>
3108
3109         MessageReceiverMap::addMessageReceiver should assert that destinationID is not zero
3110         https://bugs.webkit.org/show_bug.cgi?id=125965
3111
3112         Reviewed by Tim Horton.
3113
3114         * Platform/CoreIPC/MessageReceiverMap.cpp:
3115         (CoreIPC::MessageReceiverMap::addMessageReceiver):
3116
3117 2013-12-18  Anders Carlsson  <andersca@apple.com>
3118
3119         Deprecate some WKMutableDictionary functions
3120         https://bugs.webkit.org/show_bug.cgi?id=125962
3121
3122         Reviewed by Tim Horton.
3123
3124         * Shared/API/c/WKDeprecatedFunctions.cpp:
3125         (WKDictionaryIsMutable):
3126         (WKDictionaryAddItem):
3127         (WKDictionaryRemoveItem):
3128         * Shared/API/c/WKMutableDictionary.cpp:
3129         * Shared/API/c/WKMutableDictionary.h:
3130
3131 2013-12-18  Dan Bernstein  <mitz@apple.com>
3132
3133         [Cocoa] Allow the web process plug-in to intercept resource requests
3134         https://bugs.webkit.org/show_bug.cgi?id=125959
3135
3136         Reviewed by Anders Carlsson.
3137
3138         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h: Declared new
3139         delegate method.
3140         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
3141         (willSendRequestForFrame): Implemented this WKBundlePageResourceClient callback by calling
3142         the load delegate.
3143         (setUpResourceLoadClient): Added. Initializes the resource load client with the above
3144         function.
3145         (-[WKWebProcessPlugInBrowserContextController setLoadDelegate:]): Added calls to initialize
3146         and clear the resource load client.
3147
3148 2013-12-18  Yongjun Zhang  <yongjun_zhang@apple.com>
3149
3150         https://bugs.webkit.org/show_bug.cgi?id=125941
3151         Add Obj C API for injected bundle PageGroup class.
3152
3153         Reviewed by Dan Bernstein.
3154
3155         Add Obj C API (WKWebProcessPlugInPageGroup) for injected bundle PageGroup class. And add APIs to
3156         expose the main frame and page group from WKWebProcessPlugInBrowsingContextController.
3157
3158         * Shared/Cocoa/APIObject.mm:
3159         (API::Object::newObject): Create wrapper object for InjectedPageGroup object.
3160         * WebKit2.xcodeproj/project.pbxproj:
3161         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroup.h: Added.
3162         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroup.mm: Added.
3163         (-[WKWebProcessPlugInPageGroup identifier]):
3164         (-[WKWebProcessPlugInPageGroup dealloc]):
3165         (-[WKWebProcessPlugInPageGroup API::]):
3166         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroupInternal.h: Added.
3167         (WebKit::wrapper):
3168         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.h: Add API to expose the main frame and page group
3169             for WKWebPocessPlugInBrowserContextController.
3170         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
3171         (-[WKWebProcessPlugInBrowserContextController mainFrame]):
3172         (-[WKWebProcessPlugInBrowserContextController pageGroup]):
3173
3174 2013-12-18  Tim Horton  <timothy_horton@apple.com>
3175
3176         PDFPlugin: Never make a NSEventType = 0
3177         https://bugs.webkit.org/show_bug.cgi?id=125955
3178
3179         Reviewed by Dan Bernstein.
3180
3181         * WebProcess/Plugins/PDF/PDFPlugin.mm:
3182         (WebKit::getEventTypeFromWebEvent):
3183         Make getEventTypeFromWebEvent return its NSEventType as an out arg, and
3184         make the return value represent whether or not we set it.
3185
3186         (WebKit::PDFPlugin::nsEventForWebMouseEvent):
3187         (WebKit::PDFPlugin::handleKeyboardEvent):
3188         Make use of getEventTypeFromWebEvent.
3189
3190 2013-12-18  Anders Carlsson  <andersca@apple.com>
3191
3192         WKRemoteObjectRegistry should invoke invocations
3193         https://bugs.webkit.org/show_bug.cgi?id=125945
3194
3195         Reviewed by Tim Horton.
3196
3197         * Shared/API/Cocoa/WKRemoteObjectRegistry.mm:
3198         (-[WKRemoteObjectRegistry _invokeMessageWithInterfaceIdentifier:encodedInvocation:]):
3199
3200 2013-12-18  Gavin Barraclough  <barraclough@apple.com>
3201
3202         Add layer hosting mode to ViewState
3203         https://bugs.webkit.org/show_bug.cgi?id=125803
3204
3205         Reviewed by Anders Carlsson.
3206
3207         When the view state of the page is updated the layer mode may also
3208         change. Currently this is passed by a separate message, remove this
3209         and fold it into ViewState.
3210         
3211         Previously the setLayerHostingMode message would be passed to the
3212         DrawingArea, which would inform the WebPage. Since the WebPage is
3213         passed the SetVisibilityState messgae reverse this.
3214
3215         WebPageProxy had a policy of only updating the hosting mode when
3216         visible - the value is sticky whilst the view is not visible. Make
3217         this policy explicit in the PageClientImpl, rather then implicit
3218         from the flow control.
3219
3220         * Shared/ViewState.h:
3221             - Added ViewState::IsLayerWindowServerHosted.
3222         * Shared/WebPageCreationParameters.cpp:
3223         (WebKit::WebPageCreationParameters::encode):
3224         (WebKit::WebPageCreationParameters::decode):
3225         * Shared/WebPageCreationParameters.h:
3226             - removed layerHostingMode.
3227         * UIProcess/API/mac/PageClientImpl.h:
3228         * UIProcess/API/mac/PageClientImpl.mm:
3229         (WebKit::PageClientImpl::PageClientImpl):
3230         (WebKit::PageClientImpl::isLayerWindowServerHosted):
3231         (WebKit::PageClientImpl::viewWillMoveToAnotherWindow):
3232             - viewLayerHostingMode -> isLayerWindowServerHosted, added m_layerHostingMode.
3233         * UIProcess/DrawingAreaProxy.h:
3234             - removed layerHostingModeDidChange.
3235         * UIProcess/PageClient.h:
3236             - viewLayerHostingMode -> isLayerWindowServerHosted.
3237         * UIProcess/WebPageProxy.cpp:
3238         (WebKit::WebPageProxy::WebPageProxy):
3239             - removed m_layerHostingMode.
3240         (WebKit::WebPageProxy::updateViewState):
3241             - added IsLayerWindowServerHosted.
3242         (WebKit::WebPageProxy::viewStateDidChange):
3243             - changes to ViewState::IsInWindow implies ViewState::IsLayerWindowServerHosted may change too.
3244             - remove special handling (separate message) for LayerHostingMode.
3245         (WebKit::WebPageProxy::initializeCreationParameters):
3246             - removed m_layerHostingMode.
3247         * UIProcess/WebPageProxy.h:
3248             - removed m_layerHostingMode.
3249         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
3250         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
3251             - removed layerHostingModeDidChange.
3252         * WebProcess/WebPage/DrawingArea.h:
3253         (WebKit::DrawingArea::setLayerHostingMode):
3254         (WebKit::DrawingArea::didUpdate):
3255             - setLayerHostingMode takes a LayerHostingMode.
3256         * WebProcess/WebPage/DrawingArea.messages.in:
3257             - SetLayerHostingMode is no longer a message.
3258         * WebProcess/WebPage/WebPage.cpp:
3259         (WebKit::WebPage::WebPage):
3260             - removed m_layerHostingMode.
3261         (WebKit::WebPage::setViewState):
3262             - handle ViewState::IsLayerWindowServerHosted.
3263         (WebKit::WebPage::setLayerHostingMode):
3264             - moved from ~Mac.mm (matching other ViewState setters), calls to DrawingArea.
3265         * WebProcess/WebPage/WebPage.h:
3266         (WebKit::WebPage::layerHostingMode):
3267             - layerHostingMode queries m_viewState, removed m_layerHostingMode.
3268         * WebProcess/WebPage/ios/WebPageIOS.mm:
3269             - removed setLayerHostingMode.
3270         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
3271         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
3272         (WebKit::TiledCoreAnimationDrawingArea::setLayerHostingMode):
3273             - setLayerHostingMode takes a LayerHostingMode, WebPage now calls to DrawingArea.
3274         * WebProcess/WebPage/mac/WebPageMac.mm:
3275             - removed setLayerHostingMode.
3276
3277 2013-12-18  Gavin Barraclough  <barraclough@apple.com>
3278
3279         Fix page visibility api test, initialization in WebKit2
3280         https://bugs.webkit.org/show_bug.cgi?id=125933
3281
3282         Reviewed by Anders Carlsson.
3283
3284         The API test for page visibility is broken, fix this. This revealed a recent regression in WebKit2
3285         (introduced in https://bugs.webkit.org/show_bug.cgi?id=123379), caused by a typo removing a '!'.
3286
3287         * WebProcess/WebPage/WebPage.cpp:
3288         (WebKit::WebPage::setVisibilityState):
3289             - Fix regression, accidentally removed a '!'.
3290
3291 2013-12-18  Anders Carlsson  <andersca@apple.com>
3292
3293         Fix 32-bit build.
3294
3295         * Shared/API/Cocoa/RemoteObjectRegistry.mm:
3296         (WebKit::RemoteObjectRegistry::invokeMethod):
3297
3298 2013-12-18  Anders Carlsson  <andersca@apple.com>
3299
3300         Make WKObjectRegistry objects be per page
3301         https://bugs.webkit.org/show_bug.cgi?id=125937
3302
3303         Reviewed by Andreas Kling.
3304
3305         Remove WKObjectRegistry from WKConnection. Also, add a C++ object that is in charge 
3306         of actually sending and receiving messages.
3307
3308         * DerivedSources.make:
3309         * Shared/API/Cocoa/RemoteObjectRegistry.h: Added.
3310         * Shared/API/Cocoa/RemoteObjectRegistry.messages.in: Added.
3311         * Shared/API/Cocoa/RemoteObjectRegistry.mm: Added.
3312         (WebKit::RemoteObjectRegistry::RemoteObjectRegistry):
3313         (WebKit::RemoteObjectRegistry::~RemoteObjectRegistry):
3314         (WebKit::RemoteObjectRegistry::sendInvocation):
3315         (WebKit::RemoteObjectRegistry::invokeMethod):
3316         * Shared/API/Cocoa/WKRemoteObjectRegistry.mm:
3317         (-[WKRemoteObjectRegistry _initWithMessageSender:IPC::]):
3318         (-[WKRemoteObjectRegistry _invalidate]):
3319         (-[WKRemoteObjectRegistry _sendInvocation:interface:]):
3320         (-[WKRemoteObjectRegistry WebKit::]):
3321         (-[WKRemoteObjectRegistry _invokeMethod:]):
3322         * Shared/API/Cocoa/WKRemoteObjectRegistryInternal.h:
3323         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
3324         (-[WKBrowsingContextController dealloc]):
3325         (-[WKBrowsingContextController remoteObjectRegistry]):
3326         * UIProcess/API/Cocoa/WKBrowsingContextControllerPrivate.h:
3327         * UIProcess/API/Cocoa/WKConnection.h:
3328         * UIProcess/API/Cocoa/WKConnection.mm:
3329         (didReceiveMessage):
3330         * WebKit2.xcodeproj/project.pbxproj:
3331         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
3332         (-[WKWebProcessPlugInBrowserContextController remoteObjectRegistry]):
3333         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h:
3334
3335 2013-12-18  Conrad Shultz  <conrad_shultz@apple.com>
3336
3337         API to set a favicon
3338         https://bugs.webkit.org/show_bug.cgi?id=125892
3339
3340         Reviewed by Brian Weinstein.
3341
3342         * UIProcess/API/C/WKIconDatabase.cpp:
3343         (WKIconDatabaseSetIconDataForIconURL):
3344         Call WebIconDatabase::setIconDataForIconURL().
3345
3346         * UIProcess/API/C/WKIconDatabase.h:
3347         Declare WKIconDatabaseSetIconDataForIconURL().
3348
3349 2013-12-18  Anders Carlsson  <andersca@apple.com>
3350
3351         Fix Dictionary encoding
3352         https://bugs.webkit.org/show_bug.cgi?id=125930
3353
3354         Reviewed by Andreas Kling.
3355
3356         Encode the HashMap size as a 64-bit unsigned integer.
3357
3358         * Shared/UserData.cpp:
3359         (WebKit::UserData::encode):
3360
3361 2013-12-18  Carlos Garcia Campos  <cgarcia@igalia.com>
3362
3363         Unreviewed. Fix make distcheck.
3364
3365         * GNUmakefile.list.am:
3366
3367 2013-12-17  Jae Hyun Park  <jae.park@company100.net>
3368
3369         [GTK] Build fix after r160737
3370
3371         Unreviewed.
3372
3373         Rename WebURLRequest to API::URLRequest
3374
3375         * GNUmakefile.list.am:
3376         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
3377         (didReceiveWebViewMessageFromInjectedBundle):
3378         * UIProcess/API/gtk/WebKitNavigationPolicyDecision.cpp:
3379         (webkitNavigationPolicyDecisionCreate):
3380         * UIProcess/API/gtk/WebKitNavigationPolicyDecisionPrivate.h:
3381         * UIProcess/API/gtk/WebKitResponsePolicyDecision.cpp:
3382         (webkitResponsePolicyDecisionCreate):
3383         * UIProcess/API/gtk/WebKitResponsePolicyDecisionPrivate.h:
3384         * UIProcess/API/gtk/WebKitWebView.cpp:
3385         (webkit_web_view_load_request):
3386         * UIProcess/API/gtk/WebKitWindowProperties.cpp:
3387         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
3388         (willSendRequestForFrame):
3389
3390 2013-12-17  Ryuan Choi  <ryuan.choi@samsung.com>
3391
3392         Unreviewed build fix on EFL port after r160737
3393
3394         Rename WebURLRequest to API::URLRequest
3395
3396         * CMakeLists.txt:
3397         * UIProcess/API/efl/ewk_url_request_private.h:
3398
3399 2013-12-17  Simon Fraser  <simon.fraser@apple.com>
3400
3401         Rename "canRubberBands" to "canRubberBand"
3402         https://bugs.webkit.org/show_bug.cgi?id=125897
3403
3404         Reviewed by Anders Carlsson.
3405
3406         Rename "canRubberBands" to "canRubberBand" in various places.
3407
3408         * WebProcess/WebPage/EventDispatcher.cpp:
3409         (WebKit::EventDispatcher::wheelEvent):
3410         * WebProcess/WebPage/EventDispatcher.h:
3411         * WebProcess/WebPage/EventDispatcher.messages.in:
3412
3413 2013-12-17  Tim Horton  <timothy_horton@apple.com>
3414
3415         WebKit2 View Gestures: Fix the shadow layer restore-from-overpinched animation
3416         https://bugs.webkit.org/show_bug.cgi?id=125884
3417
3418         Reviewed by Anders Carlsson.
3419
3420         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
3421         (WebKit::TiledCoreAnimationDrawingArea::commitTransientZoom):
3422         Set to-values on the right animations.
3423
3424         (WebKit::TiledCoreAnimationDrawingArea::adjustTransientZoom):
3425         (WebKit::TiledCoreAnimationDrawingArea::applyTransientZoomToPage):
3426         We don't need to explicitly set the shadow path, because PlatformCALayer::setBounds does it for us now.
3427
3428 2013-12-17  Sam Weinig  <sam@webkit.org>
3429
3430         [WK2] Rename WebURLRequest to API::URLRequest
3431         https://bugs.webkit.org/show_bug.cgi?id=125886
3432
3433         Reviewed by Anders Carlsson.
3434
3435         * Shared/API/c/WKSharedAPICast.h:
3436         (WebKit::toAPI):
3437         * Shared/API/c/WKURLRequest.cpp:
3438         (WKURLRequestGetTypeID):
3439         (WKURLRequestCreateWithWKURL):
3440         (WKURLRequestSetDefaultTimeoutInterval):
3441         * Shared/API/c/mac/WKURLRequestNS.mm:
3442         (WKURLRequestCreateWithNSURLRequest):
3443         * Shared/APIString.h:
3444         * Shared/APIURLRequest.cpp: Copied from Source/WebKit2/Shared/WebURLRequest.cpp.
3445         (API::URLRequest::URLRequest):
3446         (API::URLRequest::defaultTimeoutInterval):
3447         (API::URLRequest::setDefaultTimeoutInterval):
3448         (API::URLRequest::encode):
3449         (API::URLRequest::decode):
3450         * Shared/APIURLRequest.h: Copied from Source/WebKit2/Shared/WebURLRequest.h.
3451         (API::URLRequest::create):
3452         * Shared/UserData.cpp:
3453         (WebKit::UserData::encode):
3454         (WebKit::UserData::decode):
3455         * Shared/UserMessageCoders.h:
3456         (WebKit::UserMessageEncoder::baseEncode):
3457         (WebKit::UserMessageDecoder::baseDecode):
3458         * Shared/WebURLRequest.cpp: Removed.
3459         * Shared/WebURLRequest.h: Removed.
3460         * UIProcess/API/C/WKContext.cpp:
3461         * UIProcess/API/C/WKDownload.cpp:
3462         (WKDownloadCopyRequest):
3463         * UIProcess/API/C/WKNavigationDataRef.cpp:
3464         (WKNavigationDataCopyOriginalRequest):
3465         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
3466         (-[WKBrowsingContextController loadRequest:userData:]):
3467         * UIProcess/WebContext.cpp:
3468         (WebKit::WebContext::createNewWebProcess):
3469         * UIProcess/WebInspectorProxy.cpp:
3470         * UIProcess/WebPageProxy.cpp:
3471         (WebKit::WebPageProxy::loadURLRequest):
3472         * UIProcess/WebPageProxy.h:
3473         * UIProcess/WebPolicyClient.cpp:
3474         (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
3475         (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
3476         (WebKit::WebPolicyClient::decidePolicyForResponse):
3477         * UIProcess/WebUIClient.cpp:
3478         (WebKit::WebUIClient::createNewPage):
3479         * WebKit2.xcodeproj/project.pbxproj:
3480         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3481         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
3482         * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
3483         (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNavigationAction):
3484         (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNewWindowAction):
3485         (WebKit::InjectedBundlePagePolicyClient::decidePolicyForResponse):
3486         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
3487         (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
3488
3489 2013-12-17  Brady Eidson  <beidson@apple.com>
3490
3491         DatabaseProcess: Pipe through object store IDs and transaction mode for "openTransaction"
3492         https://bugs.webkit.org/show_bug.cgi?id=125872
3493
3494         Reviewed by Alexey Proskuryakov.
3495
3496         Pipe through the objectStoreIDs and mode:
3497         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
3498         (WebKit::DatabaseProcessIDBConnection::openTransaction):
3499         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
3500         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
3501
3502         Rework postTransactionOperation to take a pre-made AsyncTask to allow for different
3503         transaction operation function signatures:
3504         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
3505         (WebKit::UniqueIDBDatabase::openTransaction): Pipe through the objectStoreIDs and mode:
3506         (WebKit::UniqueIDBDatabase::beginTransaction):
3507         (WebKit::UniqueIDBDatabase::commitTransaction):
3508         (WebKit::UniqueIDBDatabase::resetTransaction):
3509         (WebKit::UniqueIDBDatabase::rollbackTransaction):
3510         (WebKit::UniqueIDBDatabase::postTransactionOperation):
3511         (WebKit::UniqueIDBDatabase::openBackingStoreTransaction):
3512         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
3513
3514         Pipe through the objectStoreIDs and mode:
3515         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:
3516         * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
3517         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::establishTransaction):
3518         * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:
3519
3520         * Platform/Logging.h: Add an IDB logging channel.
3521
3522         * Shared/AsyncTask.h:
3523         (WebKit::createAsyncTask): Add a 3-argument variant.
3524
3525         * Shared/WebCrossThreadCopier.cpp:
3526         (WebCore::::copy): Add a Vector<int64_t> copier.
3527         * Shared/WebCrossThreadCopier.h:
3528
3529         Add logging throughout currently implemented methods:
3530         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
3531         (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata):
3532         (WebKit::WebIDBServerConnection::didGetOrEstablishIDBDatabaseMetadata):
3533         (WebKit::WebIDBServerConnection::openTransaction): Pipe through the objectStoreIDs and mode.
3534         (WebKit::WebIDBServerConnection::didOpenTransaction):
3535         (WebKit::WebIDBServerConnection::beginTransaction):
3536         (WebKit::WebIDBServerConnection::didBeginTransaction):
3537         (WebKit::WebIDBServerConnection::commitTransaction):
3538         (WebKit::WebIDBServerConnection::didCommitTransaction):
3539         (WebKit::WebIDBServerConnection::resetTransaction):
3540         (WebKit::WebIDBServerConnection::didResetTransaction):
3541         (WebKit::WebIDBServerConnection::rollbackTransaction):
3542         (WebKit::WebIDBServerConnection::didRollbackTransaction):
3543
3544 2013-12-17  Gavin Barraclough  <barraclough@apple.com>
3545
3546         Remove PageVisibilityStateUnloaded
3547         https://bugs.webkit.org/show_bug.cgi?id=125869
3548
3549         Reviewed by Anders Carlsson.
3550
3551         This is not currently supported by WebKit, remove this enum value.
3552         We can always add this back later if/when we add support for this state.
3553
3554         * Shared/API/c/WKPageVisibilityTypes.h:
3555         * Shared/API/c/WKSharedAPICast.h:
3556         (WebKit::toPageVisibilityState):
3557             - removed PageVisibilityStateUnloaded/kWKPageVisibilityStateUnloaded
3558
3559 2013-12-12  Martin Robinson  <mrobinson@igalia.com>
3560
3561         [GTK] [CMake] Build the plugin process against GTK+ 2
3562         https://bugs.webkit.org/show_bug.cgi?id=116374
3563
3564         Reviewed by Gustavo Noronha Silva.
3565
3566         * CMakeLists.txt: Use the new GENERATE_WEBKIT2_MESSAGE_SOURCES macro so we
3567         can share messaging file generation with the plugin process.
3568         * PlatformGTK.cmake: Add more files to the plugin process source list. Properly
3569         generate message sources, add the appropriate include paths, defines, and libraries
3570         for the plugin process.
3571
3572 2013-12-17  Anders Carlsson  <andersca@apple.com>
3573
3574         Back out r159982
3575         https://bugs.webkit.org/show_bug.cgi?id=125870
3576         <rdar://problem/15598485>
3577
3578         Reviewed by Dan Bernstein.
3579
3580         Looks like r159982 caused intermittent crashes. Back it out for now.
3581
3582         * UIProcess/WebContextUserMessageCoders.h:
3583         (WebKit::WebContextUserMessageEncoder::encode):
3584         (WebKit::WebContextUserMessageDecoder::decode):
3585         * UIProcess/WebPageGroup.cpp:
3586         * UIProcess/WebPageGroup.h:
3587         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
3588         * UIProcess/WebPageProxy.cpp:
3589         (WebKit::WebPageProxy::initializeWebPage):
3590         * UIProcess/WebProcessProxy.cpp:
3591         (WebKit::WebProcessProxy::disconnect):
3592         * UIProcess/WebProcessProxy.h:
3593
3594 2013-12-17  Dan Bernstein  <mitz@apple.com>
3595
3596         Fixed an assertion failure seen running some mixed-content tests.
3597         https://bugs.webkit.org/show_bug.cgi?id=125862
3598
3599         Reviewed by Alexey Proskuryakov.
3600
3601         * UIProcess/PageLoadState.cpp:
3602         (WebKit::PageLoadState::didDisplayOrRunInsecureContent): Removed an assertion about the URL
3603         of the main frame when dealing with a notification that could have come from any frame.
3604
3605 2013-12-17  Dan Bernstein  <mitz@apple.com>
3606
3607         [Cocoa] Add properties related to the user agent string
3608         https://bugs.webkit.org/show_bug.cgi?id=125856
3609
3610         Reviewed by Anders Carlsson.
3611
3612         * UIProcess/API/Cocoa/WKBrowsingContextController.h: Declared new properties.
3613         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
3614         (-[WKBrowsingContextController applicationNameForUserAgent]): Added accessor.
3615         (-[WKBrowsingContextController setApplicationNameForUserAgent:]): Ditto.
3616         (-[WKBrowsingContextController customUserAgent]): Ditto.
3617         (-[WKBrowsingContextController setCustomUserAgent:]): Ditto.
3618
3619 2013-12-16  Gavin Barraclough  <barraclough@apple.com>
3620
3621         Add layer hosting mode to ViewState
3622         https://bugs.webkit.org/show_bug.cgi?id=125803
3623
3624         Unreviewed - reverting last commit - might have broken tests. :-(
3625
3626         * Shared/ViewState.h:
3627         * Shared/WebPageCreationParameters.cpp:
3628         (WebKit::WebPageCreationParameters::encode):
3629         (WebKit::WebPageCreationParameters::decode):
3630         * Shared/WebPageCreationParameters.h:
3631         * UIProcess/API/mac/PageClientImpl.h:
3632         * UIProcess/API/mac/PageClientImpl.mm:
3633         (WebKit::PageClientImpl::PageClientImpl):
3634         (WebKit::PageClientImpl::viewWillMoveToAnotherWindow):
3635         (WebKit::PageClientImpl::viewLayerHostingMode):
3636         * UIProcess/DrawingAreaProxy.h:
3637         (WebKit::DrawingAreaProxy::layerHostingModeDidChange):
3638         * UIProcess/PageClient.h:
3639         (WebKit::PageClient::viewLayerHostingMode):
3640         * UIProcess/WebPageProxy.cpp:
3641         (WebKit::WebPageProxy::WebPageProxy):
3642         (WebKit::WebPageProxy::updateViewState):
3643         (WebKit::WebPageProxy::viewStateDidChange):
3644         (WebKit::WebPageProxy::initializeCreationParameters):
3645         * UIProcess/WebPageProxy.h:
3646         (WebKit::WebPageProxy::layerHostingMode):
3647         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
3648         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
3649         (WebKit::TiledCoreAnimationDrawingAreaProxy::layerHostingModeDidChange):
3650         * WebProcess/WebPage/DrawingArea.h:
3651         (WebKit::DrawingArea::resumePainting):
3652         (WebKit::DrawingArea::setLayerHostingMode):
3653         * WebProcess/WebPage/DrawingArea.messages.in:
3654         * WebProcess/WebPage/WebPage.cpp:
3655         (WebKit::WebPage::WebPage):
3656         (WebKit::WebPage::~WebPage):
3657         (WebKit::WebPage::scalePage):
3658         (WebKit::WebPage::setDeviceScaleFactor):
3659         (WebKit::WebPage::setActive):
3660         (WebKit::WebPage::setViewState):
3661         (WebKit::WebPage::setWindowIsVisible):
3662         (WebKit::WebPage::windowAndViewFramesChanged):
3663         * WebProcess/WebPage/WebPage.h:
3664         (WebKit::WebPage::layerHostingMode):
3665         * WebProcess/WebPage/ios/WebPageIOS.mm:
3666         (WebKit::WebPage::setLayerHostingMode):
3667         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
3668         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
3669         (WebKit::TiledCoreAnimationDrawingArea::setLayerHostingMode):
3670         * WebProcess/WebPage/mac/WebPageMac.mm:
3671         (WebKit::WebPage::sendComplexTextInputToPlugin):
3672         (WebKit::WebPage::setLayerHostingMode):
3673
3674 2013-12-13  Gavin Barraclough  <barraclough@apple.com>
3675
3676         Add layer hosting mode to ViewState
3677         https://bugs.webkit.org/show_bug.cgi?id=125803
3678
3679         Reviewed by Anders Carlsson.
3680
3681         When the view state of the page is updated the layer mode may also
3682         change. Currently this is passed by a separate message, remove this
3683         and fold it into ViewState.
3684         
3685         Previously the setLayerHostingMode message would be passed to the
3686         DrawingArea, which would inform the WebPage. Since the WebPage is
3687         passed the SetVisibilityState messgae reverse this.
3688
3689         WebPageProxy had a policy of only updating the hosting mode when
3690         visible - the value is sticky whilst the view is not visible. Make
3691         this policy explicit in the PageClientImpl, rather then implicit
3692         from the flow control.
3693
3694         * Shared/ViewState.h:
3695             - Added ViewState::IsLayerWindowServerHosted.
3696         * Shared/WebPageCreationParameters.cpp:
3697         (WebKit::WebPageCreationParameters::encode):
3698         (WebKit::WebPageCreationParameters::decode):
3699         * Shared/WebPageCreationParameters.h:
3700             - removed layerHostingMode.
3701         * UIProcess/API/mac/PageClientImpl.h:
3702         * UIProcess/API/mac/PageClientImpl.mm:
3703         (WebKit::PageClientImpl::PageClientImpl):
3704         (WebKit::PageClientImpl::isLayerWindowServerHosted):
3705         (WebKit::PageClientImpl::viewWillMoveToAnotherWindow):
3706             - viewLayerHostingMode -> isLayerWindowServerHosted, added m_layerHostingMode.
3707         * UIProcess/DrawingAreaProxy.h:
3708             - removed layerHostingModeDidChange.
3709         * UIProcess/PageClient.h:
3710             - viewLayerHostingMode -> isLayerWindowServerHosted.
3711         * UIProcess/WebPageProxy.cpp:
3712         (WebKit::WebPageProxy::WebPageProxy):
3713             - removed m_layerHostingMode.
3714         (WebKit::WebPageProxy::updateViewState):
3715             - added IsLayerWindowServerHosted.
3716         (WebKit::WebPageProxy::viewStateDidChange):
3717             - changes to ViewState::IsInWindow implies ViewState::IsLayerWindowServerHosted may change too.
3718             - remove special handling (separate message) for LayerHostingMode.
3719         (WebKit::WebPageProxy::initializeCreationParameters):
3720             - removed m_layerHostingMode.
3721         * UIProcess/WebPageProxy.h:
3722             - removed m_layerHostingMode.
3723         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
3724         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
3725             - removed layerHostingModeDidChange.
3726         * WebProcess/WebPage/DrawingArea.h:
3727         (WebKit::DrawingArea::setLayerHostingMode):
3728         (WebKit::DrawingArea::didUpdate):
3729             - setLayerHostingMode takes a LayerHostingMode.
3730         * WebProcess/WebPage/DrawingArea.messages.in:
3731             - SetLayerHostingMode is no longer a message.
3732         * WebProcess/WebPage/WebPage.cpp:
3733         (WebKit::WebPage::WebPage):
3734             - removed m_layerHostingMode.
3735         (WebKit::WebPage::setViewState):
3736             - handle ViewState::IsLayerWindowServerHosted.
3737         (WebKit::WebPage::setLayerHostingMode):
3738             - moved from ~Mac.mm (matching other ViewState setters), calls to DrawingArea.
3739         * WebProcess/WebPage/WebPage.h:
3740         (WebKit::WebPage::layerHostingMode):
3741             - layerHostingMode queries m_viewState, removed m_layerHostingMode.
3742         * WebProcess/WebPage/ios/WebPageIOS.mm:
3743             - removed setLayerHostingMode.
3744         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
3745         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
3746         (WebKit::TiledCoreAnimationDrawingArea::setLayerHostingMode):
3747             - setLayerHostingMode takes a LayerHostingMode, WebPage now calls to DrawingArea.
3748         * WebProcess/WebPage/mac/WebPageMac.mm:
3749             - removed setLayerHostingMode.
3750
3751 2013-12-16  Sam Weinig  <sam@webkit.org>
3752
3753         [Cocoa] Remove unused contentAnchor SPI from WKView
3754         https://bugs.webkit.org/show_bug.cgi?id=125826
3755
3756         Reviewed by Tim Horton.
3757
3758         * UIProcess/API/Cocoa/WKViewPrivate.h:
3759         * UIProcess/API/mac/WKView.mm:
3760         (-[WKView setFrameSize:]):
3761         (-[WKView _setDrawingAreaSize:]):
3762         (-[WKView _setAcceleratedCompositingModeRootLayer:]):
3763         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
3764
3765 2013-12-16  Tim Horton  <timothy_horton@apple.com>
3766
3767         WebKit2 View Gestures: Pinching beyond the extremes doesn't animate back to the min/max
3768         https://bugs.webkit.org/show_bug.cgi?id=125750
3769
3770         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
3771         (WebKit::TiledCoreAnimationDrawingArea::commitTransientZoom):
3772         Remove some accidentally included commented out code.
3773
3774 2013-12-16  Tim Horton  <timothy_horton@apple.com>
3775
3776         WebKit2 View Gestures: Pinching beyond the extremes doesn't animate back to the min/max
3777         https://bugs.webkit.org/show_bug.cgi?id=125750
3778
3779         Reviewed by Simon Fraser.
3780
3781         When you let go of a pinch where you exceeded the maximum or minimum scale,
3782         the view should animate back to the limit instead of snapping back.
3783
3784         * UIProcess/mac/ViewGestureController.cpp:
3785         (WebKit::ViewGestureController::endMagnificationGesture):
3786         Unscrolling the scaled origin here is wrong; we should send the same
3787         value for 'origin' for commitTransientZoom that we do for adjustTransientZoom.
3788         The drawing area can deal with transforming that however it needs to call scalePage().
3789
3790         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
3791         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
3792         (WebKit::TiledCoreAnimationDrawingArea::beginTransientZoom):
3793         Drive-by use WebPage::mainFrameView().
3794
3795         (WebKit::TiledCoreAnimationDrawingArea::adjustTransientZoom):
3796         Update the shadow layer's bounds, position, and shadow path while zooming,
3797         instead of hiding it.
3798
3799         (WebKit::transientZoomSnapAnimationForKeyPath):
3800         Create a CABasicAnimation that stays applied to its target when it finishes,
3801         lasts for a quarter second, and uses the ease-in-ease-out timing function.
3802
3803         (WebKit::constrainZoomOriginForFrameView):
3804         When we land a transient zoom, there may be overhang areas (linen, in the case of Mac)
3805         visible. During the commit animation, we should move the RenderView layer appropriately
3806         so that the page covers the entire view and there are no overhang areas visible.
3807         Adapt some code from ScrollableArea to constrain the zoom origin to do so.
3808
3809         (WebKit::TiledCoreAnimationDrawingArea::commitTransientZoom):
3810         Animate the RenderView layer's transform, and the shadow layer's bounds, position, and path.
3811         When they complete, apply the zoom via scalePage() and flush the layer tree (otherwise there
3812         can be a flash between removing the animations and the next flush with the new scale).
3813
3814         (WebKit::TiledCoreAnimationDrawingArea::applyTransientZoomToPage):
3815         Move the code to land the transient zoom (via scalePage) and to put the shadow back
3816         in the state WebCore left it out into its own function, so it can be called both from the
3817         animation completion callback and from the short-circuit in the case where we don't need to animate.
3818
3819 2013-12-16  Ryuan Choi  <ryuan.choi@samsung.com>
3820
3821         Unreviewed. Fix GTK+ build after r160653.
3822
3823         Renamed WebData to API::Data
3824
3825         * GNUmakefile.list.am: Added APIData.cpp and APIData.h
3826         * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
3827         (webkitURISchemeRequestReadCallback):
3828         * UIProcess/API/gtk/WebKitWebResource.cpp:
3829         * UIProcess/API/gtk/WebKitWebView.cpp:
3830
3831 2013-12-16  Benjamin Poulain  <bpoulain@apple.com>
3832
3833         [WK2][iOS] WKView sends unscaled scroll position to WKContentView
3834         https://bugs.webkit.org/show_bug.cgi?id=125819
3835
3836         Reviewed by Anders Carlsson.
3837
3838         WKView was sending untransformed scroll coordinates to WKContentView. The scroll position
3839         seen by WebKit was wrong when the content is scaled.
3840
3841         * UIProcess/API/ios/WKView.mm:
3842         (-[WKView _didScroll]):
3843         (-[WKView scrollViewDidEndDragging:willDecelerate:]):
3844         (-[WKView scrollViewDidEndDecelerating:]):
3845         (-[WKView scrollViewDidScrollToTop:]):
3846
3847 2013-12-16  Brady Eidson  <beidson@apple.com>
3848
3849         DatabaseProcess: Plumb through messaging for the 4 basic transaction operations
3850         https://bugs.webkit.org/show_bug.cgi?id=125816
3851
3852         Reviewed by Alexey Proskuryakov.
3853
3854         The messaging begins and ends in the WebProcess:
3855         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
3856         (WebKit::WebIDBServerConnection::beginTransaction):
3857         (WebKit::WebIDBServerConnection::didBeginTransaction):
3858         (WebKit::WebIDBServerConnection::commitTransaction):
3859         (WebKit::WebIDBServerConnection::didCommitTransaction):
3860         (WebKit::WebIDBServerConnection::resetTransaction):
3861         (WebKit::WebIDBServerConnection::didResetTransaction):
3862         (WebKit::WebIDBServerConnection::rollbackTransaction):
3863         (WebKit::WebIDBServerConnection::didRollbackTransaction):
3864         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
3865         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
3866
3867         It travels from the WebProcess to the DatabaseProcess connection:
3868         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
3869         (WebKit::DatabaseProcessIDBConnection::beginTransaction):
3870         (WebKit::DatabaseProcessIDBConnection::commitTransaction):
3871         (WebKit::DatabaseProcessIDBConnection::resetTransaction):
3872         (WebKit::DatabaseProcessIDBConnection::rollbackTransaction):
3873         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
3874         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
3875
3876         It travels from the connection to the appropriate UniqueIDBDatabase:
3877         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
3878         (WebKit::UniqueIDBDatabase::openTransaction):
3879         (WebKit::UniqueIDBDatabase::beginTransaction):
3880         (WebKit::UniqueIDBDatabase::commitTransaction):
3881         (WebKit::UniqueIDBDatabase::resetTransaction):
3882         (WebKit::UniqueIDBDatabase::rollbackTransaction):
3883         (WebKit::UniqueIDBDatabase::postTransactionOperation):
3884         (WebKit::UniqueIDBDatabase::didCompleteTransactionOperation):
3885         (WebKit::UniqueIDBDatabase::openBackingStoreTransaction):
3886         (WebKit::UniqueIDBDatabase::beginBackingStoreTransaction):
3887         (WebKit::UniqueIDBDatabase::commitBackingStoreTransaction):
3888         (WebKit::UniqueIDBDatabase::resetBackingStoreTransaction):
3889         (WebKit::UniqueIDBDatabase::rollbackBackingStoreTransaction):
3890         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
3891
3892         The UniqueIDBDatabase object performs the operation with the backing store:
3893         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:
3894         * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
3895         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::establishTransaction):
3896         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::beginTransaction):
3897         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::commitTransaction):
3898         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::resetTransaction):
3899         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::rollbackTransaction):
3900         * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:
3901
3902         And the SQLite backing store calls the appropriate method on the SQLite transaction:
3903         * DatabaseProcess/IndexedDB/sqlite/SQLiteIDBTransaction.cpp:
3904         (WebKit::SQLiteIDBTransaction::begin): Stubbed for now.
3905         (WebKit::SQLiteIDBTransaction::commit): Ditto.
3906         (WebKit::SQLiteIDBTransaction::reset): Ditto.
3907         (WebKit::SQLiteIDBTransaction::rollback): Ditto.
3908         * DatabaseProcess/IndexedDB/sqlite/SQLiteIDBTransaction.h:
3909
3910 2013-12-16  Ryuan Choi  <ryuan.choi@samsung.com>
3911
3912         Unreviewed build fix on EFL port after r160653
3913
3914         Rename WebData to API::Data
3915
3916         * CMakeLists.txt: Added APIData.cpp to include list.
3917         * UIProcess/WebPageProxy.cpp:
3918         (WebKit::WebPageProxy::sessionStateData):
3919         (WebKit::WebPageProxy::restoreFromSessionStateData):
3920         * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
3921         (WebKit::WebSoupRequestManagerProxy::didHandleURIRequest):
3922         (WebKit::WebSoupRequestManagerProxy::didReceiveURIRequestData):
3923         (WebKit::WebSoupRequestManagerProxy::didReceiveURIRequest):
3924         * UIProcess/soup/WebSoupRequestManagerProxy.h:
3925
3926 2013-12-16  Tim Horton  <timothy_horton@apple.com>
3927
3928         WKView.magnification should include magnification due to the active gesture
3929         https://bugs.webkit.org/show_bug.cgi?id=125813
3930
3931         Reviewed by Simon Fraser.
3932
3933         Make WKView.magnification respect active pinch-zoom gestures.
3934
3935         * UIProcess/API/mac/WKView.mm:
3936         (-[WKView magnification]):
3937         If we have a ViewGestureController, defer to it for the current magnification.
3938
3939         * UIProcess/mac/ViewGestureController.cpp:
3940         (WebKit::ViewGestureController::magnification):
3941         Return either the current pinch-zoom magnification, if we're in the middle of a gesture,
3942         or the pageScaleFactor, if we're not.
3943
3944         * UIProcess/mac/ViewGestureController.h:
3945
3946 2013-12-16  Benjamin Poulain  <bpoulain@apple.com>
3947
3948         [WK2] Remove the constraint that highlight rects must be smaller than the scrollview bounds
3949         https://bugs.webkit.org/show_bug.cgi?id=125812
3950
3951         Reviewed by Dan Bernstein.
3952
3953         Currently, _scrollView is never set on WKInteractionView and all highlight rects are discarded.
3954
3955         Eventually, the constraint rect should be computed from the useful area of ScrollView and the scale
3956         of the document. In the meantime, the constraint code is just causing troubles.
3957
3958         The issue is tracked by <rdar://problem/15673655>.
3959
3960         * UIProcess/API/ios/WKInteractionView.mm:
3961         (-[WKInteractionView _didGetTapHighlightForRequest:color:WebCore::quads:WebCore::topLeftRadius:WebCore::topRightRadius:WebCore::bottomLeftRadius:WebCore::bottomRightRadius:WebCore::]):
3962
3963 2013-12-16  Simon Fraser  <simon.fraser@apple.com>
3964
3965         Apply overhang shadow and linen to UI-side layers
3966         https://bugs.webkit.org/show_bug.cgi?id=125807
3967
3968         Reviewed by Tim Horton.
3969
3970         With UI-side compositing, we need to apply the overhang shadow and linen
3971         background to layers in the UI process. Achieve this by setting a "custom
3972         appearance" flag on layers that need a shadow or linen background, and
3973         migrating this flag to the UI process. Static functions on ScrollbarThemeMac
3974         are exposed to do the actual setting.
3975
3976         * Shared/mac/RemoteLayerTreePropertyApplier.mm:
3977         (WebKit::updateCustomAppearance): Use ScrollbarThemeMac to update the
3978         appearance.
3979         (WebKit::RemoteLayerTreePropertyApplier::applyPropertiesToLayer):
3980         * Shared/mac/RemoteLayerTreeTransaction.h:
3981         * Shared/mac/RemoteLayerTreeTransaction.mm:
3982         (WebKit::RemoteLayerTreeTransaction::LayerProperties::encode):
3983         (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
3984         (WebKit::dumpChangedLayers):
3985         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
3986         (PlatformCALayerRemote::setBounds): If the bounds change, also set the
3987         CustomAppearanceChanged bit so that the UI side updates the shadow bounds
3988         (done here because the UI side is not stateful).
3989         (PlatformCALayerRemote::requiresCustomAppearanceUpdateOnBoundsChange):
3990         (PlatformCALayerRemote::customAppearance):
3991         (PlatformCALayerRemote::updateCustomAppearance):
3992         * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
3993
3994 2013-12-16  Brady Eidson  <beidson@apple.com>
3995
3996         DatabaseProcess: Implement openTransaction()
3997         https://bugs.webkit.org/show_bug.cgi?id=125794
3998
3999         Reviewed by Darin Adler.
4000
4001         This patch hooks up all of the necessary infrastructure to open a uniquely
4002         identified transaction in the DatabaseProcess backing store.
4003
4004         The transaction itself is not yet functional.
4005
4006         Add openTransaction messaging to the WebProcess side:
4007         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
4008         (WebKit::WebIDBServerConnection::isClosed):
4009         (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata):
4010         (WebKit::WebIDBServerConnection::didGetOrEstablishIDBDatabaseMetadata):
4011         (WebKit::WebIDBServerConnection::openTransaction):
4012         (WebKit::WebIDBServerConnection::didOpenTransaction):
4013