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