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