1dd6e7aa1d976f52e3950e90fbad2ef8bf24e952
[WebKit-https.git] / WebKit2 / ChangeLog
1 2010-07-04  Anders Carlsson  <andersca@apple.com>
2
3         Reviewed by Dan Bernstein.
4
5         Add simple command line parser and pass mode argument to the web process
6         https://bugs.webkit.org/show_bug.cgi?id=41586
7
8         * Shared/CommandLine.h:
9         (WebKit::CommandLine::operator[]):
10         Add CommandLine class.
11
12         * Shared/mac/CommandLineMac.cpp:
13         (WebKit::CommandLine::parse):
14         Implement Mac version of CommandLine::parse.
15
16         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
17         (WebKit::ProcessLauncher::launchProcess):
18         Add "legacywebprocess" mode to the posix_spawn call.
19
20         * WebKit2.xcodeproj/project.pbxproj:
21         Add CommandLine to the xcode project.
22
23         * WebProcess/Launching/mac/WebProcessMain.mm:
24         (webProcessMain):
25         (main):
26         Parse the command line and check the mode.
27
28 2010-07-04  Maciej Stachowiak  <mjs@apple.com>
29
30         Reviewed by Mark Rowe.
31
32         WebProcess crashes in release for simple layout tests
33         https://bugs.webkit.org/show_bug.cgi?id=41575
34
35         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
36         (WKBundlePageCopyRenderTreeExternalRepresentation): ref external representation StringImpl*
37         before taking it out of its parent String, to avoid returning freed memory.
38
39 2010-07-03  Maciej Stachowiak  <mjs@apple.com>
40
41         Rubber stamped by Anders Carlsson.
42
43         Add stdint.h include to fix WebKitTestRunner build.
44
45         * UIProcess/API/C/WKPage.h:
46
47 2010-07-02  Luiz Agostini  <luiz.agostini@openbossa.org>
48
49         Reviewed by Kenneth Rohde Christiansen.
50
51         [Qt] Wrong method name in file  Connection.h
52         https://bugs.webkit.org/show_bug.cgi?id=41536
53
54         Method openConnectionHandler was spelled as openConnection in class Connection.
55
56         * Platform/CoreIPC/Connection.h:
57
58 2010-07-02  Luiz Agostini  <luiz.agostini@openbossa.org>
59
60         Reviewed by Sam Weinig.
61
62         Adding notification and touch events methods to WebChromeClient
63         https://bugs.webkit.org/show_bug.cgi?id=41527
64
65         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
66         (WebKit::WebChromeClient::notificationPresenter):
67         (WebKit::WebChromeClient::needTouchEvents):
68         * WebProcess/WebCoreSupport/WebChromeClient.h:
69
70 2010-07-02  Luiz Agostini  <luiz.agostini@openbossa.org>
71
72         Reviewed by Sam Weinig.
73
74         Removing CoreFoundation.h include from WKFrame.h
75         https://bugs.webkit.org/show_bug.cgi?id=41528
76
77         * UIProcess/API/C/WKFrame.h:
78
79 2010-07-02  Sam Weinig  <sam@webkit.org>
80
81         Reviewed by Oliver Hunt.
82
83         Patch for https://bugs.webkit.org/show_bug.cgi?id=41540
84         WebKit2: Add InjectedCode API to get a list of subframes
85
86         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
87         (WKBundleFrameCopyChildFrames):
88         * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
89         * WebProcess/WebPage/WebFrame.cpp:
90         (WebKit::childFrameRef):
91         (WebKit::childFrameDeref):
92         (WebKit::WebFrame::childFrames):
93         * WebProcess/WebPage/WebFrame.h:
94         * mac/WebKit2.exp:
95
96 2010-07-02  Sam Weinig  <sam@webkit.org>
97
98         Reviewed by Anders Carlsson.
99
100         Turn off the Objective-C garbage collection for the WebProcess.
101
102         * Configurations/WebProcess.xcconfig:
103         * WebProcess/Launching/mac/WebProcessMain.mm:
104         (main): Assert that GC is off.
105
106 2010-07-02  Sam Weinig  <sam@webkit.org>
107
108         Reviewed by Anders Carlsson.
109
110         There is no longer a reason to check that the process is valid when posting
111         a message to the bundle, the process code will take care of that for us.
112
113         * UIProcess/WebContext.cpp:
114         (WebKit::WebContext::postMessageToInjectedBundle):
115
116 2010-07-02  Sam Weinig  <sam@webkit.org>
117
118         Reviewed by Anders Carlsson.
119
120         Use send instead of connection()->send(), now that connections() are created
121         asynchronously it can be null at this point and the message needs to be queued.
122
123         * UIProcess/mac/WebProcessProxyMac.mm:
124         (WebKit::WebProcessProxy::setUpAcceleratedCompositing):
125
126 2010-07-01  Steve Falkenburg  <sfalken@apple.com>
127
128         Even more Windows build fixing.
129         Removed bogus post-build event commands.
130         Removed unnecessary link libraries.
131
132         * win/WebKit2.vcproj:
133
134 2010-07-01  Steve Falkenburg  <sfalken@apple.com>
135
136         Fix Windows while not breaking Qt (didn't realize this was building for Qt).
137
138         * WebProcess/WebProcess.cpp:
139
140 2010-07-01  Steve Falkenburg  <sfalken@apple.com>
141
142         Windows build fix.
143
144         * win/WebKit2Generated.make:
145
146 2010-07-01  Steve Falkenburg  <sfalken@apple.com>
147
148         Windows build fix.
149
150         * WebProcess/WebProcess.cpp:
151
152 2010-07-01  Sam Weinig  <sam@webkit.org>
153
154         Reviewed by Jon Honeycutt.
155
156         Make WebKit2 compile (though not work) on Leopard.
157
158         * Platform/WorkQueue.h:
159         * Platform/mac/WorkQueueMac.cpp:
160         (WorkQueue::EventSource::EventSource):
161         (WorkQueue::scheduleWork):
162         (WorkQueue::registerMachPortEventHandler):
163         (WorkQueue::unregisterMachPortEventHandler):
164         (WorkQueue::platformInitialize):
165         (WorkQueue::platformInvalidate):
166         * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm:
167         (WebKit::LayerBackedDrawingAreaProxy::attachCompositingContext):
168         * UIProcess/mac/WebProcessProxyMac.mm:
169         (WebKit::WebProcessProxy::setUpAcceleratedCompositing):
170         * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
171         (WebKit::LayerBackedDrawingArea::LayerBackedDrawingArea):
172         (WebKit::LayerBackedDrawingArea::setNeedsDisplay):
173         * WebProcess/WebPage/LayerBackedDrawingArea.h:
174         * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm:
175         (WebKit::LayerBackedDrawingArea::platformClear):
176         (WebKit::LayerBackedDrawingArea::attachCompositingContext):
177
178 2010-07-01  Sam Weinig  <sam@webkit.org>
179
180         Reviewed by Anders Carlsson.
181
182         https://bugs.webkit.org/show_bug.cgi?id=41491
183         Add first stab at back/forward list API.
184
185         * UIProcess/API/C/WKAPICast.h:
186         * UIProcess/API/C/WKBackForwardList.cpp: Added.
187         * UIProcess/API/C/WKBackForwardList.h: Added.
188         * UIProcess/API/C/WKBackForwardListItem.cpp: Added.
189         * UIProcess/API/C/WKBackForwardListItem.h: Added.
190         * UIProcess/API/C/WKBase.h:
191         * UIProcess/API/C/WKPage.cpp:
192         * UIProcess/API/C/WKPage.h:
193         * UIProcess/API/C/WebKit2.h:
194         * UIProcess/WebBackForwardListItem.cpp: Added.
195         * UIProcess/WebBackForwardListItem.h: Added.
196         * UIProcess/WebBackForwardListProxy.cpp: Added.
197         * UIProcess/WebBackForwardListProxy.h: Added.
198         * UIProcess/WebPageProxy.cpp:
199         * UIProcess/WebPageProxy.h:
200         * WebKit2.xcodeproj/project.pbxproj:
201         * win/WebKit2.vcproj:
202
203 2010-07-01  Anders Carlsson  <andersca@apple.com>
204
205         Reviewed by Sam Weinig.
206
207         Make process launching asynchronous
208         https://bugs.webkit.org/show_bug.cgi?id=41489
209
210         * Platform/CoreIPC/Connection.h:
211         Make OutgoingMessage public.
212
213         * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
214         (WebKit::ChunkedUpdateDrawingAreaProxy::paint):
215         Don't wait for a paint reply when the process is starting up.
216
217         * UIProcess/Launcher/ProcessLauncher.cpp: Added.
218         Add new ProcessLauncher class.
219
220         (WebKit::processLauncherWorkQueue):
221         Returns the work queue where process launching will happen.
222
223         (WebKit::ProcessLauncher::ProcessLauncher):
224         Schedule launching the process.
225
226         (WebKit::ProcessLauncher::didFinishLaunchingProcess):
227         Call the client method.
228         
229         (WebKit::ProcessLauncher::invalidate):
230         Set the client to 0.
231
232         * UIProcess/Launcher/ProcessLauncher.h: Added.
233         * UIProcess/Launcher/WebProcessLauncher.h: Removed.
234         Rename WebProcessLauncher.h -> ProcessLauncher.h
235
236         * UIProcess/Launcher/mac/ProcessLauncherMac.mm: Added.
237         * UIProcess/Launcher/mac/WebProcessLauncher.mm: Removed.
238         Rename WebProcessLauncher.mm -> ProcessLauncherMac.mm, update for ProcessLauncher changes.
239
240         * UIProcess/Launcher/win/ProcessLauncherWin.cpp: Added.
241         * UIProcess/Launcher/win/WebProcessLauncher.cpp: Removed.
242         Rename WebProcessLauncher.cpp -> ProcessLauncherWin.cpp, update for ProcessLauncher changes.
243         
244         * UIProcess/WebProcessProxy.cpp:
245         (WebKit::WebProcessProxy::~WebProcessProxy):
246         Delete any unsent messages.
247
248         (WebKit::WebProcessProxy::connect):
249         Use the new ProcessLauncher.
250
251         (WebKit::WebProcessProxy::sendMessage):
252         If we're waiting for the process to launch, the messages need to be enqueued.
253
254         (WebKit::WebProcessProxy::didFinishLaunching):
255         Send the outgoing messages.
256
257         * WebKit2.xcodeproj/project.pbxproj:
258         * win/WebKit2.vcproj:
259         Update for renames.
260
261 2010-07-01  Simon Fraser  <simon.fraser@apple.com>
262
263         Reviewed by Anders Carlsson.
264
265         Get accelerated compositing working with webkit2
266         https://bugs.webkit.org/show_bug.cgi?id=41084
267         
268         Start up the CA render server in the UI process (currently, at launch time), and
269         pass the server port over to the web process for use by the layer-backed drawing area.
270         
271         Fix some style issues pointed out by Dan Bernstein.
272         
273         Implement the WebChromeClient methods that pass the attach/detach calls through
274         to the drawing area.
275
276         * Shared/CoreIPCSupport/WebProcessMessageKinds.h:
277         * UIProcess/API/mac/WKView.mm:
278         (-[WKView _startAcceleratedCompositing:]):
279         * UIProcess/API/mac/WKViewInternal.h:
280         * UIProcess/WebProcessProxy.cpp:
281         (WebKit::WebProcessProxy::WebProcessProxy):
282         (WebKit::WebProcessProxy::setUpAcceleratedCompositing):
283         * UIProcess/WebProcessProxy.h:
284         * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm:
285         * UIProcess/mac/WebProcessProxyMac.mm: Added.
286         (WebKit::WebProcessProxy::setUpAcceleratedCompositing):
287         * WebKit2.xcodeproj/project.pbxproj:
288         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
289         (WebKit::WebChromeClient::attachRootGraphicsLayer):
290         (WebKit::WebChromeClient::scheduleCompositingLayerSync):
291         * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm:
292         (WebKit::LayerBackedDrawingArea::attachCompositingContext):
293         * WebProcess/WebProcess.cpp:
294         (WebKit::WebProcess::WebProcess):
295         (WebKit::WebProcess::didReceiveMessage):
296         * WebProcess/WebProcess.h:
297         (WebKit::WebProcess::compositingRenderServerPort):
298
299 2010-07-01  Simon Fraser  <simon.fraser@apple.com>
300
301         Reviewed by Anders Carlsson.
302
303         Get accelerated compositing working with webkit2
304         https://bugs.webkit.org/show_bug.cgi?id=41084
305         
306         Add a new kind of DrawingArea, which is a LayerBackedDrawingArea, which will be used
307         when the page goes into accelerated compositing mode. It is not wired up yet.
308
309         * Shared/CoreIPCSupport/DrawingAreaProxyMessageKinds.h: New 'attach' and 'detach' messages
310         related to accelerated compositing.
311
312         * UIProcess/API/mac/WKView.mm:
313         (-[WKView _startAcceleratedCompositing:]):
314         (-[WKView _stopAcceleratedCompositing]):
315         * UIProcess/API/mac/WKViewInternal.h:
316         Add a subview of the WKView which has layer-backing enabled, and put the drawing area's
317         layer inside of that.
318         
319         * UIProcess/ChunkedUpdateDrawingAreaProxy.h:
320         (WebKit::ChunkedUpdateDrawingAreaProxy::attachCompositingContext):
321         (WebKit::ChunkedUpdateDrawingAreaProxy::detachCompositingContext): These methods will never be called
322         on the ChunkedUpdateDrawingArea. Stub them out.
323
324         * UIProcess/DrawingAreaProxy.h:
325         Add attachCompositingContext() and detachCompositingContext() methods, and a new drawing area
326         type to the enum.
327
328         * UIProcess/LayerBackedDrawingAreaProxy.cpp: Added.
329         * UIProcess/LayerBackedDrawingAreaProxy.h: Added.
330         * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm: Added.
331
332         * WebKit2.xcodeproj/project.pbxproj: Add LayerBackedDrawingArea files.
333
334         * WebProcess/WebPage/ChunkedUpdateDrawingArea.h: Add virtual methods stubs.
335
336         * WebProcess/WebPage/DrawingArea.cpp:
337         (WebKit::DrawingArea::create): Create a LayerBackedDrawingArea if asked.
338         * WebProcess/WebPage/DrawingArea.h: New LayerBackedDrawingAreaType type, and new virtual
339         methods related to accelerated compositing.
340
341         * WebProcess/WebPage/LayerBackedDrawingArea.cpp: Added.
342         * WebProcess/WebPage/LayerBackedDrawingArea.h: Added.
343         * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm: Added.
344
345 2010-07-01  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
346
347        Rubberstamped by Sam Weinig.
348
349        Export symbols on Linux with GCC, like JSC does.
350
351        * UIProcess/API/C/WKBase.h:
352        * WebProcess/InjectedBundle/API/c/WKBundleBase.h:
353
354 2010-07-01  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
355
356         Reviewed by Antti Koivisto.
357
358         [Qt] Initial WebKit2 implementation
359         https://bugs.webkit.org/show_bug.cgi?id=40233
360
361         Add implementation of the UI and loader client for Qt.
362
363         * UIProcess/API/qt/qwkpage.cpp:
364         * UIProcess/API/qt/ClientImpl.cpp: Added.
365         (toQWKPage):
366         (qt_wk_didStartProvisionalLoadForFrame):
367         (qt_wk_didReceiveServerRedirectForProvisionalLoadForFrame):
368         (qt_wk_didFailProvisionalLoadWithErrorForFrame):
369         (qt_wk_didCommitLoadForFrame):
370         (qt_wk_didFinishLoadForFrame):
371         (qt_wk_didFailLoadWithErrorForFrame):
372         (qt_wk_didReceiveTitleForFrame):
373         (qt_wk_didFirstLayoutForFrame):
374         (qt_wk_didFirstVisuallyNonEmptyLayoutForFrame):
375         (qt_wk_didStartProgress):
376         (qt_wk_didChangeProgress):
377         (qt_wk_didFinishProgress):
378         (qt_wk_didBecomeUnresponsive):
379         (qt_wk_didBecomeResponsive):
380         (qt_wk_createNewPage):
381         (qt_wk_showPage):
382         (qt_wk_close):
383         (qt_wk_runJavaScriptAlert):
384         * UIProcess/API/qt/ClientImpl.h: Added.
385
386 2010-07-01  Anders Carlsson  <andersca@apple.com>
387
388         Reviewed by Dan Bernstein.
389
390         Change the CoreIPC connection identifier to be a HANDLE on Windows
391         https://bugs.webkit.org/show_bug.cgi?id=41479
392
393         * Platform/CoreIPC/Connection.h:
394         * Platform/CoreIPC/win/ConnectionWin.cpp:
395         (CoreIPC::Connection::createServerAndClientIdentifiers):
396         New function that creates a server and client HANDLE.
397
398         (CoreIPC::Connection::platformInitialize):
399         Don't open the connections here.
400
401         (CoreIPC::Connection::readEventHandler):
402         (CoreIPC::Connection::open):
403         
404         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
405         (WebKit::webThreadBody):
406         Get the handle from the thread.
407
408         (WebKit::launchWebProcess):
409         Mark the client identifier as inheritable and pass it along to the web process.
410
411         * WebProcess/win/WebProcessMain.cpp:
412         (WebKit::CommandLine::CommandLine):
413         (WebKit::CommandLine::parse):
414         (WebKit::CommandLine::operator[]):
415         Add simple command line parser.
416
417         (WebKit::WebProcessMain):
418         Get the handle identifier from the command line.
419
420         * WebProcess/win/WebProcessMain.h:
421
422 2010-07-01  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
423
424         Reviewed by Antti Koivisto.
425
426         [Qt] Initial WebKit2 implementation
427         https://bugs.webkit.org/show_bug.cgi?id=40233
428
429         Add initial Qt API for WebKit2
430
431         * UIProcess/API/qt/WKView.h: Added.
432         * UIProcess/API/qt/qgraphicswkview.cpp: Added.
433         (QGraphicsWKViewPrivate::pageRef):
434         (QGraphicsWKView::QGraphicsWKView):
435         (QGraphicsWKView::~QGraphicsWKView):
436         (QGraphicsWKView::page):
437         (QGraphicsWKView::paint):
438         (QGraphicsWKView::setGeometry):
439         (QGraphicsWKView::load):
440         (QGraphicsWKView::setUrl):
441         (QGraphicsWKView::url):
442         (QGraphicsWKView::title):
443         (QGraphicsWKView::triggerPageAction):
444         (QGraphicsWKView::back):
445         (QGraphicsWKView::forward):
446         (QGraphicsWKView::reload):
447         (QGraphicsWKView::stop):
448         (QGraphicsWKView::itemChange):
449         (QGraphicsWKView::event):
450         (QGraphicsWKView::sizeHint):
451         (QGraphicsWKView::inputMethodQuery):
452         (QGraphicsWKView::keyPressEvent):
453         (QGraphicsWKView::keyReleaseEvent):
454         (QGraphicsWKView::hoverMoveEvent):
455         (QGraphicsWKView::mouseMoveEvent):
456         (QGraphicsWKView::mousePressEvent):
457         (QGraphicsWKView::mouseReleaseEvent):
458         (QGraphicsWKView::mouseDoubleClickEvent):
459         (QGraphicsWKView::wheelEvent):
460         (QGraphicsWKViewPrivate::QGraphicsWKViewPrivate):
461         (QGraphicsWKView::visibleRect):
462         * UIProcess/API/qt/qgraphicswkview.h: Added.
463         * UIProcess/API/qt/qwkpage.cpp: Added.
464         (QWKPagePrivate::QWKPagePrivate):
465         (QWKPagePrivate::~QWKPagePrivate):
466         (QWKPagePrivate::init):
467         (QWKPagePrivate::toolTipChanged):
468         (QWKPagePrivate::paint):
469         (QWKPagePrivate::keyPressEvent):
470         (QWKPagePrivate::keyReleaseEvent):
471         (QWKPagePrivate::mouseMoveEvent):
472         (QWKPagePrivate::mousePressEvent):
473         (QWKPagePrivate::mouseReleaseEvent):
474         (QWKPagePrivate::mouseDoubleClickEvent):
475         (QWKPagePrivate::wheelEvent):
476         (QWKPagePrivate::updateAction):
477         (QWKPagePrivate::updateNavigationActions):
478         (QWKPagePrivate::_q_webActionTriggered):
479         (QWKPage::QWKPage):
480         (QWKPage::~QWKPage):
481         (QWKPage::pageRef):
482         (QWKPage::setCreateNewPageFunction):
483         (QWKPage::load):
484         (QWKPage::setUrl):
485         (QWKPage::url):
486         (QWKPage::title):
487         (QWKPage::setViewportSize):
488         (QWKPage::requestZoomRect):
489         (QWKPage::triggerAction):
490         (QWKPage::action):
491         * UIProcess/API/qt/qwkpage.h: Added.
492         * UIProcess/API/qt/qwkpage_p.h: Added.
493         (QWKPagePrivate::get):
494         (QWKPagePrivate::processDidExit):
495         (QWKPagePrivate::processDidRevive):
496         (QWKPagePrivate::takeFocus):
497
498 2010-07-01  John Sullivan  <sullivan@apple.com>
499
500         Rubber-stamped by Anders Carlsson.
501
502         * mac/WebKit2.exp:
503         Added _WKFramePolicyListenerDownload and _WKFramePolicyListenerIgnore.
504
505 2010-07-01  Sheriff Bot  <webkit.review.bot@gmail.com>
506
507         Unreviewed, rolling out r62267.
508         http://trac.webkit.org/changeset/62267
509         https://bugs.webkit.org/show_bug.cgi?id=41468
510
511         broke stuff (Requested by weinig on #webkit).
512
513         * UIProcess/API/C/WKBase.h:
514         * WebProcess/InjectedBundle/API/c/WKBundleBase.h:
515
516 2010-07-01  John Sullivan  <sullivan@apple.com>
517
518         Rubber-stamped by Sam Weinig.
519
520         * mac/WebKit2.exp:
521         Added _WKFramePolicyListenerRelease and _WKFramePolicyListenerRetain.
522
523 2010-07-01  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
524
525         Reviewed by Antti Koivisto.
526
527         [Qt] Initial WebKit2 implementation
528         https://bugs.webkit.org/show_bug.cgi?id=40233
529
530         Add our event factory for converting Qt events to something WebKit2
531         understands.
532
533         * Shared/qt/WebEventFactoryQt.cpp: Added.
534         (WebKit::mouseButtonForEvent):
535         (WebKit::webEventTypeForEvent):
536         (WebKit::modifiersForEvent):
537         (WebKit::WebEventFactory::createWebMouseEvent):
538         (WebKit::WebEventFactory::createWebWheelEvent):
539         (WebKit::WebEventFactory::createWebKeyboardEvent):
540         * Shared/qt/WebEventFactoryQt.h: Added.
541
542 2010-07-01  Antti Koivisto  <koivisto@iki.fi>
543
544         Reviewed by Kenneth Rohde Christiansen.
545
546         [Qt] Initial WebKit2 implementation
547         https://bugs.webkit.org/show_bug.cgi?id=40233
548         
549         Add UpdateChunk. This one is mmap based, using Qt abstractions.
550
551         * Shared/qt: Added.
552         * Shared/qt/UpdateChunk.cpp: Added.
553         (WebKit::MappedMemory::markUsed):
554         (WebKit::MappedMemory::markFree):
555         (WebKit::MappedMemory::isFree):
556         (WebKit::mapMemory):
557         (WebKit::mapFile):
558         (WebKit::UpdateChunk::UpdateChunk):
559         (WebKit::UpdateChunk::~UpdateChunk):
560         (WebKit::UpdateChunk::data):
561         (WebKit::UpdateChunk::encode):
562         (WebKit::UpdateChunk::decode):
563         (WebKit::UpdateChunk::createImage):
564         * Shared/qt/UpdateChunk.h: Added.
565         (WebKit::UpdateChunk::rect):
566         (WebKit::UpdateChunk::size):
567
568 2010-07-01  Antti Koivisto  <koivisto@iki.fi>
569
570         Reviewed by Kenneth Rohde Christiansen.
571
572         [Qt] Initial WebKit2 implementation
573         https://bugs.webkit.org/show_bug.cgi?id=40233
574         
575         Include some stdlib headers to fix linux build.
576
577         * Platform/CoreIPC/ArgumentDecoder.cpp:
578         * Platform/CoreIPC/ArgumentEncoder.cpp:
579         * UIProcess/WebLoaderClient.cpp:
580         * UIProcess/WebPageProxy.cpp:
581         * UIProcess/WebUIClient.cpp:
582
583 2010-07-01  Antti Koivisto  <koivisto@iki.fi>
584
585         Reviewed by Kenneth Rohde Christiansen.
586
587         [Qt] Initial WebKit2 implementation
588         https://bugs.webkit.org/show_bug.cgi?id=40233
589         
590         Implement CoreIPC::Connection and PlatformProcessIdentifier for Qt. Not built yet.
591
592         * Platform/CoreIPC/Connection.h:
593         * Platform/CoreIPC/qt: Added.
594         * Platform/CoreIPC/qt/ConnectionQt.cpp: Added.
595         (CoreIPC::Connection::platformInitialize):
596         (CoreIPC::Connection::platformInvalidate):
597         (CoreIPC::Connection::newConnectionHandler):
598         (CoreIPC::Connection::readyReadHandler):
599         (CoreIPC::Connection::openConnection):
600         (CoreIPC::Connection::open):
601         (CoreIPC::Connection::sendOutgoingMessage):
602         * Platform/PlatformProcessIdentifier.h:
603
604 2010-07-01  Antti Koivisto  <koivisto@iki.fi>
605
606         Reviewed by Kenneth Rohde Christiansen.
607
608         [Qt] Initial WebKit2 implementation
609         https://bugs.webkit.org/show_bug.cgi?id=40233
610         
611         Implement WorkQueue for Qt. Not built yet.
612
613         * Platform/WorkQueue.h:
614         * Platform/qt/WorkQueueQt.cpp: Added.
615         (WorkQueue::WorkItemQt::WorkItemQt):
616         (WorkQueue::WorkItemQt::~WorkItemQt):
617         (WorkQueue::WorkItemQt::execute):
618         (WorkQueue::WorkItemQt::timerEvent):
619         (WorkQueue::connectSignal):
620         (WorkQueue::disconnectSignal):
621         (WorkQueue::platformInitialize):
622         (WorkQueue::platformInvalidate):
623         (WorkQueue::scheduleWork):
624
625 2010-07-01  Antti Koivisto  <koivisto@iki.fi>
626
627         Reviewed by Kenneth Rohde Christiansen.
628
629         [Qt] Initial WebKit2 implementation
630         https://bugs.webkit.org/show_bug.cgi?id=40233
631         
632         Implement RunLoop for Qt. Not built yet.
633
634         * Platform/RunLoop.h:
635         * Platform/qt: Added.
636         * Platform/qt/RunLoopQt.cpp: Added.
637         (RunLoop::TimerObject::TimerObject):
638         (RunLoop::TimerObject::performWork):
639         (RunLoop::TimerObject::wakeUp):
640         (RunLoop::TimerObject::timerEvent):
641         (RunLoop::run):
642         (RunLoop::stop):
643         (RunLoop::RunLoop):
644         (RunLoop::~RunLoop):
645         (RunLoop::wakeUp):
646         (RunLoop::TimerBase::timerFired):
647         (RunLoop::TimerBase::TimerBase):
648         (RunLoop::TimerBase::~TimerBase):
649         (RunLoop::TimerBase::start):
650         (RunLoop::TimerBase::stop):
651         (RunLoop::TimerBase::isActive):
652
653 2010-06-30  Sam Weinig  <sam@webkit.org>
654
655         Reviewed by Darin Adler.
656
657         Patch for https://bugs.webkit.org/show_bug.cgi?id=41426
658         Add ImmutableArray class and WKArrayRef API to go with it. This will be used
659         in a few follow up patches.
660
661         * Shared/ImmutableArray.cpp: Added.
662         (WebKit::ImmutableArray::ImmutableArray):
663         (WebKit::ImmutableArray::~ImmutableArray):
664         * Shared/ImmutableArray.h: Added.
665         * UIProcess/API/C/WKAPICast.h:
666         * UIProcess/API/C/WKArray.cpp: Added.
667         * UIProcess/API/C/WKArray.h: Added.
668         * UIProcess/API/C/WKBase.h:
669         * WebKit2.xcodeproj/project.pbxproj:
670         * mac/WebKit2.exp:
671         * win/WebKit2.vcproj:
672
673 2010-06-30  Anders Carlsson  <andersca@apple.com>
674
675         Reviewed by Adam Roben.
676
677         Add WebProcessProxy::send
678         https://bugs.webkit.org/show_bug.cgi?id=41416
679
680         * Platform/CoreIPC/Connection.h:
681         * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
682         (WebKit::ChunkedUpdateDrawingAreaProxy::setSize):
683         (WebKit::ChunkedUpdateDrawingAreaProxy::setPageIsVisible):
684         (WebKit::ChunkedUpdateDrawingAreaProxy::update):
685         * UIProcess/WebContext.cpp:
686         (WebKit::WebContext::postMessageToInjectedBundle):
687         * UIProcess/WebPageProxy.cpp:
688         (WebKit::WebPageProxy::initializeWebPage):
689         (WebKit::WebPageProxy::reinitializeWebPage):
690         (WebKit::WebPageProxy::close):
691         (WebKit::WebPageProxy::tryClose):
692         (WebKit::WebPageProxy::loadURL):
693         (WebKit::WebPageProxy::stopLoading):
694         (WebKit::WebPageProxy::reload):
695         (WebKit::WebPageProxy::goForward):
696         (WebKit::WebPageProxy::goBack):
697         (WebKit::WebPageProxy::setFocused):
698         (WebKit::WebPageProxy::setActive):
699         (WebKit::WebPageProxy::mouseEvent):
700         (WebKit::WebPageProxy::wheelEvent):
701         (WebKit::WebPageProxy::keyEvent):
702         (WebKit::WebPageProxy::receivedPolicyDecision):
703         (WebKit::WebPageProxy::runJavaScriptInMainFrame):
704         (WebKit::WebPageProxy::getRenderTreeExternalRepresentation):
705         (WebKit::WebPageProxy::preferencesDidChange):
706         * UIProcess/WebProcessProxy.cpp:
707         (WebKit::WebProcessProxy::WebProcessProxy):
708         (WebKit::WebProcessProxy::sendMessage):
709         * UIProcess/WebProcessProxy.h:
710         (WebKit::WebProcessProxy::connection):
711         (WebKit::WebProcessProxy::send):
712
713 2010-06-29  Anders Carlsson  <andersca@apple.com>
714
715         Reviewed by Sam Weinig.
716
717         Add a private Message class template
718         https://bugs.webkit.org/show_bug.cgi?id=41370
719
720         * Platform/CoreIPC/Connection.h:
721         (CoreIPC::Connection::Message::Message):
722         (CoreIPC::Connection::Message::arguments):
723
724 2010-06-28  John Gregg  <johnnyg@google.com>
725
726         Unreviewed, build fix (removing merge conflict from previous).
727
728         * Configurations/FeatureDefines.xcconfig:
729
730 2010-06-23  John Gregg  <johnnyg@google.com>
731
732         Reviewed by Kent Tamura.
733
734         add ENABLE_DIRECTORY_UPLOAD build support
735         https://bugs.webkit.org/show_bug.cgi?id=41100
736
737         * Configurations/FeatureDefines.xcconfig:
738
739 2010-06-28  Sam Weinig  <sam@webkit.org>
740
741         Rubber-stamped Geoffrey Garen.
742
743         Add WKBundleFrameIsMainFrame to exports file.
744
745         * mac/WebKit2.exp:
746
747 2010-06-28  Sam Weinig  <sam@webkit.org>
748
749         Reviewed by Anders Carlsson.
750
751         Patch for https://bugs.webkit.org/show_bug.cgi?id=41288
752         WebKit2: Add frame API for InjectedBundle code
753
754         * WebKit2.xcodeproj/project.pbxproj:
755         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: Added.
756         (WKBundleFrameIsMainFrame):
757         (WKBundleFrameGetURL):
758         * WebProcess/InjectedBundle/API/c/WKBundleFrame.h: Added.
759         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
760         (WKBundlePageGetMainFrame):
761         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
762         * WebProcess/WebPage/WebFrame.cpp:
763         (WebKit::WebFrame::isMainFrame):
764         (WebKit::WebFrame::url):
765         * WebProcess/WebPage/WebFrame.h:
766         * WebProcess/WebPage/WebPage.cpp:
767         * WebProcess/WebPage/WebPage.h:
768         (WebKit::WebPage::mainFrame):
769         * mac/WebKit2.exp:
770         * win/WebKit2.vcproj:
771
772 2010-06-27  Mark Rowe  <mrowe@apple.com>
773
774         Rubber-stamped by Maciej Stachowiak.
775
776         Update guards related to blocks to check whether __BLOCKS__ is defined, rather than checking its value.
777         This matches how similar checks are performed in system headers, and avoids a compile error when __BLOCKS__
778         is not defined.
779
780         * UIProcess/API/C/WKPage.cpp:
781         * UIProcess/API/C/WKPage.h:
782         * UIProcess/API/C/WKPagePrivate.h:
783
784 2010-06-26  Tony Gentilcore  <tonyg@chromium.org>
785
786         Reviewed by Dimitri Glazkov.
787
788         Add an ENABLE_WEB_TIMING option for enabling Web Timing support.
789         https://bugs.webkit.org/show_bug.cgi?id=38924
790
791         * Configurations/FeatureDefines.xcconfig:
792
793 2010-06-25  Steve Falkenburg  <sfalken@apple.com>
794
795         Windows build fix.
796
797         * win/WebKit2.vcproj:
798
799 2010-06-25  Ada Chan  <adachan@apple.com>
800
801         Rubber-stamped by Mark Rowe.
802
803         Add additional include search paths relative to $(WebKitLibrariesDir) to fix a build.
804
805         * win/WebKit2.vcproj:
806
807 2010-06-25  Sam Weinig  <sam@webkit.org>
808
809         Reviewed by Anders Carlsson.
810
811         WKBundlePageRenderTreeExternalRepresentation really needs to be 
812         WKBundlePageCopyRenderTreeExternalRepresentation so we don't have dangling
813         pointers and adhere to naming conventions.
814
815         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
816         (WKBundlePageCopyRenderTreeExternalRepresentation):
817         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
818         * mac/WebKit2.exp:
819
820 2010-06-24  Steve Falkenburg  <sfalken@apple.com>
821
822         Windows build fix.
823
824         * win/WebKit2.make: Added.
825         * win/WebKit2.submit.sln: Added.
826
827 2010-06-24  Steve Falkenburg  <sfalken@apple.com>
828
829         Windows build fix.
830
831         * win/WebKit2WebProcess.vcproj:
832
833 2010-06-24  Sam Weinig  <sam@webkit.org>
834
835         Reviewed by Brady Eidson.
836
837         Add WKBundlePageRenderTreeExternalRepresentation for WebKitTestRunner.
838
839         * WebKit2.xcodeproj/project.pbxproj:
840         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
841         (WKBundlePageRenderTreeExternalRepresentation):
842         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h: Added.
843         * WebProcess/WebPage/WebPage.cpp:
844         (WebKit::WebPage::renderTreeExternalRepresentation):
845         (WebKit::WebPage::getRenderTreeExternalRepresentation):
846         * WebProcess/WebPage/WebPage.h:
847         * mac/WebKit2.exp:
848         * win/WebKit2.vcproj:
849
850 2010-06-24  John Sullivan  <sullivan@apple.com>
851
852         Rubber-stamped by Ada Chan.
853
854         * mac/WebKit2.exp:
855         Added _WKNavigationDataRelease and _WKNavigationDataRetain.
856
857 2010-06-24  John Sullivan  <sullivan@apple.com>
858
859         Rubber-stamped by Anders Carlsson.
860
861         * mac/WebKit2.exp:
862         Added _WKPageReloadFromOrigin.
863
864 2010-06-24  Sam Weinig  <sam@webkit.org>
865
866         Reviewed by Anders Carlsson.
867
868         Fix for https://bugs.webkit.org/show_bug.cgi?id=41168
869         <rdar://problem/8124605>
870         Webkit2: Add WKPageReloadFromOrigin() to match old-WebKit functionality
871
872         * UIProcess/API/C/WKPage.cpp:
873         (WKPageReload):
874         (WKPageReloadFromOrigin):
875         * UIProcess/API/C/WKPage.h:
876         * UIProcess/WebPageProxy.cpp:
877         (WebKit::WebPageProxy::reload):
878         * UIProcess/WebPageProxy.h:
879         * WebProcess/WebPage/WebPage.cpp:
880         (WebKit::WebPage::reload):
881         (WebKit::WebPage::didReceiveMessage):
882         * WebProcess/WebPage/WebPage.h:
883
884 2010-06-24  Adam Roben  <aroben@apple.com>
885
886         Windows build fix
887
888         Fixes <http://webkit.org/b/41158>.
889
890         Reviewed by Anders Carlsson.
891
892         * Shared/win/UpdateChunk.cpp: Updated header name.
893
894         * UIProcess/Plugins/win/PluginInfoStoreWin.cpp: Added.
895         (WebKit::PluginInfoStore::pluginDirectories):
896         (WebKit::PluginInfoStore::pluginPathsInDirectory):
897         (WebKit::PluginInfoStore::getPluginInfo):
898         (WebKit::PluginInfoStore::shouldUsePlugin):
899         Stubbed these out.
900
901         * win/WebKit2.vcproj: Added UIProcess/Plugins to the include path for
902         all configurations. Added UIProcess/Plugins files to the project.
903
904 2010-06-23  Anders Carlsson  <andersca@apple.com>
905
906         Reviewed by Sam Weinig.
907
908         Have the UI process compute the plug-in data
909         https://bugs.webkit.org/show_bug.cgi?id=41118
910
911         * Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h:
912         (WebProcessProxyMessage::):
913         Add GetPlugin message kind.
914
915         * Shared/WebCoreArgumentCoders.h:
916         Add argument coders for PluginInfo and MimeClassInfo.
917         
918         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
919         (WebKit::safeCreateCFString):
920         (WebKit::PluginInfoStore::pluginPathsInDirectory):
921         (WebKit::PluginInfoStore::getPluginInfo):
922         Use safeCreateCFString.
923         
924         * UIProcess/WebProcessProxy.cpp:
925         (WebKit::WebProcessProxy::getPlugins):
926         Ask the plug-in info store for the plug-in list.
927
928         (WebKit::WebProcessProxy::didReceiveSyncMessage):
929         Handle GetPlugins.
930
931         * UIProcess/WebProcessProxy.h:
932         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
933         (WebKit::WebFrameLoaderClient::objectContentType):
934         Implement.
935
936         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
937         (WebKit::WebPlatformStrategies::populatePluginCache):
938         Send a sync GetPlugins message.
939
940 2010-06-23  Anders Carlsson  <andersca@apple.com>
941
942         Reviewed by Dan Bernstein.
943
944         Add ArgumentCoder for vectors.
945
946         * Platform/CoreIPC/ArgumentCoders.h:
947         (CoreIPC::):
948
949 2010-06-23  Anders Carlsson  <andersca@apple.com>
950
951         Reviewed by Dan Bernstein.
952
953         Rename WebCoreTypeArgumentMarshalling.h to WebCoreArgumentCoders.h
954
955         * Shared/WebCoreArgumentCoders.h: Copied from Shared/WebCoreTypeArgumentMarshalling.h.
956         * Shared/WebCoreTypeArgumentMarshalling.h: Removed.
957         * Shared/WebEvent.h:
958         * Shared/WebNavigationDataStore.h:
959         * Shared/WebPreferencesStore.h:
960         * Shared/mac/UpdateChunk.cpp:
961         * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
962         * UIProcess/WebContext.cpp:
963         * UIProcess/WebPageProxy.cpp:
964         * WebKit2.xcodeproj/project.pbxproj:
965         * WebProcess/InjectedBundle/InjectedBundle.cpp:
966         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
967         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
968         * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
969         * WebProcess/WebPage/WebPage.cpp:
970         * WebProcess/WebProcess.cpp:
971
972 2010-06-23  Anders Carlsson  <andersca@apple.com>
973
974         Reviewed by Dan Bernstein.
975
976         MessageIDs should always have the most significant bit zeroed out
977         https://bugs.webkit.org/show_bug.cgi?id=41112
978
979         The most significant bit is used by the Mac implementation of CoreIPC, and
980         should always be zero in MessageID objects.
981
982         * Platform/CoreIPC/Connection.cpp:
983         (CoreIPC::Connection::waitForMessage):
984         * Platform/CoreIPC/MessageID.h:
985         (CoreIPC::MessageID::):
986         (CoreIPC::MessageID::MessageID):
987         (CoreIPC::MessageID::operator==):
988         (CoreIPC::MessageID::fromInt):
989         (CoreIPC::MessageID::isSync):
990         (CoreIPC::MessageID::stripMostSignificantBit):
991         * Platform/CoreIPC/mac/ConnectionMac.cpp:
992         (CoreIPC::Connection::sendOutgoingMessage):
993         (CoreIPC::createArgumentDecoder):
994
995 2010-06-23  John Sullivan  <sullivan@apple.com>
996
997         Rubber-stamped by Anders Carlsson.
998
999         * mac/WebKit2.exp:
1000         Added yet another symbol needed by Mac clients.
1001
1002 2010-06-23  John Sullivan  <sullivan@apple.com>
1003
1004         Rubber-stamped by Anders Carlsson.
1005
1006         * mac/WebKit2.exp:
1007         Added another symbol needed by Mac clients.
1008
1009 2010-06-23  Anders Carlsson  <andersca@apple.com>
1010
1011         Reviewed by Sam Weinig.
1012
1013         Rename SimpleArgumentCoder.h to ArgumentCoders.h
1014
1015         * Platform/CoreIPC/ArgumentCoders.h: Copied from Platform/CoreIPC/SimpleArgumentCoder.h.
1016         * Platform/CoreIPC/SimpleArgumentCoder.h: Removed.
1017         * Shared/WebCoreTypeArgumentMarshalling.h:
1018         * WebKit2.xcodeproj/project.pbxproj:
1019
1020 2010-06-23  Anders Carlsson  <andersca@apple.com>
1021
1022         Reviewed by Sam Weinig.
1023
1024         Add a plug-in info cache to WebPlatformStrategies
1025         https://bugs.webkit.org/show_bug.cgi?id=41087
1026
1027         This is in preparation for proxying the getPlugins call over to the UI process.
1028
1029         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1030         (WebKit::WebPlatformStrategies::WebPlatformStrategies):
1031         (WebKit::WebPlatformStrategies::populatePluginCache):
1032         (WebKit::WebPlatformStrategies::refreshPlugins):
1033         (WebKit::WebPlatformStrategies::getPluginInfo):
1034         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1035
1036 2010-06-23  Sam Weinig  <sam@webkit.org>
1037
1038         Reviewed by John Sullivan.
1039
1040         Stop silently ignoring crashes.
1041
1042         * WebProcess/Launching/mac/WebProcessMain.mm:
1043
1044 2010-06-23  Sam Weinig  <sam@webkit.org>
1045
1046         Reviewed by Anders Carlsson.
1047
1048         Add missing include to WKRetainPtr.
1049
1050         * UIProcess/API/cpp/WKRetainPtr.h:
1051
1052 2010-06-23  Sam Weinig  <sam@webkit.org>
1053
1054         Reviewed by Anders Carlsson.
1055
1056         Fix for https://bugs.webkit.org/show_bug.cgi?id=41073
1057         WebKit2: Flesh out more of the InjectedBundle client API
1058
1059         * WebProcess/InjectedBundle/API/c/WKBundle.h:
1060         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
1061         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1062         (WebKit::InjectedBundle::willDestroyPage):
1063         * WebProcess/InjectedBundle/InjectedBundle.h:
1064         * WebProcess/InjectedBundle/InjectedBundlePageClient.cpp:
1065         (WebKit::InjectedBundlePageClient::didStartProvisionalLoadForFrame):
1066         (WebKit::InjectedBundlePageClient::didReceiveServerRedirectForProvisionalLoadForFrame):
1067         (WebKit::InjectedBundlePageClient::didFailProvisionalLoadWithErrorForFrame):
1068         (WebKit::InjectedBundlePageClient::didCommitLoadForFrame):
1069         (WebKit::InjectedBundlePageClient::didFinishLoadForFrame):
1070         (WebKit::InjectedBundlePageClient::didFailLoadWithErrorForFrame):
1071         (WebKit::InjectedBundlePageClient::didReceiveTitleForFrame):
1072         * WebProcess/InjectedBundle/InjectedBundlePageClient.h:
1073         * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
1074         (WebKit::InjectedBundle::load): Add some error logging on failure to load the bundle.
1075         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1076         (WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1077         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
1078         (WebKit::WebFrameLoaderClient::dispatchDidReceiveTitle):
1079         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
1080         (WebKit::WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
1081         (WebKit::WebFrameLoaderClient::dispatchDidFailLoad):
1082         (WebKit::WebFrameLoaderClient::dispatchDidFinishLoad):
1083         * WebProcess/WebPage/WebPage.cpp:
1084         (WebKit::WebPage::close):
1085         * mac/WebKit2.exp:
1086
1087 2010-06-22  Anders Carlsson  <andersca@apple.com>
1088
1089         Reviewed by Sam Weinig.
1090
1091         Add a SimpleArgumentCoder class template that works on POD types
1092         https://bugs.webkit.org/show_bug.cgi?id=41023
1093
1094         * Platform/CoreIPC/SimpleArgumentCoder.h: Added.
1095         (CoreIPC::SimpleArgumentCoder::encode):
1096         (CoreIPC::SimpleArgumentCoder::decode):
1097         * Shared/WebCoreTypeArgumentMarshalling.h:
1098         (CoreIPC::):
1099         * WebKit2.xcodeproj/project.pbxproj:
1100
1101 2010-06-22  Anders Carlsson  <andersca@apple.com>
1102
1103         Reviewed by Sam Weinig.
1104
1105         Use the ArgumentCoder class template for decoding
1106         https://bugs.webkit.org/show_bug.cgi?id=41021
1107
1108         * Platform/CoreIPC/ArgumentCoder.h:
1109         (CoreIPC::ArgumentCoder::decode):
1110         * Platform/CoreIPC/ArgumentDecoder.h:
1111         (CoreIPC::ArgumentDecoder::decode):
1112         * Shared/WebCoreTypeArgumentMarshalling.h:
1113         (CoreIPC::):
1114
1115 2010-06-22  Anders Carlsson  <andersca@apple.com>
1116
1117         Reviewed by Dan Bernstein.
1118
1119         Change the encode functions to be specializations of a class template
1120         https://bugs.webkit.org/show_bug.cgi?id=41015
1121
1122         * Platform/CoreIPC/ArgumentCoder.h: Added.
1123         (CoreIPC::ArgumentCoder::encode):
1124         * Platform/CoreIPC/ArgumentEncoder.h:
1125         (CoreIPC::ArgumentEncoder::encode):
1126         * Shared/WebCoreTypeArgumentMarshalling.h:
1127         (CoreIPC::):
1128         * WebKit2.xcodeproj/project.pbxproj:
1129
1130 2010-06-22  Anders Carlsson  <andersca@apple.com>
1131
1132         Reviewed by Sam Weinig.
1133
1134         Implement PluginInfoStore::shouldUsePlugin.
1135
1136         * UIProcess/Plugins/PluginInfoStore.h:
1137         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
1138         (WebKit::PluginInfoStore::getPluginInfo):
1139         (WebKit::PluginInfoStore::shouldUsePlugin):
1140         * WebKit2.xcodeproj/project.pbxproj:
1141
1142 2010-06-21  Anders Carlsson  <andersca@apple.com>
1143
1144         Reviewed by Sam Weinig.
1145
1146         Support reading plug-in info from Carbon resources
1147         https://bugs.webkit.org/show_bug.cgi?id=40959
1148
1149         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
1150         (WebKit::ResourceMap::ResourceMap):
1151         (WebKit::ResourceMap::~ResourceMap):
1152         (WebKit::ResourceMap::isValid):
1153         (WebKit::getStringListResource):
1154         (WebKit::getPluginInfoFromCarbonResources):
1155         (WebKit::PluginInfoStore::getPluginInfo):
1156
1157 2010-06-21  Anders Carlsson  <andersca@apple.com>
1158
1159         Build fix.
1160
1161         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
1162         (WebKit::PluginInfoStore::getPluginInfo):
1163
1164 2010-06-21  Anders Carlsson  <andersca@apple.com>
1165
1166         Reviewed by Sam Weinig.
1167
1168         Have PluginInfoStoreMac actually get plug-in info and populate the plug-in list
1169         https://bugs.webkit.org/show_bug.cgi?id=40957
1170
1171         * UIProcess/Plugins/PluginInfoStore.cpp:
1172         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
1173         (WebKit::PluginInfoStore::loadPluginsInDirectory):
1174         (WebKit::PluginInfoStore::loadPlugin):
1175         (WebKit::PluginInfoStore::getPlugins):
1176         * UIProcess/Plugins/PluginInfoStore.h:
1177         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm: Added.
1178         (WebKit::PluginInfoStore::pluginDirectories):
1179         (WebKit::PluginInfoStore::pluginPathsInDirectory):
1180         (WebKit::getPluginArchitecture):
1181         (WebKit::getPluginInfoFromPropertyLists):
1182         (WebKit::PluginInfoStore::getPluginInfo):
1183         (WebKit::PluginInfoStore::shouldUsePlugin):
1184         * WebKit2.xcodeproj/project.pbxproj:
1185
1186 2010-06-21  Anders Carlsson  <andersca@apple.com>
1187
1188         Reviewed by Sam Weinig.
1189
1190         Add PluginInfoStore class
1191         https://bugs.webkit.org/show_bug.cgi?id=40949
1192
1193         * Shared/WebPreferencesStore.cpp:
1194         (WebKit::WebPreferencesStore::WebPreferencesStore):
1195         * Shared/WebPreferencesStore.h:
1196         (WebKit::WebPreferencesStore::encode):
1197         (WebKit::WebPreferencesStore::decode):
1198         Add plugInsEnabled to the preferences store.
1199
1200         * UIProcess/Plugins: Added.
1201         * UIProcess/Plugins/PluginInfoStore.cpp: Added.
1202         (WebKit::PluginInfoStore::shared):
1203         (WebKit::PluginInfoStore::PluginInfoStore):
1204         (WebKit::PluginInfoStore::refresh):
1205         (WebKit::PluginInfoStore::getPlugins):
1206         * UIProcess/Plugins/PluginInfoStore.h: Added.
1207         * UIProcess/Plugins/mac: Added.
1208         * WebKit2.xcodeproj/project.pbxproj:
1209         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1210         (WebKit::WebPlatformStrategies::refreshPlugins):
1211         (WebKit::WebPlatformStrategies::getPluginInfo):
1212         * WebProcess/WebPage/WebPage.cpp:
1213         (WebKit::WebPage::WebPage):
1214
1215 2010-06-21  Simon Fraser  <simon.fraser@apple.com>
1216
1217         Reviewed by Anders Carlsson.
1218
1219         Rename DrawingAreaProxyUpdateChunk to ChunkedUpdateDrawingArea
1220         https://bugs.webkit.org/show_bug.cgi?id=40948
1221
1222         Rename UIProcess version of DrawingAreaUpdateChunk to ChunkedUpdateDrawingAreaProxy,
1223         and rename the Mac/Win versions of the various DrawingArea files too.
1224         
1225         Also rename the DrawingAreaUpdateChunkType enum to ChunkedUpdateDrawingAreaType.
1226
1227         * UIProcess/API/mac/WKView.mm:
1228         (-[WKView initWithFrame:pageNamespaceRef:]):
1229         * UIProcess/ChunkedUpdateDrawingArea.cpp: Removed.
1230         * UIProcess/ChunkedUpdateDrawingArea.h: Removed.
1231         * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp: Added.
1232         (WebKit::ChunkedUpdateDrawingAreaProxy::ChunkedUpdateDrawingAreaProxy):
1233         (WebKit::ChunkedUpdateDrawingAreaProxy::~ChunkedUpdateDrawingAreaProxy):
1234         (WebKit::ChunkedUpdateDrawingAreaProxy::paint):
1235         (WebKit::ChunkedUpdateDrawingAreaProxy::setSize):
1236         (WebKit::ChunkedUpdateDrawingAreaProxy::setPageIsVisible):
1237         (WebKit::ChunkedUpdateDrawingAreaProxy::didSetSize):
1238         (WebKit::ChunkedUpdateDrawingAreaProxy::update):
1239         (WebKit::ChunkedUpdateDrawingAreaProxy::didReceiveMessage):
1240         * UIProcess/ChunkedUpdateDrawingAreaProxy.h: Added.
1241         (WebKit::ChunkedUpdateDrawingAreaProxy::encode):
1242         * UIProcess/DrawingAreaProxy.h:
1243         (WebKit::DrawingAreaProxy::):
1244         * UIProcess/mac/ChunkedUpdateDrawingAreaProxyMac.mm: Added.
1245         (WebKit::ChunkedUpdateDrawingAreaProxy::page):
1246         (WebKit::ChunkedUpdateDrawingAreaProxy::ensureBackingStore):
1247         (WebKit::ChunkedUpdateDrawingAreaProxy::invalidateBackingStore):
1248         (WebKit::ChunkedUpdateDrawingAreaProxy::platformPaint):
1249         (WebKit::ChunkedUpdateDrawingAreaProxy::drawUpdateChunkIntoBackingStore):
1250         * UIProcess/mac/DrawingAreaProxyUpdateChunkMac.mm: Removed.
1251         * UIProcess/win/ChunkedUpdateDrawingAreaProxyWin.cpp: Added.
1252         (WebKit::ChunkedUpdateDrawingAreaProxy::page):
1253         (WebKit::ChunkedUpdateDrawingAreaProxy::ensureBackingStore):
1254         (WebKit::ChunkedUpdateDrawingAreaProxy::invalidateBackingStore):
1255         (WebKit::ChunkedUpdateDrawingAreaProxy::platformPaint):
1256         (WebKit::ChunkedUpdateDrawingAreaProxy::drawUpdateChunkIntoBackingStore):
1257         * UIProcess/win/DrawingAreaProxyUpdateChunkWin.cpp: Removed.
1258         * UIProcess/win/WebView.cpp:
1259         (WebKit::WebView::WebView):
1260         * WebKit2.xcodeproj/project.pbxproj:
1261         * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp: Added.
1262         (WebKit::ChunkedUpdateDrawingArea::ChunkedUpdateDrawingArea):
1263         (WebKit::ChunkedUpdateDrawingArea::~ChunkedUpdateDrawingArea):
1264         (WebKit::ChunkedUpdateDrawingArea::invalidateWindow):
1265         (WebKit::ChunkedUpdateDrawingArea::invalidateContentsAndWindow):
1266         (WebKit::ChunkedUpdateDrawingArea::invalidateContentsForSlowScroll):
1267         (WebKit::ChunkedUpdateDrawingArea::scroll):
1268         (WebKit::ChunkedUpdateDrawingArea::setNeedsDisplay):
1269         (WebKit::ChunkedUpdateDrawingArea::display):
1270         (WebKit::ChunkedUpdateDrawingArea::scheduleDisplay):
1271         (WebKit::ChunkedUpdateDrawingArea::setSize):
1272         (WebKit::ChunkedUpdateDrawingArea::suspendPainting):
1273         (WebKit::ChunkedUpdateDrawingArea::resumePainting):
1274         (WebKit::ChunkedUpdateDrawingArea::didUpdate):
1275         (WebKit::ChunkedUpdateDrawingArea::didReceiveMessage):
1276         * WebProcess/WebPage/ChunkedUpdateDrawingArea.h: Added.
1277         * WebProcess/WebPage/DrawingArea.cpp:
1278         (WebKit::DrawingArea::create):
1279         * WebProcess/WebPage/DrawingArea.h:
1280         (WebKit::DrawingArea::):
1281         * WebProcess/WebPage/DrawingAreaUpdateChunk.cpp: Removed.
1282         * WebProcess/WebPage/DrawingAreaUpdateChunk.h: Removed.
1283         * WebProcess/WebPage/mac/ChunkedUpdateDrawingAreaMac.cpp: Added.
1284         (WebKit::ChunkedUpdateDrawingArea::paintIntoUpdateChunk):
1285         * WebProcess/WebPage/mac/DrawingAreaUpdateChunkMac.cpp: Removed.
1286         * WebProcess/WebPage/win/ChunkedUpdateDrawingAreaWin.cpp: Added.
1287         (WebKit::ChunkedUpdateDrawingArea::paintIntoUpdateChunk):
1288         * WebProcess/WebPage/win/DrawingAreaUpdateChunkWin.cpp: Removed.
1289         * win/WebKit2.vcproj:
1290
1291 2010-06-21  Simon Fraser  <simon.fraser@apple.com>
1292
1293         Reviewed by Anders Carlsson.
1294
1295         Rename DrawingAreaProxyUpdateChunk to ChunkedUpdateDrawingArea
1296         https://bugs.webkit.org/show_bug.cgi?id=40948
1297         
1298         Rename DrawingAreaUpdateChunk to ChunkedUpdateDrawingArea.
1299
1300         * UIProcess/API/mac/WKView.mm:
1301         (-[WKView initWithFrame:pageNamespaceRef:]):
1302         * UIProcess/ChunkedUpdateDrawingArea.cpp: Added.
1303         (WebKit::ChunkedUpdateDrawingArea::ChunkedUpdateDrawingArea):
1304         (WebKit::ChunkedUpdateDrawingArea::~ChunkedUpdateDrawingArea):
1305         (WebKit::ChunkedUpdateDrawingArea::paint):
1306         (WebKit::ChunkedUpdateDrawingArea::setSize):
1307         (WebKit::ChunkedUpdateDrawingArea::setPageIsVisible):
1308         (WebKit::ChunkedUpdateDrawingArea::didSetSize):
1309         (WebKit::ChunkedUpdateDrawingArea::update):
1310         (WebKit::ChunkedUpdateDrawingArea::didReceiveMessage):
1311         * UIProcess/ChunkedUpdateDrawingArea.h: Added.
1312         (WebKit::ChunkedUpdateDrawingArea::encode):
1313         * UIProcess/DrawingAreaProxyUpdateChunk.cpp: Removed.
1314         * UIProcess/DrawingAreaProxyUpdateChunk.h: Removed.
1315         * UIProcess/mac/DrawingAreaProxyUpdateChunkMac.mm:
1316         (WebKit::ChunkedUpdateDrawingArea::page):
1317         (WebKit::ChunkedUpdateDrawingArea::ensureBackingStore):
1318         (WebKit::ChunkedUpdateDrawingArea::invalidateBackingStore):
1319         (WebKit::ChunkedUpdateDrawingArea::platformPaint):
1320         (WebKit::ChunkedUpdateDrawingArea::drawUpdateChunkIntoBackingStore):
1321         * UIProcess/win/DrawingAreaProxyUpdateChunkWin.cpp:
1322         (WebKit::ChunkedUpdateDrawingArea::page):
1323         (WebKit::ChunkedUpdateDrawingArea::ensureBackingStore):
1324         (WebKit::ChunkedUpdateDrawingArea::invalidateBackingStore):
1325         (WebKit::ChunkedUpdateDrawingArea::platformPaint):
1326         (WebKit::ChunkedUpdateDrawingArea::drawUpdateChunkIntoBackingStore):
1327         * UIProcess/win/WebView.cpp:
1328         (WebKit::WebView::WebView):
1329         * WebKit2.xcodeproj/project.pbxproj:
1330         * win/WebKit2.vcproj:
1331
1332 2010-06-21  Sam Weinig  <sam@webkit.org>
1333
1334         Reviewed by Anders Carlsson.
1335
1336         Patch for https://bugs.webkit.org/show_bug.cgi?id=40940
1337         Add message passing support to the WebKit2 API.
1338
1339         Adds message passing for both InjectedBundle -> WebContext
1340         and WebContext -> InjectedBundle.
1341
1342         * Shared/CoreIPCSupport/WebProcessMessageKinds.h:
1343         (WebProcessMessage::):
1344         * Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h: Added.
1345         (WebProcessProxyMessage::):
1346         (CoreIPC::):
1347         * UIProcess/API/C/WKContext.cpp:
1348         (WKContextSetInjectedBundleClient):
1349         (WKContextPostMessageToInjectedBundle):
1350         * UIProcess/API/C/WKContext.h:
1351         * UIProcess/WebContext.cpp:
1352         (WebKit::WebContext::initializeInjectedBundleClient):
1353         (WebKit::WebContext::forwardMessageToWebContext):
1354         (WebKit::WebContext::postMessageToInjectedBundle):
1355         * UIProcess/WebContext.h:
1356         * UIProcess/WebContextInjectedBundleClient.cpp: Added.
1357         (WebKit::WebContextInjectedBundleClient::WebContextInjectedBundleClient):
1358         (WebKit::WebContextInjectedBundleClient::initialize):
1359         (WebKit::WebContextInjectedBundleClient::didRecieveMessageFromInjectedBundle):
1360         * UIProcess/WebContextInjectedBundleClient.h: Added.
1361         * UIProcess/WebProcessManager.cpp:
1362         (WebKit::WebProcessManager::processDidClose):
1363         * UIProcess/WebProcessProxy.cpp:
1364         (WebKit::WebProcessProxy::didReceiveInjectedBundleMessage):
1365         (WebKit::WebProcessProxy::didReceiveMessage):
1366         * UIProcess/WebProcessProxy.h:
1367         * WebKit2.xcodeproj/project.pbxproj:
1368         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
1369         (WKBundlePostMessage):
1370         * WebProcess/InjectedBundle/API/c/WKBundle.h:
1371         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1372         (WebKit::InjectedBundle::postMessage):
1373         (WebKit::InjectedBundle::didCreatePage):
1374         (WebKit::InjectedBundle::didRecieveMessage):
1375         * WebProcess/InjectedBundle/InjectedBundle.h:
1376         * WebProcess/WebProcess.cpp:
1377         (WebKit::WebProcess::loadInjectedBundle):
1378         (WebKit::WebProcess::forwardMessageToInjectedBundle):
1379         (WebKit::WebProcess::didReceiveMessage):
1380         * WebProcess/WebProcess.h:
1381         * mac/WebKit2.exp:
1382         * win/WebKit2.vcproj:
1383
1384 2010-06-21  Anders Carlsson  <andersca@apple.com>
1385
1386         Reviewed by Sam Weinig.
1387
1388         Make WebKit2 build with clang++
1389
1390         * Platform/CoreIPC/Connection.h:
1391         * UIProcess/API/mac/WKView.mm:
1392         (-[WKView keyUp:]):
1393         (-[WKView keyDown:]):
1394         * UIProcess/WebHistoryClient.h:
1395         * UIProcess/WebPageProxy.h:
1396         * WebProcess/WebPage/WebPage.h:
1397         * WebProcess/WebProcess.h:
1398
1399 2010-06-21  Satish Sampath  <satish@chromium.org>
1400
1401         Reviewed by Steve Block.
1402
1403         Speech Input Patch 0: Added compilation argument to conditionally compile pending patches.
1404
1405         Speech Input Patch 0: Added compilation argument to conditionally compile pending patches.
1406         https://bugs.webkit.org/show_bug.cgi?id=40878
1407
1408         * Configurations/FeatureDefines.xcconfig:
1409
1410 2010-06-20  Jessie Berlin  <jberlin@apple.com>
1411
1412         Reviewed by Dan Bernstein.
1413
1414         Add #if USE(PLATFORM_STRATEGIES) where WebPlatformStrategies is being used.
1415
1416         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1417         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1418         * WebProcess/WebProcess.cpp:
1419         (WebKit::WebProcess::WebProcess):
1420         Only initialize the web platform strategies if PLATFORM_STRATEGIES is being used.
1421
1422 2010-06-19  Sam Weinig  <sam@webkit.org>
1423
1424         Reviewed by Anders Carlsson.
1425
1426         Fix for https://bugs.webkit.org/show_bug.cgi?id=40882
1427         Add ability to have a WebProcess per WebContext.
1428
1429         - Move to a one-to-one correspondence of WebContexts to WebProcessProxies.
1430         - Add explicit shared contexts for general use.
1431         - Only non-shared contexts can use injected bundles.
1432
1433         * UIProcess/API/C/WKContext.cpp:
1434         (WKContextCreate):
1435         (WKContextCreateWithInjectedBundlePath):
1436         (WKContextGetSharedProcessContext):
1437         (WKContextGetSharedThreadContext):
1438         * UIProcess/API/C/WKContext.h:
1439         * UIProcess/API/C/WKContextPrivate.h:
1440         Change API for WKContext to no longer take a WKProcessModel type and instead
1441         have explicit Create/Get functions for the different kind of contexts. Added
1442         two shared contexts, one threaded, one process, and made the threaded on private
1443         for now.
1444
1445         * UIProcess/API/mac/WKView.mm:
1446         (-[WKView initWithFrame:]):
1447         Make WKViews that don't have an explicit context use the shared process
1448         context by default.
1449
1450         * UIProcess/Launcher/WebProcessLauncher.h:
1451         * UIProcess/Launcher/mac/WebProcessLauncher.mm:
1452         (WebKit::launchWebProcess):
1453         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
1454         (WebKit::launchWebProcess):
1455         Use a boolean argument to note whether we are using a thread or a process
1456         instead of using the process model enum.
1457
1458         * UIProcess/ProcessModel.h:
1459         (WebKit::):
1460         Convert to using explicit Shared modifier for shared contexts.
1461
1462         * UIProcess/WebContext.cpp:
1463         (WebKit::WebContext::sharedProcessContext):
1464         (WebKit::WebContext::sharedThreadContext):
1465         (WebKit::WebContext::ensureWebProcess):
1466         (WebKit::WebContext::createWebPage):
1467         (WebKit::WebContext::reviveIfNecessary):
1468         * UIProcess/WebContext.h:
1469         (WebKit::WebContext::create):
1470         (WebKit::WebContext::process):
1471         * UIProcess/WebPageNamespace.cpp:
1472         (WebKit::WebPageNamespace::createWebPage):
1473         (WebKit::WebPageNamespace::preferencesDidChange):
1474         (WebKit::WebPageNamespace::getStatistics):
1475         * UIProcess/WebPageNamespace.h:
1476         (WebKit::WebPageNamespace::process):
1477         (WebKit::WebPageNamespace::reviveIfNecessary):
1478         Move WebProcessProxy creation logic up into WebContext.
1479
1480         * UIProcess/WebProcessManager.cpp:
1481         (WebKit::WebProcessManager::getWebProcess):
1482         (WebKit::WebProcessManager::processDidClose):
1483         * UIProcess/WebProcessManager.h:
1484         Keep a map of WebContexts to WebProcessProxies in addition to the two
1485         shared processes.
1486
1487         * UIProcess/WebProcessProxy.cpp:
1488         (WebKit::WebProcessProxy::create):
1489         (WebKit::WebProcessProxy::WebProcessProxy):
1490         (WebKit::WebProcessProxy::connect):
1491         (WebKit::WebProcessProxy::didClose):
1492         * UIProcess/WebProcessProxy.h:
1493         Store a WebContext instead of the process model.
1494
1495         * mac/WebKit2.exp:
1496         Add new functions.
1497
1498 2010-06-18  Anders Carlsson  <andersca@apple.com>
1499
1500         Reviewed by Sam Weinig.
1501
1502         Make WebCoreSystemInterface.h a C++ only header
1503         https://bugs.webkit.org/show_bug.cgi?id=40867
1504
1505         * WebKit2.xcodeproj/project.pbxproj:
1506         * WebProcess/WebCoreSupport/mac/WebSystemInterface.h:
1507         * WebProcess/WebCoreSupport/mac/WebSystemInterface.m: Removed.
1508         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: Copied from WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.m.
1509         * mac/WebKit2.exp:
1510
1511 2010-06-18  Anders Carlsson  <andersca@apple.com>
1512
1513         Reviewed by Sam Weinig.
1514
1515         Add platform strategies for WebKit2.
1516         https://bugs.webkit.org/show_bug.cgi?id=40863
1517
1518         * WebKit2.xcodeproj/project.pbxproj:
1519         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: Added.
1520         (WebKit::WebPlatformStrategies::initialize):
1521         (WebKit::WebPlatformStrategies::WebPlatformStrategies):
1522         (WebKit::WebPlatformStrategies::createPluginStrategy):
1523         (WebKit::WebPlatformStrategies::refreshPlugins):
1524         (WebKit::WebPlatformStrategies::getPluginInfo):
1525         * WebProcess/WebCoreSupport/WebPlatformStrategies.h: Added.
1526         * WebProcess/WebProcess.cpp:
1527         (WebKit::WebProcess::WebProcess):
1528
1529 2010-06-18  Sam Weinig  <weinig@apple.com>
1530
1531         Rolling http://trac.webkit.org/changeset/61297 back in.
1532
1533         * WebKit2.xcodeproj/project.pbxproj:
1534         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: Added.
1535         (WKBundlePageSetClient):
1536         (WKBundlePageGetMainFrameURL):
1537         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Added.
1538         * WebProcess/InjectedBundle/InjectedBundlePageClient.cpp: Added.
1539         (WebKit::InjectedBundlePageClient::InjectedBundlePageClient):
1540         (WebKit::InjectedBundlePageClient::initialize):
1541         (WebKit::InjectedBundlePageClient::didClearWindowObjectForFrame):
1542         * WebProcess/InjectedBundle/InjectedBundlePageClient.h: Added.
1543         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1544         (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
1545         * WebProcess/WebPage/WebPage.cpp:
1546         (WebKit::WebPage::initializeInjectedBundleClient):
1547         (WebKit::WebPage::mainFrameURL):
1548         * WebProcess/WebPage/WebPage.h:
1549         (WebKit::WebPage::injectedBundleClient):
1550         * mac/WebKit2.exp:
1551         * win/WebKit2.vcproj:
1552
1553 2010-06-17  Anders Carlsson  <andersca@apple.com>
1554
1555         Reviewed by Sam Weinig.
1556
1557         Fix a race condition during startup where we would never send the InitializeConnection message to the server.
1558
1559         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1560         (CoreIPC::Connection::open):
1561
1562 2010-06-17  Ada Chan  <adachan@apple.com>
1563
1564         Rolling out http://trac.webkit.org/changeset/61297 due to build errors.
1565
1566         * WebKit2.xcodeproj/project.pbxproj:
1567         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: Removed.
1568         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Removed.
1569         * WebProcess/InjectedBundle/InjectedBundlePageClient.cpp: Removed.
1570         * WebProcess/InjectedBundle/InjectedBundlePageClient.h: Removed.
1571         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1572         (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
1573         * WebProcess/WebPage/WebPage.cpp:
1574         * WebProcess/WebPage/WebPage.h:
1575         * mac/WebKit2.exp:
1576         * win/WebKit2.vcproj:
1577
1578 2010-06-15  Sam Weinig  <sam@webkit.org>
1579
1580         Reviewed by Anders Carlsson.
1581
1582         Fix for <rdar://problem/8010805>
1583         Assertion failure ("mainThreadPthread") in isMainThread() mousing over cnn.com in Mini Browser
1584
1585         Don't use WebCore::String::operator NSString*() from the UIProcess, since it uses
1586         StringImpl::createCFString() which expects to be called from WebCore's main thread.
1587
1588         * UIProcess/API/mac/PageClientImpl.h:
1589         * UIProcess/API/mac/PageClientImpl.mm:
1590         (WebKit::nsStringFromWebCoreString):
1591         (WebKit::PageClientImpl::toolTipChanged):
1592         * UIProcess/API/mac/WKView.mm:
1593         (-[WKView view:stringForToolTip:point:userData:]):
1594
1595 2010-06-15  Sam Weinig  <sam@webkit.org>
1596
1597         Reviewed by Anders Carlsson.
1598
1599         Fix for https://bugs.webkit.org/show_bug.cgi?id=40630
1600         WebKit2: Add mechanism to inject code into the WebProcess on startup
1601
1602         Add initial InjectedBundle support.
1603
1604         * Shared/CoreIPCSupport/WebProcessMessageKinds.h:
1605         (WebProcessMessage::):
1606         Add new LoadInjectedBundle message kind.
1607
1608         * UIProcess/API/C/WKContext.cpp:
1609         (toWK):
1610         (WKContextCreate):
1611         (WKContextCreateWithInjectedBundlePath):
1612         * UIProcess/API/C/WKContext.h:
1613         Rename WKContextCreateWithProcessModel to WKContextCreate and add
1614         WKContextCreateWithInjectedBundlePath for creating a context with
1615         a bundle.
1616
1617         * UIProcess/WebContext.cpp:
1618         (WebKit::WebContext::WebContext):
1619         * UIProcess/WebContext.h:
1620         (WebKit::WebContext::create):
1621         (WebKit::WebContext::processModel):
1622         (WebKit::WebContext::bundlePath):
1623         * UIProcess/WebPageNamespace.cpp:
1624         (WebKit::WebPageNamespace::ensureWebProcess):
1625         (WebKit::WebPageNamespace::reviveIfNecessary):
1626         * UIProcess/WebProcessManager.cpp:
1627         (WebKit::WebProcessManager::getWebProcess):
1628         * UIProcess/WebProcessManager.h:
1629         * UIProcess/WebProcessProxy.cpp:
1630         (WebKit::WebProcessProxy::create):
1631         (WebKit::WebProcessProxy::WebProcessProxy):
1632         * UIProcess/WebProcessProxy.h:
1633         Thread the bundle path through process creation.
1634
1635         * WebProcess/InjectedBundle: Added.
1636         * WebProcess/InjectedBundle/API: Added.
1637         * WebProcess/InjectedBundle/API/c: Added.
1638         * WebProcess/InjectedBundle/API/c/WKBundle.cpp: Added.
1639         (WKBundleSetClient):
1640         * WebProcess/InjectedBundle/API/c/WKBundle.h: Added.
1641         * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h: Added.
1642         (WebKit::):
1643         (toWK):
1644         (toRef):
1645         * WebProcess/InjectedBundle/API/c/WKBundleBase.h: Added.
1646         * WebProcess/InjectedBundle/API/c/WKBundleInitialize.h: Added.
1647         * WebProcess/InjectedBundle/InjectedBundle.cpp: Added.
1648         (WebKit::InjectedBundle::InjectedBundle):
1649         (WebKit::InjectedBundle::~InjectedBundle):
1650         (WebKit::InjectedBundle::initializeClient):
1651         (WebKit::InjectedBundle::didCreatePage):
1652         * WebProcess/InjectedBundle/InjectedBundle.h: Added.
1653         (WebKit::InjectedBundle::create):
1654         Add bundle boilerplate.
1655
1656         * WebProcess/InjectedBundle/mac: Added.
1657         * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp: Added.
1658         (WebKit::InjectedBundle::load):
1659         Load the InjectedBundle using CFBundle.
1660
1661         * WebProcess/InjectedBundle/win: Added.
1662         * WebProcess/InjectedBundle/win/InjectedBundleWin.cpp: Added.
1663         (WebKit::pathGetFileName):
1664         (WebKit::directoryName):
1665         (WebKit::InjectedBundle::load):
1666         Load the InjectedBundle using HMODULE.
1667
1668         * WebProcess/WebPage/WebPage.cpp:
1669         (WebKit::WebPage::WebPage):
1670         Add initial bundle callback for page creation. More to come.
1671
1672         * WebProcess/WebProcess.cpp:
1673         (WebKit::WebProcess::loadInjectedBundle):
1674         (WebKit::WebProcess::didReceiveMessage):
1675         * WebProcess/WebProcess.h:
1676         (WebKit::WebProcess::injectedBundle):
1677         Load the InjectedBundle on LoadInjectedBundle message.
1678
1679         * WebKit2.xcodeproj/project.pbxproj:
1680         * mac/WebKit2.exp:
1681         * win/WebKit2.vcproj:
1682         * win/WebKit2Generated.make:
1683         Add the new files.
1684
1685 2010-06-15  Darin Adler  <darin@apple.com>
1686
1687         Reviewed by Adam Barth.
1688
1689         Move functions out of Frame class that were marked "move to Chrome"
1690         https://bugs.webkit.org/show_bug.cgi?id=39636
1691
1692         * WebProcess/WebPage/WebPage.cpp:
1693         (WebKit::WebPage::tryClose): Call shouldClose on FrameLoader instead of
1694         going through Frame.
1695
1696 2010-06-14  Steve Falkenburg  <sfalken@apple.com>
1697
1698         Windows build fix.
1699         Reorder build event to fix cygwin path issue.
1700
1701         * win/WebKit2Generated.vcproj:
1702
1703 2010-06-14  Steve Falkenburg  <sfalken@apple.com>
1704
1705         Windows build fix.
1706         Add build failure stopping code.
1707
1708         * win/WebKit2WebProcess.vcproj:
1709
1710 2010-06-14  Steve Falkenburg  <sfalken@apple.com>
1711
1712         Windows build fix.
1713         Add build failure stopping code.
1714
1715         * win/WebKit2Generated.vcproj:
1716
1717 2010-06-14  Ada Chan  <adachan@apple.com>
1718
1719         Rubber-stamped by Steve Falkenburg.
1720
1721         - Fix the release configuration to use release.vsprops.
1722         - Add Debug_Internal and Debug_All configurations to the WebKit2WebProcess project.
1723         - Fix launchWebProcess() to get the right path to the WebKit2WebProcess executable.
1724
1725         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
1726         (WebKit::launchWebProcess):
1727         * win/WebKit2WebProcess.vcproj:
1728
1729 2010-06-12  Ada Chan  <adachan@apple.com>
1730
1731         Unreviewed fix for a linking error with WebKit2LocalizableStringsBundle for Windows release build.
1732
1733         * WebProcess/win/WebLocalizableStrings.cpp:
1734         (findCachedString):
1735
1736 2010-06-11  Sam Weinig  <sam@webkit.org>
1737
1738         Reviewed by Mark Rowe.
1739
1740         Use -Os for optimized builds instead of -02. -02 wasn't giving the 
1741         right trade off at this time.
1742
1743         * Configurations/Base.xcconfig:
1744
1745 2010-06-11  Sam Weinig  <sam@webkit.org>
1746
1747         Reviewed by Anders Carlsson.
1748
1749         Move WKRetain and WKRelease overloaded functions out of WKRetainPtr
1750         and into the files of the type they overload (eg, WKRetain(WKFrameRef 
1751         moves to WKFrame.h)).
1752
1753         * UIProcess/API/C/WKBase.h:
1754         * UIProcess/API/C/WKContext.h:
1755         * UIProcess/API/C/WKFrame.h:
1756         * UIProcess/API/C/WKFramePolicyListener.h:
1757         * UIProcess/API/C/WKNavigationData.h:
1758         * UIProcess/API/C/WKPage.h:
1759         * UIProcess/API/C/WKPageNamespace.h:
1760         * UIProcess/API/C/WKPreferences.h:
1761         * UIProcess/API/C/WKString.h:
1762         * UIProcess/API/C/WKURL.h:
1763         * UIProcess/API/cpp/WKRetainPtr.h:
1764         * UIProcess/API/win/WKView.h:
1765
1766 2010-06-10  John Sullivan  <sullivan@apple.com>
1767
1768         Reviewed by Dan Bernstein.
1769
1770         * mac/WebKit2.exp:
1771         Added another symbol needed by Mac clients.
1772
1773 2010-06-09  Ilya Tikhonovsky  <loislo@chromium.org>
1774
1775         Unreviewed build fix.
1776
1777         * WebProcess/WebCoreSupport/WebInspectorClient.h:
1778
1779 2010-06-09  Ilya Tikhonovsky  <loislo@chromium.org>
1780
1781         Unreviewed build fix.
1782
1783         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
1784         data from inspected page to WebInspector as JSON string via http. The native
1785         serialization to JSON string is supported by InspectorValue's classes. This patch
1786         has the implementation of sendMessageToFrontend function. WebKit version of it still
1787         uses ScriptFunctionCall and will be switched to another transport a little bit later.
1788         https://bugs.webkit.org/show_bug.cgi?id=40134
1789
1790         * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
1791         (WebKit::WebInspectorClient::sendMessageToFrontend):
1792         * WebProcess/WebCoreSupport/WebInspectorClient.h:
1793
1794 2010-06-08  Anders Carlsson  <andersca@apple.com>
1795
1796         Reviewed by John Sullivan.
1797
1798         <rdar://problem/8071268> WebKit2 URLs are displayed as 1-character strings in log statements
1799
1800         Create a CFString from our WebCore string and then create the CFURL from the CFString.
1801
1802         * UIProcess/API/C/cf/WKURLCF.cpp:
1803         (WKURLCopyCFURL):
1804
1805 2010-06-08  John Sullivan  <sullivan@apple.com>
1806
1807         Rubber-stamped by Anders Carlsson.
1808
1809         * mac/WebKit2.exp:
1810         Added _WKPageGetEstimatedProgress and _WKFrameGetPage
1811
1812 2010-06-08  Anders Carlsson  <andersca@apple.com>
1813
1814         Reviewed by John Sullivan.
1815
1816         Would like a way to query WKPageRef for the current progress value
1817         https://bugs.webkit.org/show_bug.cgi?id=40310
1818         <rdar://problem/8071299>
1819
1820         Add WKPageGetEstimatedProgress. Remove the progress parameter from the didChangeProgress
1821         loader client callback function.
1822
1823         * UIProcess/API/C/WKPage.cpp:
1824         (WKPageGetEstimatedProgress):
1825         * UIProcess/API/C/WKPage.h:
1826         * UIProcess/WebLoaderClient.cpp:
1827         (WebKit::WebLoaderClient::didChangeProgress):
1828         * UIProcess/WebLoaderClient.h:
1829         * UIProcess/WebPageProxy.cpp:
1830         (WebKit::WebPageProxy::WebPageProxy):
1831         (WebKit::WebPageProxy::close):
1832         (WebKit::WebPageProxy::didStartProgress):
1833         (WebKit::WebPageProxy::didChangeProgress):
1834         (WebKit::WebPageProxy::didFinishProgress):
1835         (WebKit::WebPageProxy::processDidExit):
1836         * UIProcess/WebPageProxy.h:
1837         (WebKit::WebPageProxy::estimatedProgress):
1838
1839 2010-06-08  Anders Carlsson  <andersca@apple.com>
1840
1841         Reviewed by John Sullivan.
1842
1843         Would like a way to tell which WKPageRef a WKFrameRef is part of
1844         https://bugs.webkit.org/show_bug.cgi?id=40308
1845         <rdar://problem/8071251>
1846
1847         Add and implement WKFrameGetPage.
1848
1849         * UIProcess/API/C/WKFrame.cpp:
1850         (WKFrameGetPage):
1851         * UIProcess/API/C/WKFrame.h:
1852         * UIProcess/WebFrameProxy.h:
1853         (WebKit::WebFrameProxy::page):
1854
1855 2010-06-08  John Sullivan  <sullivan@apple.com>
1856
1857         Rubber-stamped by Mark Rowe.
1858
1859         * mac/WebKit2.exp:
1860         Added a few more symbols needed by Mac clients.
1861
1862 2010-06-08  MORITA Hajime  <morrita@google.com>
1863
1864         Unreviewed. An attempt to fix test break.
1865
1866         * Configurations/FeatureDefines.xcconfig:
1867
1868 2010-06-06  MORITA Hajime  <morrita@google.com>
1869
1870         Unreviewd, follow up to r60820
1871
1872         https://bugs.webkit.org/show_bug.cgi?id=40219
1873         [Mac] ENABLE_METER_TAG should be enabled
1874         
1875         * Configurations/FeatureDefines.xcconfig:
1876
1877 2010-06-05  Mark Rowe  <mrowe@apple.com>
1878
1879         Rubber-stamped by Dan Bernstein.
1880
1881         <rdar://problem/8063622> Failure to launch WebProcess.app when framework is outside of the build directory
1882
1883         * Configurations/WebProcess.xcconfig:
1884
1885 2010-06-04  John Sullivan  <sullivan@apple.com>
1886
1887         Rubber-stamped by Ada Chan.
1888
1889         Added a couple of symbols needed to start using WKFrameRefs in Mac clients.
1890
1891         * mac/WebKit2.exp:
1892         Added _WKFrameRelease and _WKFrameRetain.
1893
1894 2010-06-04  Ada Chan  <adachan@apple.com>
1895
1896         Reviewed by Anders Carlsson.
1897
1898         http://bugs.webkit.org/show_bug.cgi?id=40186
1899         
1900         Need to close WebPageProxy when the WebView is destroyed.
1901         Also, WebPageProxy shouldn't hold an OwnPtr to the PageClient, which is the WebView on Windows.
1902
1903         * UIProcess/WebPageProxy.cpp:
1904         (WebKit::WebPageProxy::WebPageProxy):
1905         (WebKit::WebPageProxy::setPageClient):
1906         * UIProcess/WebPageProxy.h:
1907         * UIProcess/win/WebView.cpp:
1908         (WebKit::WebView::close):
1909
1910 2010-06-03  Ada Chan  <adachan@apple.com>
1911
1912         Reviewed by Adam Roben.
1913
1914         https://bugs.webkit.org/show_bug.cgi?id=40152
1915         
1916         Need to remove the WebView from WindowMessageBroadcaster's listeners list when the WebView is destroyed.
1917
1918         * UIProcess/API/win/WKView.cpp:
1919         (WKViewSetHostWindow): Expose API to change the host window of a WKView.
1920         (WKViewWindowAncestryDidChange): Expose API to allow clients to notify WebKit when a WKView's window ancestry has changed.
1921         * UIProcess/API/win/WKView.h:
1922         * UIProcess/win/WebView.cpp:
1923         (WebKit::WebView::wndProc): Set the WebView's host window to 0 when it's destroyed.  setHostWindow() will call 
1924         windowAncestryDidChange(), which will remove this WebView from the WindowMessageBroadcaster's listeners list.
1925         (WebKit::WebView::WebView): Initialize m_isBeingDestroyed.
1926         (WebKit::WebView::setHostWindow): Update the window's parent window and call windowAncestryDidChange().
1927         (WebKit::WebView::close): Set the host window to 0.
1928         * UIProcess/win/WebView.h:
1929
1930 2010-06-04  Tony Gentilcore  <tonyg@chromium.org>
1931
1932         Reviewed by Adam Barth.
1933
1934         Utilize new takeFirst() method where appropriate.
1935         https://bugs.webkit.org/show_bug.cgi?id=40089
1936
1937         * Platform/CoreIPC/ArgumentDecoder.cpp:
1938         (CoreIPC::ArgumentDecoder::removeAttachment):
1939
1940 2010-06-03  Ada Chan  <adachan@apple.com>
1941
1942         Reviewed by Anders Carlsson.
1943
1944         Add UIProcess\API\cpp to the list of additional include directories.
1945         Allow WKViewRef to work with WKRetainPtr on Windows.
1946
1947         * UIProcess/API/cpp/WKRetainPtr.h:
1948         * win/WebKit2.vcproj:
1949
1950 2010-06-01  Alice Liu  <alice.liu@apple.com>
1951
1952         Build fix. Not reviewed
1953
1954         * win/WebKit2Generated.make: Added WKRetainPtr.h
1955
1956 2010-06-01  John Sullivan  <sullivan@apple.com>
1957
1958         Rubber-stamped by Anders Carlsson.
1959
1960         Added _WKRetainPtr to .exp file, and added .exp file to Xcode project.
1961
1962         * WebKit2.xcodeproj/project.pbxproj:
1963         Added mac/WebKit2.exp.
1964         
1965         * mac/WebKit2.exp:
1966         Added _WKRetainPtr.
1967
1968 2010-06-01  John Sullivan  <sullivan@apple.com>
1969
1970         Rubber-stamped by Anders Carlsson.
1971
1972         Fixed typo/wordo that prevented a certain flavor of constructor from compiling.
1973
1974         * UIProcess/API/cpp/WKRetainPtr.h:
1975         (WebKit::WKRetainPtr::WKRetainPtr):
1976         Changed the mysterious "retainWKPtr" to "WKRetain".
1977
1978 2010-05-28  John Sullivan  <sullivan@apple.com>
1979
1980         Rubber-stamped by Dan Bernstein.
1981
1982         Add a using declaration for AdoptWK to match the one just added for WKRetainPtr.
1983
1984         * UIProcess/API/cpp/WKRetainPtr.h:
1985
1986 2010-05-28  Sam Weinig  <sam@webkit.org>
1987
1988         Reviewed by Anders Carlsson.
1989
1990         Add a using declaration for WKRetainPtr matching what we do for our
1991         other smart pointers and fix the destructor.
1992
1993         * UIProcess/API/cpp/WKRetainPtr.h:
1994         (WebKit::WKRetainPtr::~WKRetainPtr):
1995
1996 2010-05-25  Ada Chan  <adachan@apple.com>
1997
1998         Reviewed by Darin Adler.
1999
2000         https://bugs.webkit.org/show_bug.cgi?id=39686
2001
2002         Fix the ProjectGUID of the WebKit2 project so it doesn't conflict with the one in WebKit.        
2003
2004         * WebKit2.sln:
2005         * win/WebKit2.vcproj:
2006
2007 2010-05-24  Ada Chan  <adachan@apple.com>
2008
2009         Rubber-stamped by Mark Rowe.
2010         
2011         Build fix for 32bit systems.
2012
2013         * mac/WebKit2.exp:
2014
2015 2010-05-21  Mark Rowe  <mrowe@apple.com>
2016
2017         Reviewed by Oliver Hunt.
2018
2019         Teach WebKit2 to build in the Production configuration.
2020
2021         * Configurations/Base.xcconfig: Restrict WebKit2 to Intel, and disable the order file.
2022         * Configurations/BaseTarget.xcconfig: Fix the path to the umbrella framework directory.
2023         This path is used to locate WebCore.framework, so it needs to be relative to WebKit.framework
2024         rather than WebKit2.framework.
2025         * Configurations/WebKit2.xcconfig: Update the install path.  Add an exports file.
2026         * Configurations/WebProcess.xcconfig: Update the install path.
2027         * WebKit2.xcodeproj/project.pbxproj: Add a Production configuration.
2028         * mac/WebKit2.exp: Added.
2029
2030 2010-05-21  Steve Block  <steveblock@google.com>
2031
2032         Unreviewed build fix for WebKit2
2033
2034         Pass 0 to Page constructor for DeviceOrientationClient.
2035         See http://trac.webkit.org/changeset/59935
2036
2037         * WebProcess/WebPage/WebPage.cpp:
2038         (WebKit::WebPage::WebPage):
2039
2040 2010-05-11  Mark Rowe  <mrowe@apple.com>
2041
2042         Fix the world.
2043
2044         In r59162 a change was made to WebCore's FeatureDefines.xcconfig that enabled FILE_READER and FILE_WRITER.
2045         The author and reviewer of that patch ignored the carefully-worded warning at the top of that file asking
2046         that changes to the file be kept in sync across JavaScriptCore, WebCore and WebKit, as well as being kept
2047         in sync with build-webkit.  This led to WebCore and WebKit having different views of Document's vtable
2048         and results in crashes in Safari shortly after launch when virtual function calls resulted in the wrong
2049         function in WebCore being called.
2050
2051         We fix this by bringing the FeatureDefines.xcconfig files in to sync.  Based on the ChangeLog message and
2052         other changes in r59162 it appears that enabling FILE_WRITER was unintentional so that particular change
2053         has been reverted.
2054
2055         * Configurations/FeatureDefines.xcconfig:
2056
2057 2010-05-04  Anders Carlsson  <andersca@apple.com>
2058
2059         Reviewed by Dan Bernstein.
2060
2061         [WebKit2] The web process doesn't need to paint when the web view is hidden.
2062         https://bugs.webkit.org/show_bug.cgi?id=38549
2063
2064         * Shared/CoreIPCSupport/DrawingAreaMessageKinds.h:
2065         (DrawingAreaMessage::):
2066         Add SuspendPainting/ResumePainting messages.
2067         
2068         * UIProcess/DrawingAreaProxyUpdateChunk.cpp:
2069         (WebKit::DrawingAreaProxyUpdateChunk::setPageIsVisible):
2070         Suspend and resume painting accordingly.
2071         
2072         * WebProcess/WebPage/DrawingAreaUpdateChunk.cpp:
2073         (WebKit::DrawingAreaUpdateChunk::DrawingAreaUpdateChunk):
2074         Initialize m_shouldPaint to true.
2075         
2076         (WebKit::DrawingAreaUpdateChunk::display):
2077         Return if m_shouldPaint is false.
2078         
2079         (WebKit::DrawingAreaUpdateChunk::scheduleDisplay):
2080         Ditto.
2081         
2082         (WebKit::DrawingAreaUpdateChunk::setSize):
2083         Assert that we should paint here.
2084
2085         (WebKit::DrawingAreaUpdateChunk::suspendPainting):
2086         Set m_shouldPaint to false and stop the timer.
2087         
2088         (WebKit::DrawingAreaUpdateChunk::resumePainting):
2089         Set m_shouldPaint to true and paint if needed.
2090
2091         (WebKit::DrawingAreaUpdateChunk::didReceiveMessage):
2092         handle SuspendPainting/ResumePainting messages.
2093
2094         * WebProcess/WebPage/DrawingAreaUpdateChunk.h:
2095
2096 2010-05-03  Anders Carlsson  <andersca@apple.com>
2097
2098         Reviewed by Jon Honeycutt.
2099
2100         [WebKit2] WKView should respond to WM_SHOWWINDOW messages
2101         https://bugs.webkit.org/show_bug.cgi?id=38496
2102
2103         * UIProcess/win/WebView.cpp:
2104         (WebKit::WebView::wndProc):
2105         Add case for WM_SHOWWINDOW.
2106
2107         (WebKit::WebView::onShowWindowEvent):
2108         Update the page visibility accordingly.
2109
2110         * UIProcess/win/WebView.h:
2111
2112 2010-05-03  Anders Carlsson  <andersca@apple.com>
2113
2114         Reviewed by Dan Bernstein.
2115
2116         Get rid of PageClient::isPageVisible and pass visibility directly in setPageIsVisible
2117         https://bugs.webkit.org/show_bug.cgi?id=38493
2118
2119         * UIProcess/API/mac/PageClientImpl.h:
2120         * UIProcess/API/mac/PageClientImpl.mm:
2121         Remove isPageVisible.
2122         
2123         * UIProcess/API/mac/WKView.mm:
2124         (isViewVisible):
2125         New function (moved here from PageClientImpl).
2126         
2127         (-[WKView _updateVisibility]):
2128         Call didChangeVisibility.
2129         
2130         (-[WKView viewDidMoveToWindow]):
2131         (-[WKView viewDidHide]):
2132         (-[WKView viewDidUnhide]):
2133         Call _updateVisibility.
2134         
2135         * UIProcess/DrawingAreaProxy.h:
2136         Rename didChangeVisibility to setPageIsVisible and add an isVisible parameter.
2137         
2138         * UIProcess/DrawingAreaProxyUpdateChunk.cpp:
2139         (WebKit::DrawingAreaProxyUpdateChunk::setPageIsVisible):
2140         Don't call WebPageProxy::isVisible.
2141
2142         * UIProcess/DrawingAreaProxyUpdateChunk.h:
2143         
2144         * UIProcess/PageClient.h:
2145         Remove isPageVisible.
2146
2147         * UIProcess/WebPageProxy.cpp:
2148         * UIProcess/WebPageProxy.h:
2149         Remove isVisible.
2150
2151 2010-05-03  Anders Carlsson  <andersca@apple.com>
2152
2153         Reviewed by Adam Roben.
2154
2155         Implement PageClient::isPageVisible on Windows.
2156         https://bugs.webkit.org/show_bug.cgi?id=38483
2157
2158         * UIProcess/PageClient.h:
2159         * UIProcess/win/WebView.cpp:
2160         (WebKit::WebView::isPageVisible):
2161         * UIProcess/win/WebView.h:
2162
2163 2010-05-03  Anders Carlsson  <andersca@apple.com>
2164
2165         Fix Windows build.
2166
2167         * Platform/CoreIPC/win/ConnectionWin.cpp:
2168         (CoreIPC::Connection::sendOutgoingMessage):
2169         * Shared/win/UpdateChunk.cpp:
2170         (WebKit::UpdateChunk::UpdateChunk):
2171         (WebKit::UpdateChunk::encode):
2172         (WebKit::UpdateChunk::decode):
2173         * Shared/win/UpdateChunk.h:
2174         (WebKit::UpdateChunk::rect):
2175         * UIProcess/DrawingAreaProxy.h:
2176         * UIProcess/DrawingAreaProxyUpdateChunk.h:
2177         * UIProcess/win/DrawingAreaProxyUpdateChunkWin.cpp:
2178         (WebKit::DrawingAreaProxyUpdateChunk::drawUpdateChunkIntoBackingStore):
2179         * WebProcess/WebPage/win/DrawingAreaUpdateChunkWin.cpp:
2180         (WebKit::DrawingAreaUpdateChunk::paintIntoUpdateChunk):
2181         * WebProcess/win/WebProcessMain.cpp:
2182
2183 2010-04-30  Anders Carlsson  <andersca@apple.com>
2184
2185         Reviewed by Sam Weinig.
2186
2187         https://bugs.webkit.org/show_bug.cgi?id=38415
2188         Have the WKView notify the DrawingAreaProxy when its visibility changes.
2189
2190         * UIProcess/API/mac/PageClientImpl.h:
2191         * UIProcess/API/mac/PageClientImpl.mm:
2192         (WebKit::PageClientImpl::isPageVisible):
2193         * UIProcess/API/mac/WKView.mm:
2194         (-[WKView viewDidMoveToWindow]):
2195         (-[WKView viewDidHide]):
2196         (-[WKView viewDidUnhide]):
2197         * UIProcess/DrawingAreaProxy.h:
2198         * UIProcess/DrawingAreaProxyUpdateChunk.cpp:
2199         (WebKit::DrawingAreaProxyUpdateChunk::DrawingAreaProxyUpdateChunk):
2200         (WebKit::DrawingAreaProxyUpdateChunk::didChangeVisibility):
2201         * UIProcess/DrawingAreaProxyUpdateChunk.h:
2202         * UIProcess/PageClient.h:
2203         * UIProcess/WebPageProxy.cpp:
2204         (WebKit::WebPageProxy::isVisible):
2205         * UIProcess/WebPageProxy.h:
2206
2207 2010-05-03  Jens Alfke  <snej@chromium.org>
2208
2209         Reviewed by Darin Fisher.
2210
2211         [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
2212         https://bugs.webkit.org/show_bug.cgi?id=38397
2213
2214         No tests (functionality is exposed only through native WebKit API.)
2215
2216         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2217         (WebKit::WebFrameLoaderClient::dispatchWillSendSubmitEvent):
2218
2219 2010-05-01  Sam Weinig  <sam@webkit.org>
2220
2221         Reviewed by Anders Carlsson.
2222
2223         Fix for https://bugs.webkit.org/show_bug.cgi?id=38471
2224         Add generic callback mechanism
2225
2226         Added GenericCallback class replacing RenderTreeExternalRepresentationCallback
2227         and ScriptReturnValueCallback.
2228         
2229         Also,
2230         - Standardize C API callbacks to take the context last.
2231         - Standardize C API callbacks to not have the _f suffix (now the block
2232           variants have a _b suffix).
2233         - Re-write toWK and toRef methods as a set of template functions using
2234           the generic API->implementation mapping information.
2235
2236         * UIProcess/API/C/WKAPICast.h:
2237         * UIProcess/API/C/WKPage.cpp:
2238         (WKPageRunJavaScriptInMainFrame):
2239         (callRunJavaScriptBlockAndRelease):
2240         (disposeRunJavaScriptBlock):
2241         (WKPageRunJavaScriptInMainFrame_b):
2242         (WKPageRenderTreeExternalRepresentation):
2243         (WKPageRenderTreeExternalRepresentation_b):
2244         * UIProcess/API/C/WKPage.h:
2245         * UIProcess/API/C/WKPagePrivate.h:
2246         * UIProcess/GenericCallback.h: Added.
2247         (WebKit::GenericCallback::create):
2248         (WebKit::GenericCallback::~GenericCallback):
2249         (WebKit::GenericCallback::performCallbackWithReturnValue):
2250         (WebKit::GenericCallback::invalidate):
2251         (WebKit::GenericCallback::callbackID):
2252         (WebKit::GenericCallback::generateCallbackID):
2253         (WebKit::GenericCallback::GenericCallback):
2254         * UIProcess/RenderTreeExternalRepresentationCallback.cpp: Removed.
2255         * UIProcess/RenderTreeExternalRepresentationCallback.h: Removed.
2256         * UIProcess/ScriptReturnValueCallback.cpp: Removed.
2257         * UIProcess/ScriptReturnValueCallback.h: Removed.
2258         * UIProcess/WebPageProxy.cpp:
2259         (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
2260         (WebKit::WebPageProxy::didGetRenderTreeExternalRepresentation):
2261         * UIProcess/WebPageProxy.h:
2262         * WebKit2.xcodeproj/project.pbxproj:
2263         * win/WebKit2.vcproj:
2264
2265 2010-04-30  Sam Weinig  <sam@webkit.org>
2266
2267         Fix the build.
2268
2269         * Platform/CoreIPC/mac/ConnectionMac.cpp: Add missing #include.
2270
2271 2010-04-30  Sam Weinig  <sam@webkit.org>
2272
2273         Reviewed by Anders Carlsson.
2274
2275         https://bugs.webkit.org/show_bug.cgi?id=38413
2276         Add callback based API to get the textual representation of the RenderTree.
2277
2278         - Also ensures that any pending callbacks are invalidated if the WebPage
2279           closes (expectedly or unexpectedly).
2280         - A follow up patch will unify the callback mechanism with a common base
2281           class.
2282
2283         * Shared/CoreIPCSupport/WebPageMessageKinds.h:
2284         (WebPageMessage::):
2285         * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
2286         (WebPageProxyMessage::):
2287         * UIProcess/API/C/WKPage.cpp:
2288         (WKPageRunJavaScriptInMainFrame_f):
2289         (WKPageRenderTreeExternalRepresentation_f):
2290         (callRenderTreeExternalRepresentationBlockAndDispose):
2291         (disposeRenderTreeExternalRepresentationBlock):
2292         (WKPageRenderTreeExternalRepresentation):
2293         * UIProcess/API/C/WKPagePrivate.h: Added.
2294         * UIProcess/RenderTreeExternalRepresentationCallback.cpp: Added.
2295         (WebKit::generateCallbackID):
2296         (WebKit::RenderTreeExternalRepresentationCallback::RenderTreeExternalRepresentationCallback):
2297         (WebKit::RenderTreeExternalRepresentationCallback::~RenderTreeExternalRepresentationCallback):
2298         (WebKit::RenderTreeExternalRepresentationCallback::performCallbackWithReturnValue):
2299         (WebKit::RenderTreeExternalRepresentationCallback::invalidate):
2300         * UIProcess/RenderTreeExternalRepresentationCallback.h: Added.
2301         (WebKit::RenderTreeExternalRepresentationCallback::create):
2302         (WebKit::RenderTreeExternalRepresentationCallback::callbackID):
2303         * UIProcess/ScriptReturnValueCallback.cpp:
2304         (WebKit::ScriptReturnValueCallback::~ScriptReturnValueCallback):
2305         (WebKit::ScriptReturnValueCallback::performCallbackWithReturnValue):
2306         (WebKit::ScriptReturnValueCallback::invalidate):
2307         * UIProcess/ScriptReturnValueCallback.h:
2308         * UIProcess/WebPageProxy.cpp:
2309         (WebKit::WebPageProxy::close):
2310         (WebKit::WebPageProxy::getRenderTreeExternalRepresentation):
2311         (WebKit::WebPageProxy::didReceiveMessage):
2312         (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
2313         (WebKit::WebPageProxy::didGetRenderTreeExternalRepresentation):
2314         (WebKit::WebPageProxy::processDidExit):
2315         * UIProcess/WebPageProxy.h:
2316         * WebKit2.xcodeproj/project.pbxproj:
2317         * WebProcess/WebPage/WebPage.cpp:
2318         (WebKit::WebPage::getRenderTreeExternalRepresentation):
2319         (WebKit::WebPage::didReceiveMessage):
2320         * WebProcess/WebPage/WebPage.h:
2321         * win/WebKit2.vcproj:
2322
2323 2010-04-30  Sam Weinig  <sam@webkit.org>
2324
2325         Reviewed by Anders Carlsson.
2326
2327         Fix for https://bugs.webkit.org/show_bug.cgi?id=38406
2328         Add support for sending messages with a size greater than 4096 bytes
2329
2330         Adds support by putting message bodies that are larger than 4096 bytes
2331         in OOL memory.
2332
2333         * Platform/CoreIPC/Connection.cpp:
2334         (CoreIPC::Connection::sendMessage):
2335         (CoreIPC::Connection::waitForMessage):
2336         (CoreIPC::Connection::sendSyncMessage):
2337         (CoreIPC::Connection::dispatchMessages):
2338         * Platform/CoreIPC/Connection.h:
2339         (CoreIPC::Connection::OutgoingMessage::OutgoingMessage):
2340         (CoreIPC::Connection::OutgoingMessage::messageID):
2341         (CoreIPC::Connection::send):
2342         (CoreIPC::Connection::sendSync):
2343         * Platform/CoreIPC/MessageID.h:
2344         (CoreIPC::MessageID::):
2345         (CoreIPC::MessageID::MessageID):
2346         (CoreIPC::MessageID::equalIgnoringFlags):
2347         (CoreIPC::MessageID::copyAddingFlags):
2348         (CoreIPC::MessageID::fromInt):
2349         (CoreIPC::MessageID::toInt):
2350         (CoreIPC::MessageID::isMessageBodyOOL):
2351         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2352         (CoreIPC::Connection::sendOutgoingMessage):
2353         (CoreIPC::createArgumentDecoder):
2354
2355 2010-04-28  Mike Thole  <mthole@apple.com>
2356
2357         Build fix, not reviewed.
2358
2359         Fix WebKit2 build by stubbing out WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace().
2360
2361         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2362         (WebKit::WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace):
2363         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2364
2365 2010-04-28  Sam Weinig  <sam@webkit.org>
2366
2367         Reviewed by Mark Rowe.
2368
2369         Only build on SnowLeopard and later when using the Makefile.
2370
2371         * Makefile:
2372
2373 2010-04-27  Sam Weinig  <sam@webkit.org>
2374
2375         Reviewed by Maciej Stachowiak.
2376
2377         Fix for https://bugs.webkit.org/show_bug.cgi?id=38238
2378         Allow both WebKit and WebKit2 to link to the same WebCore.framework
2379
2380         * Configurations/WebKit2.xcconfig: Remove the OTHER_LDFLAGS. We don't
2381         need to set WebCore as a sub_umbrella of WebKit2, since we are not
2382         reexporting any of its symbols.
2383
2384 2010-04-27  Sam Weinig  <sam@webkit.org>
2385
2386         Reviewed by Geoffrey Garen.
2387
2388         Add comment about not using StringImpl::createCFString in WKStringCopyCFString.
2389
2390         * UIProcess/API/C/cf/WKStringCF.cpp:
2391         (WKStringCopyCFString):
2392
2393 2010-04-27  Sam Weinig  <sam@webkit.org>
2394
2395         Reviewed by Geoffrey Garen.
2396
2397         Remove call to StringImpl::createCFString and instead use CFStringCreateWithCharacters
2398         directly. StringImpl::createCFString only an optimization when called
2399         from the thread that WebCore is running on, which is never the case for
2400         WKStringCopyCFString. We should revisit this later, perhaps adding a
2401         threadspecific allocator. We also now honor the passed in allocator.
2402
2403         * UIProcess/API/C/cf/WKStringCF.cpp:
2404         (WKStringCopyCFString):
2405
2406 2010-04-25  Sam Weinig  <sam@webkit.org>
2407
2408         Reviewed by Maciej Stachowiak.
2409
2410         Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
2411         Disentangle initializing the main thread from initializing threading
2412
2413         * UIProcess/Launcher/mac/WebProcessLauncher.mm:
2414         (WebKit::webThreadBody): Add call to initializeMainThread.
2415         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
2416         (WebKit::webThreadBody): Ditto.
2417         * WebProcess/Launching/mac/WebProcessMain.mm:
2418         (main): Ditto.
2419         * WebProcess/win/WebProcessMain.cpp:
2420         (WebKit::WebProcessMain): Ditto.
2421
2422 2010-04-23  Sam Weinig  <sam@webkit.org>
2423
2424         Reviewed by Anders Carlsson.
2425
2426         https://bugs.webkit.org/show_bug.cgi?id=38065
2427         Merge mac and win DrawingAreaProxyUpdateChunk implementations.
2428
2429         * UIProcess/API/mac/WKView.mm:
2430         (-[WKView drawRect:]):
2431         * UIProcess/DrawingAreaProxy.cpp: Copied from UIProcess/mac/DrawingAreaProxy.mm.
2432         * UIProcess/DrawingAreaProxy.h: Copied from UIProcess/mac/DrawingAreaProxy.h.
2433         * UIProcess/DrawingAreaProxyUpdateChunk.cpp: Copied from UIProcess/mac/DrawingAreaProxyUpdateChunk.mm.
2434         (WebKit::DrawingAreaProxyUpdateChunk::DrawingAreaProxyUpdateChunk):
2435         (WebKit::DrawingAreaProxyUpdateChunk::paint):
2436         (WebKit::DrawingAreaProxyUpdateChunk::setSize):
2437         (WebKit::DrawingAreaProxyUpdateChunk::didSetSize):
2438         (WebKit::DrawingAreaProxyUpdateChunk::update):
2439         (WebKit::DrawingAreaProxyUpdateChunk::didReceiveMessage):
2440         * UIProcess/DrawingAreaProxyUpdateChunk.h: Copied from UIProcess/mac/DrawingAreaProxyUpdateChunk.h.
2441         * UIProcess/mac/DrawingAreaProxy.h: Removed.
2442         * UIProcess/mac/DrawingAreaProxy.mm: Removed.
2443         * UIProcess/mac/DrawingAreaProxyUpdateChunk.h: Removed.
2444         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm: Removed.
2445         * UIProcess/mac/DrawingAreaProxyUpdateChunkMac.mm: Copied from UIProcess/mac/DrawingAreaProxyUpdateChunk.mm.
2446         (WebKit::DrawingAreaProxyUpdateChunk::page):
2447         (WebKit::DrawingAreaProxyUpdateChunk::invalidateBackingStore):
2448         (WebKit::DrawingAreaProxyUpdateChunk::platformPaint):
2449         (WebKit::DrawingAreaProxyUpdateChunk::drawUpdateChunkIntoBackingStore):
2450         * UIProcess/win/DrawingAreaProxy.cpp: Removed.
2451         * UIProcess/win/DrawingAreaProxy.h: Removed.
2452         * UIProcess/win/DrawingAreaProxyUpdateChunkWin.cpp: Copied from UIProcess/win/DrawingAreaProxy.cpp.
2453         (WebKit::DrawingAreaProxyUpdateChunk::page):
2454         (WebKit::DrawingAreaProxyUpdateChunk::ensureBackingStore):
2455         (WebKit::DrawingAreaProxyUpdateChunk::invalidateBackingStore):
2456         (WebKit::DrawingAreaProxyUpdateChunk::platformPaint):
2457         (WebKit::DrawingAreaProxyUpdateChunk::drawUpdateChunkIntoBackingStore):
2458         * UIProcess/win/WebView.cpp:
2459         (WebKit::WebView::WebView):
2460         (WebKit::WebView::onPaintEvent):
2461         * WebKit2.xcodeproj/project.pbxproj:
2462         * win/WebKit2.vcproj:
2463
2464 2010-04-23  Sam Weinig  <sam@webkit.org>
2465
2466         Reviewed by Anders Carlsson.
2467
2468         Fix for https://bugs.webkit.org/show_bug.cgi?id=38059
2469         Merge mac and win DrawingAreaUpdateChunk implementations.
2470
2471         * UIProcess/win/DrawingAreaProxy.cpp:
2472         (WebKit::DrawingAreaProxy::didSetSize):
2473         (WebKit::DrawingAreaProxy::didReceiveMessage):
2474         * UIProcess/win/DrawingAreaProxy.h:
2475         * WebKit2.xcodeproj/project.pbxproj:
2476         * WebProcess/WebPage/DrawingAreaUpdateChunk.cpp: Copied from WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp.
2477         (WebKit::DrawingAreaUpdateChunk::setSize):
2478         * WebProcess/WebPage/DrawingAreaUpdateChunk.h: Copied from WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h.
2479         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp: Removed.
2480         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h: Removed.
2481         * WebProcess/WebPage/mac/DrawingAreaUpdateChunkMac.cpp: Copied from WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp.
2482         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp: Removed.
2483         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.h: Removed.
2484         * WebProcess/WebPage/win/DrawingAreaUpdateChunkWin.cpp: Copied from WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp.
2485         (WebKit::DrawingAreaUpdateChunk::paintIntoUpdateChunk):
2486         * win/WebKit2.vcproj:
2487
2488 2010-04-23  Anders Carlsson  <andersca@apple.com>
2489
2490         Reviewed by Sam Weinig.
2491
2492         Remove an assert. (It's not valid when resizing).
2493
2494         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp:
2495         (WebKit::DrawingAreaUpdateChunk::didUpdate):
2496
2497 2010-04-23  Anders Carlsson  <andersca@apple.com>
2498
2499         Fix build.
2500
2501         * UIProcess/win/DrawingAreaProxy.cpp:
2502         (WebKit::DrawingAreaProxy::paint):
2503         (WebKit::DrawingAreaProxy::setSize):
2504         (WebKit::DrawingAreaProxy::didReceiveMessage):
2505         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp:
2506         (WebKit::DrawingAreaUpdateChunk::setSize):
2507         (WebKit::DrawingAreaUpdateChunk::didReceiveMessage):
2508
2509 2010-04-22  Anders Carlsson  <andersca@apple.com>
2510
2511         Reviewed by Sam Weinig.
2512
2513         Remove an assert. (It's not valid when resizing).
2514
2515         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
2516         (WebKit::DrawingAreaUpdateChunk::didUpdate):
2517
2518 2010-04-22  Sam Weinig  <sam@webkit.org>
2519
2520         Reviewed by Anders Carlsson.
2521
2522         Merge the prefix headers.
2523
2524         * Configurations/BaseTarget.xcconfig:
2525         * WebKit2.xcodeproj/project.pbxproj:
2526         * WebKit2Prefix.h:
2527         * WebKit2_Prefix.pch: Removed.
2528
2529 2010-04-22  Anders Carlsson  <andersca@apple.com>
2530
2531         Reviewed by Sam Weinig.
2532
2533         Don't pass the new size when calling didSetSize, it's possible to get
2534         the size from the update chunk.
2535
2536         * UIProcess/mac/DrawingAreaProxyUpdateChunk.h:
2537         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm:
2538         (WebKit::DrawingAreaProxyUpdateChunk::didSetSize):
2539         (WebKit::DrawingAreaProxyUpdateChunk::didReceiveMessage):
2540         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
2541         (WebKit::DrawingAreaUpdateChunk::setSize):
2542
2543 2010-04-22  Anders Carlsson  <andersca@apple.com>
2544
2545         Reviewed by Sam Weinig.
2546
2547         Rename SetFrame and DidSetFrame to SetSize and DidSetSize.
2548
2549         * Shared/CoreIPCSupport/DrawingAreaMessageKinds.h:
2550         (DrawingAreaMessage::):
2551         * Shared/CoreIPCSupport/DrawingAreaProxyMessageKinds.h:
2552         (DrawingAreaProxyMessage::):
2553         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm:
2554         (WebKit::DrawingAreaProxyUpdateChunk::drawRectIntoContext):
2555         (WebKit::DrawingAreaProxyUpdateChunk::setSize):
2556         (WebKit::DrawingAreaProxyUpdateChunk::didReceiveMessage):
2557         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
2558         (WebKit::DrawingAreaUpdateChunk::setSize):
2559         (WebKit::DrawingAreaUpdateChunk::didReceiveMessage):
2560
2561 2010-04-22  Sam Weinig  <sam@webkit.org>
2562
2563         Reviewed by Anders Carlsson.
2564
2565         Fix for https://bugs.webkit.org/show_bug.cgi?id=38002
2566         Add rudimentary statistics gathering for WebKit2
2567
2568         * UIProcess/API/C/WKContext.cpp:
2569         (WKContextGetStatistics):
2570         * UIProcess/API/C/WKContextPrivate.h: Copied from WebKit2/UIProcess/API/C/WKContext.h.
2571         * UIProcess/API/C/WKPageNamespace.cpp:
2572         (WKPageNamespaceGetContext):
2573         * UIProcess/API/C/WKPageNamespace.h:
2574         * UIProcess/WebContext.cpp:
2575         (WebKit::WebContext::getStatistics):
2576         * UIProcess/WebContext.h:
2577         * UIProcess/WebPageNamespace.cpp:
2578         (WebKit::WebPageNamespace::getStatistics):
2579         * UIProcess/WebPageNamespace.h:
2580         * UIProcess/WebPageProxy.cpp:
2581         (WebKit::WebPageProxy::getStatistics):
2582         * UIProcess/WebPageProxy.h:
2583         * UIProcess/WebProcessProxy.cpp:
2584         (WebKit::WebProcessProxy::numberOfPages):
2585         * UIProcess/WebProcessProxy.h:
2586         * WebKit2.xcodeproj/project.pbxproj:
2587         * win/WebKit2.vcproj:
2588
2589 2010-04-20  Anders Carlsson  <andersca@apple.com>
2590
2591         Reviewed by Sam Weinig.
2592
2593         Don't paint the web page before we've blit the last update chunk to the backing store.
2594
2595         * UIProcess/win/DrawingAreaProxy.cpp:
2596         (WebKit::DrawingAreaProxy::update):
2597         (WebKit::DrawingAreaProxy::didReceiveMessage):
2598         * UIProcess/win/DrawingAreaProxy.h:
2599         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp:
2600         (WebKit::DrawingAreaUpdateChunk::DrawingAreaUpdateChunk):
2601         (WebKit::DrawingAreaUpdateChunk::display):
2602         (WebKit::DrawingAreaUpdateChunk::scheduleDisplay):
2603         (WebKit::DrawingAreaUpdateChunk::setSize):
2604         (WebKit::DrawingAreaUpdateChunk::didUpdate):
2605         (WebKit::DrawingAreaUpdateChunk::didReceiveMessage):
2606         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.h:
2607
2608 2010-04-20  Anders Carlsson  <andersca@apple.com>
2609
2610         Fix build.
2611
2612         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2613         (WebKit::WebFrameLoaderClient::receivedData):
2614
2615 2010-04-20  Anders Carlsson  <andersca@apple.com>
2616
2617         Reviewed by Sam Weinig.
2618
2619         Don't paint the web page before we've blit the last update chunk to the backing store
2620         https://bugs.webkit.org/show_bug.cgi?id=37896
2621
2622         * Shared/CoreIPCSupport/DrawingAreaMessageKinds.h:
2623         (DrawingAreaMessage::):
2624         * UIProcess/mac/DrawingAreaProxyUpdateChunk.h:
2625         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm:
2626         (WebKit::DrawingAreaProxyUpdateChunk::drawUpdateChunkIntoBackingStore):
2627         (WebKit::DrawingAreaProxyUpdateChunk::update):
2628         (WebKit::DrawingAreaProxyUpdateChunk::didReceiveMessage):
2629         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
2630         (WebKit::DrawingAreaUpdateChunk::DrawingAreaUpdateChunk):
2631         (WebKit::DrawingAreaUpdateChunk::display):
2632         (WebKit::DrawingAreaUpdateChunk::scheduleDisplay):
2633         (WebKit::DrawingAreaUpdateChunk::setSize):
2634         (WebKit::DrawingAreaUpdateChunk::didUpdate):
2635         (WebKit::DrawingAreaUpdateChunk::didReceiveMessage):
2636         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h:
2637
2638 2010-04-20  Anders Carlsson  <andersca@apple.com>
2639
2640         Fix build.
2641
2642         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2643         (WebKit::WebChromeClient::chooseIconForFiles):
2644         * WebProcess/WebCoreSupport/WebChromeClient.h:
2645
2646 2010-04-19  Anders Carlsson  <andersca@apple.com>
2647
2648         Fix build.
2649
2650         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2651         (WebKit::WebFrameLoaderClient::dispatchDidChangeIcons):
2652         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2653
2654 2010-04-17  Sam Weinig  <weinig@apple.com>
2655
2656         Reviewed by Jon "The Belly" Honeycutt.
2657
2658         Remove the need for a .defs file! Define WK_EXPORT.
2659
2660         * UIProcess/API/C/WKBase.h:
2661         * WebProcess/win/WebProcessMain.h:
2662         * win/WebKit2.def: Removed.
2663         * win/WebKit2.vcproj:
2664
2665 2010-04-17  Sam Weinig  <weinig@apple.com>
2666
2667         Reviewed by Adam Roben.
2668
2669         Teach windows MiniBrowser how to work with window.open()
2670         and targeted links.
2671
2672         Export WKPageSetPageUIClient.
2673
2674         * win/WebKit2.def:
2675
2676 2010-04-16  Sam Weinig  <sam@webkit.org>
2677
2678         Reviewed by Anders Carlsson.
2679
2680         Fix window.open() and targeted links.
2681
2682         * UIProcess/WebPageProxy.cpp:
2683         (WebKit::WebPageProxy::didReceiveSyncMessage): Pass in the new pageID
2684         instead of 0.
2685
2686         * WebProcess/WebProcess.cpp:
2687         (WebKit::WebProcess::createWebPage): Allow for the page to have already
2688         been created, as is the case with programmatic window opening from within
2689         WebCore (e.g. window.open() or <a target="_blank">).
2690
2691 2010-04-16  Sam Weinig  <sam@webkit.org>
2692
2693         Reviewed by Mark Rowe.
2694
2695         Don't optimize debug builds.
2696
2697         * WebKit2.xcodeproj/project.pbxproj: Define GCC_OPTIMIZATION_LEVEL correctly.
2698
2699 2010-04-16  Anders Carlsson  <andersca@apple.com>
2700
2701         Fix build.
2702
2703         * WebProcess/WebPage/WebPage.cpp:
2704         (WebKit::WebPage::runJavaScriptInMainFrame):
2705
2706 2010-04-16  Anders Carlsson  <andersca@apple.com>
2707
2708         Reviewed by Sam Weinig.
2709
2710         Fix windows build.
2711
2712         * Platform/win/RunLoopWin.cpp:
2713         (RunLoop::run):
2714         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
2715         (WebKit::webThreadBody):
2716         (WebKit::launchWebProcess):
2717         * WebProcess/win/WebProcessMain.cpp:
2718         (WebKit::WebProcessMain):
2719
2720 2010-04-16  Sam Weinig  <weinig@apple.com>
2721
2722         Reviewed by Anders Carlsson.
2723
2724         Make resizing responsive on Windows.
2725
2726         - Use the same waitFor logic as do for the Mac resizing
2727           DrawingAreaUpdateChunk code.
2728
2729         * Shared/win/UpdateChunk.cpp:
2730         (WebKit::UpdateChunk::UpdateChunk):
2731         * Shared/win/UpdateChunk.h:
2732          Add a constructor that only takes an IntRect and allocates
2733          the shared memory mapping for you.
2734         * UIProcess/win/DrawingAreaProxy.cpp:
2735         (WebKit::DrawingAreaProxy::DrawingAreaProxy):
2736         (WebKit::DrawingAreaProxy::ensureBackingStore):
2737         (WebKit::DrawingAreaProxy::paint):
2738         (WebKit::DrawingAreaProxy::drawUpdateChunkIntoBackingStore):
2739         (WebKit::DrawingAreaProxy::setSize):
2740         (WebKit::DrawingAreaProxy::didSetSize):
2741         (WebKit::DrawingAreaProxy::didReceiveMessage):
2742         * UIProcess/win/DrawingAreaProxy.h:
2743         Perform wait in paint as we do on the mac.
2744
2745         * UIProcess/win/WebView.cpp:
2746         (WebKit::WebView::onSizeEvent):
2747         Change to use an IntSize.
2748
2749         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp:
2750         (WebKit::DrawingAreaUpdateChunk::paintIntoUpdateChunk):
2751         (WebKit::DrawingAreaUpdateChunk::display):
2752         (WebKit::DrawingAreaUpdateChunk::setSize):
2753         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.h:
2754         Specialize setSize() drawing and factor out painting
2755         into a helper function.
2756
2757 2010-04-16  Anders Carlsson  <andersca@apple.com>
2758
2759         Reviewed by David Hyatt.
2760
2761         Make run loops be allocated as thread specific data.
2762         https://bugs.webkit.org/show_bug.cgi?id=37723
2763
2764         * Platform/RunLoop.cpp:
2765         (RunLoop::initializeMainRunLoop):
2766         (RunLoop::current):
2767         (RunLoop::main):
2768         * Platform/RunLoop.h:
2769         * Platform/mac/RunLoopMac.mm:
2770         (RunLoop::run):
2771         (RunLoop::stop):
2772         * UIProcess/Launcher/mac/WebProcessLauncher.mm:
2773         (WebKit::webThreadBody):
2774         (WebKit::launchWebProcess):
2775         * UIProcess/ResponsivenessTimer.cpp:
2776         (WebKit::ResponsivenessTimer::ResponsivenessTimer):
2777         * WebProcess/Launching/mac/WebProcessMain.mm:
2778         (main):
2779         * WebProcess/WebProcess.cpp:
2780         (WebKit::WebProcess::isSeparateProcess):
2781
2782 2010-04-16  Sam Weinig  <weinig@apple.com>
2783
2784         Reviewed by Adam Roben.
2785
2786         Use GDI text rendering on Windows by default.
2787
2788         * WebProcess/WebPage/win/WebPageWin.cpp:
2789         (WebKit::WebPage::platformInitialize): Use the AlternateRenderingMode
2790         setting.
2791
2792 2010-04-16  Sam Weinig  <weinig@apple.com>
2793
2794         Reviewed by Adam Roben.
2795
2796         Fix crash when trying to load an invalid URL.
2797
2798         * WebProcess/WebPage/WebPage.cpp:
2799         (WebKit::WebPage::loadURL): Use constructor for ResourceRequest
2800         that takes a KURL instead of the one that takes a String. The one
2801         that takes a string expects a valid URL.
2802
2803 2010-04-16  Sam Weinig  <weinig@apple.com>
2804
2805         Reviewed by Adam Roben.
2806
2807         Make tooltips work. Thanks Adam!
2808
2809         * UIProcess/win/WebView.cpp:
2810         (WebKit::WebView::toolTipChanged): Pass the WebView's HWND, not the tooltip's.
2811
2812 2010-04-15  Anders Carlsson  <andersca@apple.com>
2813
2814         Reviewed by Adam Roben.
2815
2816         Fix build dependencies.
2817
2818         * WebKit2.sln:
2819
2820 2010-04-15  Adam Roben  <aroben@apple.com>
2821
2822         Fix Windows WebKit2 build.
2823
2824         * UIProcess/WebPageProxy.cpp:
2825         (WebKit::WebPageProxy::processDidExit):
2826         * win/WebKit2Generated.make:
2827
2828 2010-04-15  Sam Weinig  <sam@webkit.org>
2829
2830         Reviewed by Anders Carlsson.
2831
2832         Add WebHistoryClient support.
2833         https://bugs.webkit.org/show_bug.cgi?id=37671
2834
2835         Adds the following callbacks:
2836             didNavigateWithNavigationData
2837             didPerformClientRedirect
2838             didPerformServerRedirect
2839             didUpdateHistoryTitle
2840
2841         * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
2842         (WebPageProxyMessage::):
2843         * Shared/WebNavigationDataStore.h: Added.
2844         * UIProcess/API/C/WKAPICast.h:
2845         * UIProcess/API/C/WKBase.h:
2846         * UIProcess/API/C/WKNavigationData.cpp: Added.
2847         * UIProcess/API/C/WKNavigationData.h: Added.
2848         * UIProcess/API/C/WKPage.cpp:
2849         * UIProcess/API/C/WKPage.h:
2850         * UIProcess/API/C/WebKit2.h:
2851         * UIProcess/WebHistoryClient.cpp: Copied from UIProcess/WebUIClient.cpp.
2852         * UIProcess/WebHistoryClient.h: Copied from UIProcess/WebUIClient.h.
2853         * UIProcess/WebNavigationData.cpp: Added.
2854         * UIProcess/WebNavigationData.h: Added.
2855         * UIProcess/WebPageProxy.cpp:
2856         * UIProcess/WebPageProxy.h:
2857         * WebKit2.xcodeproj/project.pbxproj:
2858         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2859         * win/WebKit2.vcproj:
2860
2861 2010-04-15  Sam Weinig  <sam@webkit.org>
2862
2863         Reviewed by Adam Roben.
2864
2865         Remove empty file configurations.
2866
2867         * win/WebKit2.vcproj:
2868
2869 2010-04-15  Sam Weinig  <sam@webkit.org>
2870
2871         Reviewed by Anders Carlsson.
2872
2873         Fix WebKit2s build. Don't return temporaries.
2874
2875         * UIProcess/API/C/cf/WKStringCF.cpp:
2876         (WKStringCreateWithCFString):
2877         * UIProcess/API/C/cf/WKURLCF.cpp:
2878         (WKURLCreateWithCFURL):
2879         (WKURLCopyCFURL):
2880
2881 2010-04-12  Geoffrey Garen  <ggaren@apple.com>
2882
2883         Reviewed by Anders Carlsson.
2884
2885         Fixed complexity and performance FIXME created by using KURL in the UI
2886         process -- it turned out that everywhere we were using KURL, we could
2887         have just used String instead. (That's how Windows WebKit works, too.)
2888
2889         I kept WKURLRef and WKStringRef distinct opaque types in the API for now,
2890         though, since there may be profit in changing their backing stores in the
2891         future, and it's nice for the API to encode a difference between generic
2892         strings and strings that are valid, canonical URLs.
2893
2894         * Shared/KURLWrapper.h: Removed. Yay!
2895
2896         * Shared/WebCoreTypeArgumentMarshalling.h: Nixed KURL marshalling functions.
2897         Old callers marshal Strings now, instead. (This is what KURL was doing
2898         under the covers, anyway.)
2899
2900         * UIProcess/API/C/WKAPICast.h:
2901         (toWK): Backed by StringImpl* now.
2902         (toURLRef): Added a disambiguating function for specifying that you want
2903         a WKURLRef, since StringImpl* converts to WKStringRef by default.
2904
2905         * UIProcess/API/C/WKFrame.cpp:
2906         (WKFrameGetProvisionalURL):
2907         (WKFrameGetURL):
2908         * UIProcess/API/C/WKPage.cpp:
2909         (WKPageLoadURL):
2910         * UIProcess/API/C/WKURL.cpp:
2911         * UIProcess/API/C/cf/WKURLCF.cpp:
2912         (WKURLCreateWithCFURL):
2913         (WKURLCopyCFURL):
2914         * UIProcess/WebFrameProxy.cpp:
2915         (WebKit::WebFrameProxy::didStartProvisionalLoad):
2916         (WebKit::WebFrameProxy::didCommitLoad):
2917         * UIProcess/WebFrameProxy.h:
2918         (WebKit::WebFrameProxy::url):
2919         (WebKit::WebFrameProxy::provisionalURL):
2920         * UIProcess/WebPageProxy.cpp:
2921         (WebKit::WebPageProxy::loadURL):
2922         (WebKit::WebPageProxy::didReceiveMessage):
2923         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
2924         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
2925         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
2926         (WebKit::WebPageProxy::decidePolicyForMIMEType):
2927         (WebKit::WebPageProxy::processDidExit):
2928         * UIProcess/WebPageProxy.h:
2929         (WebKit::WebPageProxy::urlAtProcessExit):
2930         * UIProcess/WebPolicyClient.cpp:
2931         (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
2932         (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
2933         (WebKit::WebPolicyClient::decidePolicyForMIMEType):
2934         * UIProcess/WebPolicyClient.h:
2935         * WebKit2.xcodeproj/project.pbxproj:
2936         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2937         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
2938         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
2939         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2940         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2941         * WebProcess/WebPage/WebPage.cpp:
2942         (WebKit::WebPage::loadURL):
2943         (WebKit::WebPage::didReceiveMessage):
2944         * WebProcess/WebPage/WebPage.h: Replaced KURL / KURLWrapper with String.
2945
2946 2010-04-14  Anders Carlsson  <andersca@apple.com>
2947
2948         Reviewed by Sam Weinig.
2949
2950         Fix horizontal scrollbar repainting
2951         https://bugs.webkit.org/show_bug.cgi?id=37626
2952
2953         Make sure that the update chunk is flipped because that's what WebCore expects.
2954         
2955         * Shared/mac/UpdateChunk.cpp:
2956         (WebKit::UpdateChunk::createImage):
2957         * Shared/mac/UpdateChunk.h:
2958         Add new createImage member function that creates a CGImageRef from the update chunk.
2959         
2960         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm:
2961         (WebKit::DrawingAreaProxyUpdateChunk::drawUpdateChunkIntoBackingStore):
2962         Pass the right rectangle here; CoreGraphics wants it in non-flipped coordinates.
2963         
2964         (WebKit::DrawingAreaProxyUpdateChunk::ensureBackingStore):
2965         Create a flipped backing store.
2966
2967         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
2968         (WebKit::DrawingAreaUpdateChunk::paintIntoUpdateChunk):
2969         Flip the update chunk.
2970
2971 2010-04-14  Sam Weinig  <sam@webkit.org>
2972
2973         Reviewed by Anders Carlsson.
2974
2975         Add WKRetainPtr helper class as private header
2976         https://bugs.webkit.org/show_bug.cgi?id=37603
2977
2978         WKRetainPtr is just like RetainPtr, but works for WK types instead of
2979         CF/NS types.
2980
2981         * UIProcess/API/cpp: Added.
2982         * UIProcess/API/cpp/WKRetainPtr.h: Added.
2983         * WebKit2.xcodeproj/project.pbxproj: Add new file.
2984         * win/WebKit2.vcproj: Ditto.
2985
2986 2010-04-14  Sam Weinig  <sam@webkit.org>
2987
2988         Reviewed by Anders Carlsson.
2989
2990         Make the WebProcess a LSUIElement to suppress its icon from the Dock.
2991
2992         * WebKit2.xcodeproj/project.pbxproj:
2993         * WebProcess/Info.plist:
2994
2995 2010-04-14  Anders Carlsson  <andersca@apple.com>
2996
2997         Reviewed by Sam Weinig.
2998
2999         Factor code to paint into an update chunk out into a separate function.
3000         https://bugs.webkit.org/show_bug.cgi?id=37594
3001
3002         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
3003         (WebKit::DrawingAreaUpdateChunk::paintIntoUpdateChunk):
3004         (WebKit::DrawingAreaUpdateChunk::display):
3005         (WebKit::DrawingAreaUpdateChunk::setSize):
3006         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h:
3007
3008 2010-04-13  Sam Weinig  <sam@webkit.org>
3009
3010         Reviewed by Anders Carlsson.
3011
3012         Fix reported leaks when quitting MiniBrowser with open pages.
3013
3014         * WebProcess/WebPage/WebPage.h: Make close() public.
3015         * WebProcess/WebProcess.cpp:
3016         (WebKit::WebProcess::WebProcess):
3017         (WebKit::WebProcess::removeWebPage):
3018         (WebKit::WebProcess::didClose): If the UIProcess disappears, close
3019         the live pages in an effort to not leak.
3020         * WebProcess/WebProcess.h:
3021
3022 2010-04-13  Sam Weinig  <sam@webkit.org>
3023
3024         Reviewed by Anders Carlsson.
3025
3026         Do a JS collection and clear the memory cache to improve leaks output
3027         when exiting. Only do this in debug builds as it is slow.
3028
3029         * UIProcess/API/mac/WKView.h:
3030         * UIProcess/WebProcessProxy.cpp:
3031         * WebProcess/WebPage/WebPage.cpp:
3032         * WebProcess/WebProcess.cpp:
3033         (WebKit::WebProcess::shutdown):
3034         (WebKit::WebProcess::didClose):
3035
3036 2010-04-13  Sam Weinig  <sam@webkit.org>
3037
3038         Reviewed by Adele Peterson.
3039
3040         Post a null event after calling [NSApp stop] to flush the run loop
3041         and finish teardown.
3042
3043         * Platform/mac/RunLoopMac.mm:
3044         (RunLoop::stop):
3045
3046 2010-04-12  Sam Weinig  <sam@webkit.org>
3047
3048         Reviewed by Anders Carlsson.
3049
3050         Add #ifdef so that WKView is not included on the mac if not
3051         compiling objective-c.
3052
3053         * UIProcess/API/C/WebKit2.h:
3054
3055 2010-04-12  Anders Carlsson  <andersca@apple.com>
3056
3057         Reviewed by Adam Roben.
3058
3059         Add WebKit2 solution file.
3060
3061         * WebKit2.sln: Added.
3062
3063 2010-04-11  Sam Weinig  <sam@webkit.org>
3064
3065         Reviewed by Darin Adler.
3066
3067         Fix for https://bugs.webkit.org/show_bug.cgi?id=37417
3068         Move duplicated internal CoreIPC message kinds to a
3069         header.
3070
3071         * Platform/CoreIPC/Connection.cpp:
3072         (CoreIPC::Connection::processIncomingMessage):
3073         * Platform/CoreIPC/CoreIPCMessageKinds.h: Added.
3074         (CoreIPC::CoreIPCMessage::):
3075         (CoreIPC::):
3076         * Platform/CoreIPC/mac/ConnectionMac.cpp:
3077         * WebKit2.xcodeproj/project.pbxproj:
3078         * win/WebKit2.vcproj:
3079
3080 2010-04-11  Sam Weinig  <sam@webkit.org>
3081
3082         Rubber-stamped by Anders Carlsson.
3083
3084         Disable not-implemented warnings by default for now.
3085
3086         * Shared/NotImplemented.h:
3087
3088 2010-04-10  Sam Weinig  <sam@webkit.org>
3089
3090         Reviewed by Anders Carlsson.
3091
3092         Fix for https://bugs.webkit.org/show_bug.cgi?id=37399
3093         Remove use of STL data structures from CoreIPC code
3094
3095         * Platform/CoreIPC/ArgumentDecoder.cpp:
3096         (CoreIPC::ArgumentDecoder::ArgumentDecoder):
3097         (CoreIPC::ArgumentDecoder::decodeBytes):
3098         (CoreIPC::ArgumentDecoder::removeAttachment):
3099         * Platform/CoreIPC/ArgumentDecoder.h:
3100         Use WTF::Deque instead of std::queue and WTF::Vector
3101         instead of std::vector. Replace use of malloc/free with 
3102         fastMalloc/fastFree.
3103
3104         * Platform/CoreIPC/ArgumentEncoder.cpp:
3105         (CoreIPC::ArgumentEncoder::addAttachment):
3106         (CoreIPC::ArgumentEncoder::releaseAttachments):
3107         * Platform/CoreIPC/ArgumentEncoder.h:
3108         Use WTF::Vector instead of std::list. Replace use of malloc/free
3109         with fastMalloc/fastFree.
3110
3111         * Platform/CoreIPC/Connection.cpp:
3112         (CoreIPC::Connection::sendMessage):
3113         (CoreIPC::Connection::waitForMessage):
3114         (CoreIPC::Connection::processIncomingMessage):
3115         (CoreIPC::Connection::sendOutgoingMessages):
3116         (CoreIPC::Connection::dispatchMessages):
3117         * Platform/CoreIPC/Connection.h:
3118         * Platform/CoreIPC/mac/ConnectionMac.cpp:
3119         (CoreIPC::Connection::sendOutgoingMessage):
3120         (CoreIPC::createArgumentDecoder):
3121         Use WTF::Vector instead of std::queue.
3122
3123         * Platform/RunLoop.cpp:
3124         (RunLoop::performWork):
3125         (RunLoop::scheduleWork):
3126         * Platform/RunLoop.h:
3127         Ditto.
3128
3129         * Platform/WorkQueue.h:
3130         * Platform/win/WorkQueueWin.cpp:
3131         (WorkQueue::scheduleWork):
3132         (WorkQueue::performWork):
3133         Ditto.
3134
3135 2010-04-10  Mark Rowe  <mrowe@apple.com>
3136
3137         Fix an obviously incorrect part of the Xcode configuration cleanup that resulted in debug builds
3138         asserting shortly after launch.
3139
3140         * WebKit2.xcodeproj/project.pbxproj: Fix the setting of DEBUG_DEFINES for the Debug configuration.
3141
3142 2010-04-09  Mark Rowe  <mrowe@apple.com>
3143
3144         Reviewed by Sam Weinig.
3145
3146         Bring the WebKit2 Xcode configuration in to sync with recent changes to the WebKit Xcode configuration files.
3147
3148         In particular, this updates the FEATURE_DEFINES to match those used in the other projects, and brings in
3149         the changes to support building WebKit for older Mac OS X versions from the current Mac OS X version.
3150
3151         * Configurations/Base.xcconfig:
3152         * Configurations/DebugRelease.xcconfig:
3153         * Configurations/FeatureDefines.xcconfig:
3154         * Configurations/Version.xcconfig:
3155
3156 2010-04-09  Mark Rowe  <mrowe@apple.com>
3157
3158         Reviewed by Sam Weinig.
3159
3160         Clean up the Xcode project configuration.
3161
3162         Common target settings are pulled out in to BaseTarget.xcconfig.  The majority of setting overrides are
3163         removed from the Xcode project itself.  Info.plist files are updated to match those used in other frameworks.
3164
3165         * Configurations/BaseTarget.xcconfig: Copied from WebKit2/Configurations/WebKit2.xcconfig.
3166         * Configurations/WebKit2.xcconfig:
3167         * Configurations/WebProcess.xcconfig: Copied from WebKit2/Configurations/WebKit2.xcconfig.
3168         * Info.plist:
3169         * WebKit2.xcodeproj/project.pbxproj:
3170         * WebProcess-Info.plist: Removed.
3171         * WebProcess/Info.plist: Moved from WebProcess-Info.plist.
3172
3173 2010-04-09  Mark Rowe  <mrowe@apple.com>
3174
3175         Build fix.
3176
3177         * WebProcess/WebCoreSupport/mac/WebSystemInterface.m:
3178         (InitWebCoreSystemInterface): Update for recent WKSI changes.
3179
3180 2010-04-09  Sam Weinig  <sam@webkit.org>
3181
3182         Reviewed by Darin Adler.
3183
3184         Fix for https://bugs.webkit.org/show_bug.cgi?id=37351
3185         Cannot build with build-webkit --webkit2
3186
3187         Add some headers that it seems others are not getting
3188         already.
3189
3190         * Platform/mac/WorkQueueMac.cpp: #inlude <mach/mach_port.h>
3191         * Shared/mac/UpdateChunk.cpp: #inlude <mach/vm_map.h>
3192
3193 2010-04-09  Anders Carlsson  <andersca@apple.com>
3194
3195         More build fixes.
3196         
3197         * WebProcess/win/WebProcessMain.h:
3198         Include windows.h here.
3199         
3200         * win/WebKit2.def:
3201         Add new exports.
3202
3203         * win/WebKit2.vcproj:
3204         Add new files.
3205
3206 2010-04-09  Sam Weinig  <sam@webkit.org>
3207
3208         Reviewed by Anders Carlsson.
3209
3210         Add new WKString.h and WKURL.h headers to top
3211         level include.
3212
3213         * UIProcess/API/C/WebKit2.h:
3214
3215 2010-04-09  Anders Carlsson  <andersca@apple.com>
3216
3217         More Windows build fixes.
3218         
3219         * Shared/NotImplemented.h:
3220         * UIProcess/API/C/cf/WKURLCF.cpp:
3221         Fix typo.
3222         
3223         (WKURLCreateWithCFURL):
3224         * UIProcess/API/C/cf/WKURLCF.h:
3225         Ditto.
3226         
3227         * win/WebKit2Generated.make:
3228         Copy the new CF headers.
3229
3230 2010-04-09  Sam Weinig  <sam@webkit.org>
3231
3232         Reviewed by Anders Carlsson.
3233
3234         Two more #include sorting issues.
3235
3236         * Shared/NotImplemented.h:
3237         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp:
3238
3239 2010-04-09  Sam Weinig  <sam@webkit.org>
3240
3241         Reviewed by Anders Carlsson.
3242
3243         Fix minor style nits found by the style-script.
3244
3245         * Platform/CoreIPC/ArgumentDecoder.h:
3246         * Platform/CoreIPC/ArgumentEncoder.cpp:
3247         * Platform/CoreIPC/Attachment.cpp:
3248         * Platform/CoreIPC/Connection.cpp:
3249         * Platform/CoreIPC/Connection.h:
3250         * Platform/CoreIPC/mac/ConnectionMac.cpp:
3251         * Platform/CoreIPC/win/ConnectionWin.cpp:
3252         * Platform/WorkQueue.h:
3253         * Platform/mac/WorkQueueMac.cpp:
3254         * Platform/win/RunLoopWin.cpp:
3255         * Shared/KURLWrapper.h:
3256         * Shared/WebCoreTypeArgumentMarshalling.h:
3257         * Shared/mac/UpdateChunk.cpp:
3258         * UIProcess/API/C/WKPage.cpp:
3259         * UIProcess/API/C/WKURL.cpp:
3260         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
3261         * UIProcess/ResponsivenessTimer.cpp:
3262         * UIProcess/WebLoaderClient.cpp:
3263         * UIProcess/WebPageProxy.h:
3264         * UIProcess/WebPolicyClient.cpp:
3265         * UIProcess/WebUIClient.cpp:
3266         * UIProcess/win/DrawingAreaProxy.cpp:
3267         * UIProcess/win/WebView.cpp:
3268         * WebProcess/Launching/win/WebProcessWinMain.cpp:
3269         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3270         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3271         * WebProcess/WebCoreSupport/mac/WebSystemInterface.h:
3272         * WebProcess/WebCoreSupport/win/WebCoreLocalizedStrings.cpp:
3273         * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp:
3274         * WebProcess/WebPage/WebFrame.h:
3275         * WebProcess/WebPage/WebPage.cpp:
3276         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
3277         * WebProcess/WebProcess.h:
3278         * WebProcess/win/WebLocalizableStrings.cpp:
3279         * WebProcess/win/WebLocalizableStrings.h:
3280         * WebProcess/win/WebProcessMain.cpp:
3281
3282 2010-04-09  Anders Carlsson  <andersca@apple.com>
3283
3284         Fix Windows build.
3285
3286         * Shared/NotImplemented.h:
3287         Include stdio.h.
3288
3289 2010-04-09  Sam Weinig  <sam@webkit.org>
3290
3291         Reviewed by Anders Carlsson.
3292
3293         Fix for https://bugs.webkit.org/show_bug.cgi?id=37347
3294         Don't use CF types in the new C API
3295
3296         Replace all uses of CF types in the C API.
3297         - Replace CFStringRef with WKStringRef.
3298         - Replace CFURLRef with WKURLRef.
3299
3300         * WebKit2.xcodeproj/project.pbxproj: Add new files.
3301
3302         * Shared/KURLWrapper.h: Added. RefCounted wrapper around KURL.
3303         * UIProcess/API/C/WKAPICast.h: Add new conversions.
3304         * UIProcess/API/C/WKBase.h: Add new types.
3305         * UIProcess/API/C/WKFrame.cpp:
3306         * UIProcess/API/C/WKFrame.h: 
3307         * UIProcess/API/C/WKPage.cpp:
3308         * UIProcess/API/C/WKPage.h:
3309         Replace uses of CF types with WK equivalents.
3310
3311         * UIProcess/API/C/WKString.cpp: Added.
3312         * UIProcess/API/C/WKString.h: Added.
3313         Represents a WebCore::StringImpl*.
3314
3315         * UIProcess/API/C/WKURL.cpp: Added.
3316         * UIProcess/API/C/WKURL.h: Added.
3317         Represents a WebKit::KURLWrapper*.
3318
3319         * UIProcess/API/C/cf: Added.
3320         * UIProcess/API/C/cf/WKStringCF.cpp: Added.
3321         * UIProcess/API/C/cf/WKStringCF.h: Added.
3322         * UIProcess/API/C/cf/WKURLCF.cpp: Added.
3323         * UIProcess/API/C/cf/WKURLCF.h: Added.
3324         CoreFoundation conversion files. Allows converting
3325          WKStringRef <-> CFStringRef
3326          WKURLRef <-> CFURLRef
3327
3328         * UIProcess/ScriptReturnValueCallback.cpp:
3329         (WebKit::ScriptReturnValueCallback::performCallbackWithReturnValue):
3330         * UIProcess/ScriptReturnValueCallback.h:
3331         * UIProcess/WebFrameProxy.cpp:
3332         (WebKit::WebFrameProxy::didStartProvisionalLoad):
3333         (WebKit::WebFrameProxy::didCommitLoad):
3334         * UIProcess/WebFrameProxy.h:
3335         (WebKit::WebFrameProxy::url):
3336         (WebKit::WebFrameProxy::provisionalURL):
3337         * UIProcess/WebLoaderClient.cpp:
3338         (WebKit::WebLoaderClient::didReceiveTitleForFrame):
3339         * UIProcess/WebLoaderClient.h:
3340         * UIProcess/WebPageProxy.cpp:
3341         (WebKit::WebPageProxy::close):
3342         (WebKit::WebPageProxy::didReceiveTitleForFrame):
3343         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
3344         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
3345         (WebKit::WebPageProxy::decidePolicyForMIMEType):
3346         (WebKit::WebPageProxy::runJavaScriptAlert):
3347         (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
3348         (WebKit::WebPageProxy::processDidExit):
3349         * UIProcess/WebPageProxy.h:
3350         (WebKit::WebPageProxy::pageTitle):
3351         (WebKit::WebPageProxy::urlAtProcessExit):
3352         * UIProcess/WebPolicyClient.cpp:
3353         (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
3354         (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
3355         (WebKit::WebPolicyClient::decidePolicyForMIMEType):
3356         * UIProcess/WebPolicyClient.h:
3357         * UIProcess/WebUIClient.cpp:
3358         (WebKit::WebUIClient::runJavaScriptAlert):
3359         * UIProcess/WebUIClient.h:
3360         Don't use CF types internally at all.
3361
3362         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3363         (WebKit::WebFrameLoaderClient::frameLoaderDestroyed):
3364         Fix typo.
3365
3366 2010-04-08  Sam Weinig  <sam@webkit.org>
3367
3368         Reviewed by Anders Carlsson.
3369
3370         Add build support for WebKit2.
3371
3372         * Configurations: Added.
3373         * Configurations/Base.xcconfig: Added.
3374         * Configurations/DebugRelease.xcconfig: Added.
3375         * Configurations/FeatureDefines.xcconfig: Added.
3376         * Configurations/Version.xcconfig: Added.
3377         * Configurations/WebKit2.xcconfig: Added.
3378         * English.lproj: Added.
3379         * English.lproj/InfoPlist.strings: Added.
3380         * Info.plist: Added.
3381         * Makefile: Added.
3382         * WebKit2.xcodeproj: Added.
3383         * WebKit2.xcodeproj/project.pbxproj: Added.
3384         * WebKit2Prefix.cpp: Added.
3385         * WebKit2Prefix.h: Added.
3386         * WebKit2_Prefix.pch: Added.
3387         * WebProcess-Info.plist: Added.
3388         * version.plist: Added.
3389         * win: Added.
3390         * win/WebKit2.def: Added.
3391         * win/WebKit2.vcproj: Added.
3392         * win/WebKit2Generated.make: Added.
3393         * win/WebKit2Generated.vcproj: Added.
3394         * win/WebKit2WebProcess.vcproj: Added.
3395
3396 2010-04-08  Anders Carlsson  <andersca@apple.com>
3397
3398         Reviewed by Sam Weinig.
3399
3400         https://bugs.webkit.org/show_bug.cgi?id=37301
3401         Add WebKit2/UIProcess directory.
3402
3403         * UIProcess: Added.
3404         * UIProcess/API: Added.
3405         * UIProcess/API/C: Added.
3406         * UIProcess/API/C/WKAPICast.h: Added.
3407         * UIProcess/API/C/WKBase.h: Added.
3408         * UIProcess/API/C/WKContext.cpp: Added.
3409         * UIProcess/API/C/WKContext.h: Added.
3410         * UIProcess/API/C/WKFrame.cpp: Added.
3411         * UIProcess/API/C/WKFrame.h: Added.
3412         * UIProcess/API/C/WKFramePolicyListener.cpp: Added.
3413         * UIProcess/API/C/WKFramePolicyListener.h: Added.
3414         * UIProcess/API/C/WKPage.cpp: Added.
3415         * UIProcess/API/C/WKPage.h: Added.
3416         * UIProcess/API/C/WKPageNamespace.cpp: Added.
3417         * UIProcess/API/C/WKPageNamespace.h: Added.
3418         * UIProcess/API/C/WKPreferences.cpp: Added.
3419         * UIProcess/API/C/WKPreferences.h: Added.
3420         * UIProcess/API/C/WebKit2.h: Added.
3421         * UIProcess/API/mac: Added.
3422         * UIProcess/API/mac/PageClientImpl.h: Added.
3423         * UIProcess/API/mac/PageClientImpl.mm: Added.
3424         * UIProcess/API/mac/WKView.h: Added.
3425         * UIProcess/API/mac/WKView.mm: Added.
3426         * UIProcess/API/mac/WKViewInternal.h: Added.
3427         * UIProcess/API/win: Added.
3428         * UIProcess/API/win/WKAPICastWin.h: Added.
3429         * UIProcess/API/win/WKBaseWin.h: Added.
3430         * UIProcess/API/win/WKView.cpp: Added.
3431         * UIProcess/API/win/WKView.h: Added.
3432         * UIProcess/Launcher: Added.
3433         * UIProcess/Launcher/WebProcessLauncher.h: Added.
3434         * UIProcess/Launcher/mac: Added.
3435         * UIProcess/Launcher/mac/WebProcessLauncher.mm: Added.
3436         * UIProcess/Launcher/win: Added.
3437         * UIProcess/Launcher/win/WebProcessLauncher.cpp: Added.
3438         * UIProcess/PageClient.h: Added.
3439         * UIProcess/ProcessModel.h: Added.
3440         * UIProcess/ResponsivenessTimer.cpp: Added.
3441         * UIProcess/ResponsivenessTimer.h: Added.
3442         * UIProcess/ScriptReturnValueCallback.cpp: Added.
3443         * UIProcess/ScriptReturnValueCallback.h: Added.
3444         * UIProcess/WebContext.cpp: Added.
3445         * UIProcess/WebContext.h: Added.
3446         * UIProcess/WebFramePolicyListenerProxy.cpp: Added.
3447         * UIProcess/WebFramePolicyListenerProxy.h: Added.
3448         * UIProcess/WebFrameProxy.cpp: Added.
3449         * UIProcess/WebFrameProxy.h: Added.
3450         * UIProcess/WebLoaderClient.cpp: Added.
3451         * UIProcess/WebLoaderClient.h: Added.
3452         * UIProcess/WebPageNamespace.cpp: Added.
3453         * UIProcess/WebPageNamespace.h: Added.
3454         * UIProcess/WebPageProxy.cpp: Added.
3455         * UIProcess/WebPageProxy.h: Added.
3456         * UIProcess/WebPolicyClient.cpp: Added.
3457         * UIProcess/WebPolicyClient.h: Added.
3458         * UIProcess/WebPreferences.cpp: Added.
3459         * UIProcess/WebPreferences.h: Added.
3460         * UIProcess/WebProcessManager.cpp: Added.
3461         * UIProcess/WebProcessManager.h: Added.
3462         * UIProcess/WebProcessProxy.cpp: Added.
3463         * UIProcess/WebProcessProxy.h: Added.
3464         * UIProcess/WebUIClient.cpp: Added.
3465         * UIProcess/WebUIClient.h: Added.
3466         * UIProcess/mac: Added.
3467         * UIProcess/mac/DrawingAreaProxy.h: Added.
3468         * UIProcess/mac/DrawingAreaProxy.mm: Added.
3469         * UIProcess/mac/DrawingAreaProxyUpdateChunk.h: Added.
3470         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm: Added.
3471         * UIProcess/win: Added.
3472         * UIProcess/win/DrawingAreaProxy.cpp: Added.
3473         * UIProcess/win/DrawingAreaProxy.h: Added.
3474         * UIProcess/win/WebView.cpp: Added.
3475         * UIProcess/win/WebView.h: Added.
3476
3477 2010-04-08  Anders Carlsson  <andersca@apple.com>
3478
3479         Reviewed by Sam Weinig and Oliver Hunt.
3480
3481         https://bugs.webkit.org/show_bug.cgi?id=37300
3482         Add WebKit2/WebProcess directory.
3483
3484         * WebProcess: Added.
3485         * WebProcess/Launching: Added.
3486         * WebProcess/Launching/mac: Added.
3487         * WebProcess/Launching/mac/WebProcessMain.mm: Added.
3488         * WebProcess/Launching/win: Added.
3489         * WebProcess/Launching/win/WebProcessWinMain.cpp: Added.
3490         * WebProcess/WebCoreSupport: Added.
3491         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Added.
3492         * WebProcess/WebCoreSupport/WebChromeClient.h: Added.
3493         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp: Added.
3494         * WebProcess/WebCoreSupport/WebContextMenuClient.h: Added.
3495         * WebProcess/WebCoreSupport/WebDragClient.cpp: Added.
3496         * WebProcess/WebCoreSupport/WebDragClient.h: Added.
3497         * WebProcess/WebCoreSupport/WebEditorClient.cpp: Added.
3498         * WebProcess/WebCoreSupport/WebEditorClient.h: Added.
3499         * WebProcess/WebCoreSupport/WebErrors.h: Added.
3500         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: Added.
3501         * WebProcess/WebCoreSupport/WebInspectorClient.h: Added.
3502         * WebProcess/WebCoreSupport/mac: Added.
3503         * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm: Added.
3504         * WebProcess/WebCoreSupport/mac/WebSystemInterface.h: Added.
3505         * WebProcess/WebCoreSupport/mac/WebSystemInterface.m: Added.
3506         * WebProcess/WebCoreSupport/win: Added.
3507         * WebProcess/WebCoreSupport/win/WebCoreLocalizedStrings.cpp: Added.
3508         * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp: Added.
3509         * WebProcess/WebPage: Added.
3510         * WebProcess/WebPage/DrawingArea.cpp: Added.
3511         * WebProcess/WebPage/DrawingArea.h: Added.
3512         * WebProcess/WebPage/WebFrame.cpp: Added.
3513         * WebProcess/WebPage/WebFrame.h: Added.
3514         * WebProcess/WebPage/WebPage.cpp: Added.
3515         * WebProcess/WebPage/WebPage.h: Added.
3516         * WebProcess/WebPage/mac: Added.
3517         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp: Added.
3518         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h: Added.
3519         * WebProcess/WebPage/mac/WebPageMac.mm: Added.
3520         * WebProcess/WebPage/win: Added.
3521         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp: Added.
3522         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.h: Added.
3523         * WebProcess/WebPage/win/WebPageWin.cpp: Added.
3524         * WebProcess/WebProcess.cpp: Added.
3525         * WebProcess/WebProcess.h: Added.
3526         * WebProcess/win: Added.
3527         * WebProcess/win/DllMain.cpp: Added.
3528         * WebProcess/win/WebLocalizableStrings.cpp: Added.
3529         * WebProcess/win/WebLocalizableStrings.h: Added.
3530         * WebProcess/win/WebProcessMain.cpp: Added.
3531         * WebProcess/win/WebProcessMain.h: Added.
3532
3533 2010-04-08  Sam Weinig  <sam@webkit.org>
3534
3535         Reviewed by Anders Carlsson.
3536
3537         https://bugs.webkit.org/show_bug.cgi?id=37295
3538         Add WebKit2/Shared directory.
3539
3540         * Shared: Added.
3541         * Shared/CoreIPCSupport: Added.
3542         * Shared/CoreIPCSupport/DrawingAreaMessageKinds.h: Added.
3543         * Shared/CoreIPCSupport/DrawingAreaProxyMessageKinds.h: Added.
3544         * Shared/CoreIPCSupport/WebPageMessageKinds.h: Added.
3545         * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h: Added.
3546         * Shared/CoreIPCSupport/WebProcessMessageKinds.h: Added.
3547         * Shared/NotImplemented.h: Added.
3548         * Shared/WebCoreTypeArgumentMarshalling.h: Added.
3549         * Shared/WebEvent.h: Added.
3550         * Shared/WebEventConversion.cpp: Added.
3551         * Shared/WebEventConversion.h: Added.
3552         * Shared/WebPreferencesStore.cpp: Added.
3553         * Shared/WebPreferencesStore.h: Added.
3554         * Shared/mac: Added.
3555         * Shared/mac/UpdateChunk.cpp: Added.
3556         * Shared/mac/UpdateChunk.h: Added.
3557         * Shared/mac/WebEventFactory.h: Added.
3558         * Shared/mac/WebEventFactory.mm: Added.
3559         * Shared/win: Added.
3560         * Shared/win/UpdateChunk.cpp: Added.
3561         * Shared/win/UpdateChunk.h: Added.
3562         * Shared/win/WebEventFactory.cpp: Added.
3563         * Shared/win/WebEventFactory.h: Added.
3564
3565 2010-04-08  Sam Weinig  <sam@webkit.org>
3566
3567         Reviewed by Anders Carlsson.
3568
3569         https://bugs.webkit.org/show_bug.cgi?id=37293
3570         Add WebKit2/Platform directory.
3571
3572         * Platform: Added.
3573         * Platform/CoreIPC: Added.
3574         * Platform/CoreIPC/ArgumentDecoder.cpp: Added.
3575         * Platform/CoreIPC/ArgumentDecoder.h: Added.
3576         * Platform/CoreIPC/ArgumentEncoder.cpp: Added.
3577         * Platform/CoreIPC/ArgumentEncoder.h: Added.
3578         * Platform/CoreIPC/Arguments.h: Added.
3579         * Platform/CoreIPC/Attachment.cpp: Added.
3580         * Platform/CoreIPC/Attachment.h: Added.
3581         * Platform/CoreIPC/Connection.cpp: Added.
3582         * Platform/CoreIPC/Connection.h: Added.
3583         * Platform/CoreIPC/MessageID.h: Added.
3584         * Platform/CoreIPC/mac: Added.
3585         * Platform/CoreIPC/mac/ConnectionMac.cpp: Added.
3586         * Platform/CoreIPC/mac/MachPort.h: Added.
3587         * Platform/CoreIPC/win: Added.
3588         * Platform/CoreIPC/win/ConnectionWin.cpp: Added.
3589         * Platform/PlatformProcessIdentifier.h: Added.
3590         * Platform/RunLoop.cpp: Added.
3591         * Platform/RunLoop.h: Added.
3592         * Platform/WorkItem.h: Added.
3593         * Platform/WorkQueue.cpp: Added.
3594         * Platform/WorkQueue.h: Added.
3595         * Platform/mac: Added.
3596         * Platform/mac/RunLoopMac.mm: Added.
3597         * Platform/mac/WorkQueueMac.cpp: Added.
3598         * Platform/win: Added.
3599         * Platform/win/RunLoopWin.cpp: Added.
3600
3601 2010-04-08  Sam Weinig  <sam@webkit.org>
3602
3603         Rubber-stamped by Mark Rowe.
3604
3605         Add WebKit2 directory.