Remove unnecessary includes for Platform.h from headers
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-02-20  Laszlo Gombos  <l.gombos@samsung.com>
2
3         Remove unnecessary includes for Platform.h from headers
4         https://bugs.webkit.org/show_bug.cgi?id=110300
5
6         Reviewed by Alexey Proskuryakov.
7
8         wtf/Platform.h only need to be included in a few places directly    
9         as it is included in config.h. Remove the unnecessay duplicate as    
10         it can be confusing.
11
12         * Shared/PrintInfo.h:
13
14 2013-02-20  Huang Dongsung  <luxtella@company100.net>
15
16         [WK2] Remove m_viewportSize in WebPage.
17         https://bugs.webkit.org/show_bug.cgi?id=110311
18
19         Reviewed by Anders Carlsson.
20
21         EFL and Qt use m_viewSize as a contents size while Apple use it as a viewport
22         size, so EFL and Qt introduced m_viewportSize to make WebPage know a viewport
23         size.
24
25         EFL and Qt use m_viewSize as a contents size because the size of non compositing
26         layer is contents size, and EFL and Qt mark whole non compositing layer as dirty
27         using m_viewSize. Bug 110299 (http://webkit.org/b/110299) changes that it is not
28         necessary to know m_viewSize when marking whole non compositing layer as dirty.
29         So we can make EFL and Qt use m_viewSize as a viewport size also.
30
31         This patch removes m_viewportSize and related methods to increase readability.
32
33         * UIProcess/API/qt/raw/qrawwebview.cpp:
34         (QRawWebView::setSize):
35         * UIProcess/PageViewportController.cpp:
36         (WebKit::PageViewportController::didChangeViewportSize):
37         * UIProcess/WebPageProxy.cpp:
38         (WebKit):
39         * UIProcess/WebPageProxy.h:
40         (WebPageProxy):
41         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
42         (WebKit::WebChromeClient::pageRect):
43         (WebKit::WebChromeClient::contentsSizeChanged):
44         * WebProcess/WebPage/DrawingAreaImpl.cpp:
45         (WebKit::DrawingAreaImpl::updateBackingStoreState):
46         * WebProcess/WebPage/WebPage.cpp:
47         (WebKit::WebPage::setSize):
48         (WebKit::WebPage::sendViewportAttributesChanged):
49         * WebProcess/WebPage/WebPage.h:
50         (WebPage):
51         * WebProcess/WebPage/WebPage.messages.in:
52
53 2013-02-20  Huang Dongsung  <luxtella@company100.net>
54
55         [WK2] add setNeedsDisplay in DrawingArea to mark whole layer as dirty.
56         https://bugs.webkit.org/show_bug.cgi?id=110299
57
58         Reviewed by Anders Carlsson.
59
60         Currently, we call setNeedsDisplay with the size of WebPage to mark whole
61         backing store as dirty. However, the size of non compositing layer can be
62         inconsistent with the size of WebPage. For example, in Coordinated Graphics, the
63         size of non compositing layer is contents size.
64
65         So, WebPage should not assume the size of non compositing layer, and should just
66         call setNeedsDisplay when marking whole layer as dirty.
67
68         In addition, this patch renames from setNeedsDisplay() with a rect argument to
69         setNeedsDisplayInRect(), which matches to the terms of GraphicsLayer.
70
71         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
72         (WebKit::WebChromeClient::invalidateContentsAndRootView):
73         (WebKit::WebChromeClient::invalidateContentsForSlowScroll):
74         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
75         (WebKit::WebFrameLoaderClient::restoreViewState):
76         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
77         (WebKit::CoordinatedLayerTreeHost::setNonCompositedContentsNeedDisplay):
78         (WebKit):
79         (WebKit::CoordinatedLayerTreeHost::setNonCompositedContentsNeedDisplayInRect):
80         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
81         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
82         (CoordinatedLayerTreeHost):
83         * WebProcess/WebPage/DrawingArea.h:
84         (DrawingArea):
85         * WebProcess/WebPage/DrawingAreaImpl.cpp:
86         (WebKit::DrawingAreaImpl::setNeedsDisplay):
87         (WebKit):
88         (WebKit::DrawingAreaImpl::setNeedsDisplayInRect):
89         (WebKit::DrawingAreaImpl::scroll):
90         (WebKit::DrawingAreaImpl::forceRepaint):
91         (WebKit::DrawingAreaImpl::didUninstallPageOverlay):
92         (WebKit::DrawingAreaImpl::setPageOverlayNeedsDisplay):
93         (WebKit::DrawingAreaImpl::resumePainting):
94         * WebProcess/WebPage/DrawingAreaImpl.h:
95         (DrawingAreaImpl):
96         * WebProcess/WebPage/LayerTreeHost.h:
97         (LayerTreeHost):
98         * WebProcess/WebPage/WebPage.cpp:
99         (WebKit::WebPage::setSize):
100         (WebKit::WebPage::setDrawsBackground):
101         (WebKit::WebPage::setDrawsTransparentBackground):
102         (WebKit::WebPage::resumeActiveDOMObjectsAndAnimations):
103         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
104         (WebKit::LayerTreeHostGtk::setNonCompositedContentsNeedDisplay):
105         (WebKit):
106         (WebKit::LayerTreeHostGtk::setNonCompositedContentsNeedDisplayInRect):
107         (WebKit::LayerTreeHostGtk::scrollNonCompositedContents):
108         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
109         (LayerTreeHostGtk):
110         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
111         (LayerTreeHostMac):
112         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
113         (WebKit::LayerTreeHostMac::setNonCompositedContentsNeedDisplay):
114         (WebKit):
115         (WebKit::LayerTreeHostMac::setNonCompositedContentsNeedDisplayInRect):
116         (WebKit::LayerTreeHostMac::scrollNonCompositedContents):
117         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
118         (RemoteLayerTreeDrawingArea):
119         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
120         (WebKit::RemoteLayerTreeDrawingArea::setNeedsDisplay):
121         (WebKit):
122         (WebKit::RemoteLayerTreeDrawingArea::setNeedsDisplayInRect):
123         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
124         (TiledCoreAnimationDrawingArea):
125         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
126         (WebKit::TiledCoreAnimationDrawingArea::setNeedsDisplay):
127         (WebKit):
128         (WebKit::TiledCoreAnimationDrawingArea::setNeedsDisplayInRect):
129
130 2013-02-20  Christophe Dumez  <ch.dumez@sisa.samsung.com>
131
132         [EFL][WK2] Port EwkPopupMenuItem to the C API
133         https://bugs.webkit.org/show_bug.cgi?id=108798
134
135         Reviewed by Kenneth Rohde Christiansen.
136
137         Make use of the new WKPopupItem C API inside EwkPopupMenuItem to remove
138         dependency on internal WebPopupItem type. Eina shared string members
139         are now lazily initialized to make the object cheaper to construct.
140
141         * UIProcess/API/efl/ewk_popup_menu.cpp:
142         (EwkPopupMenu::EwkPopupMenu):
143         * UIProcess/API/efl/ewk_popup_menu_item.cpp:
144         (EwkPopupMenuItem::EwkPopupMenuItem):
145         (EwkPopupMenuItem::type):
146         (EwkPopupMenuItem::textDirection):
147         (EwkPopupMenuItem::text):
148         (EwkPopupMenuItem::tooltipText):
149         (EwkPopupMenuItem::accessibilityText):
150         (EwkPopupMenuItem::hasTextDirectionOverride):
151         (EwkPopupMenuItem::isEnabled):
152         (EwkPopupMenuItem::isLabel):
153         (EwkPopupMenuItem::isSelected):
154         * UIProcess/API/efl/ewk_popup_menu_item_private.h:
155         (EwkPopupMenuItem::create):
156         (EwkPopupMenuItem):
157
158 2013-02-19  Tim Horton  <timothy_horton@apple.com>
159
160         Clarify isInWindow vs. isVisible path through to RenderLayerCompositor
161         https://bugs.webkit.org/show_bug.cgi?id=110261
162         <rdar://problem/13196122>
163
164         Reviewed by Simon Fraser.
165
166         * WebProcess/WebPage/WebPage.cpp:
167         (WebKit::WebPage::setIsInWindow):
168         Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen.
169
170 2013-02-19  Conrad Shultz  <conrad_shultz@apple.com>
171
172         Allow UI clients to handle vertical wheel events.
173         https://bugs.webkit.org/show_bug.cgi?id=110006
174
175         Reviewed by Tim Horton.
176
177         Add API to allow clients to selectively control rubber-banding at vertical page extrema.
178
179         * UIProcess/API/C/WKPage.cpp:
180         (WKPageRubberBandsAtBottom):
181         Proxy for the corresponding function in WebCore::Page.
182         (WKPageSetRubberBandsAtBottom):
183         Ditto.
184         (WKPageRubberBandsAtTop):
185         Ditto.
186         (WKPageSetRubberBandsAtTop):
187         Ditto.
188
189         * UIProcess/API/C/WKPage.h:
190         Declare new API.
191
192         * UIProcess/WebPageProxy.cpp:
193         (WebKit::WebPageProxy::WebPageProxy):
194         Initialize new member variables.
195         (WebKit::WebPageProxy::setRubberBandsAtBottom):
196         New function; dispatches a matching message to the WebKit::WebPage.
197         (WebKit::WebPageProxy::setRubberBandsAtTop):
198         Ditto.
199
200         * UIProcess/WebPageProxy.h:
201         (WebPageProxy):
202         Declare new API.
203         (WebKit::WebPageProxy::rubberBandsAtBottom):
204         New accessor function.
205         (WebKit::WebPageProxy::rubberBandsAtTop):
206         Ditto.
207
208         * WebProcess/WebPage/WebPage.cpp:
209         (WebKit::WebPage::setRubberBandsAtBottom):
210         New function; call the matching function on the associated WebCore::Page.
211         (WebKit::WebPage::setRubberBandsAtTop):
212         Ditto.
213
214         * WebProcess/WebPage/WebPage.h:
215         (WebPage):
216         Declare new rubber-banding API.
217
218         * WebProcess/WebPage/WebPage.messages.in:
219         Declare new rubber-banding API.
220
221 2013-02-19  Anders Carlsson  <andersca@apple.com>
222
223         StorageAreaProxy should know its quota
224         https://bugs.webkit.org/show_bug.cgi?id=110268
225
226         Reviewed by Sam Weinig.
227
228         Begin stubbing out StorageAreaProxy::setItem and add some quota member variables.
229
230         * WebProcess/Storage/StorageAreaProxy.cpp:
231         (WebKit::StorageAreaProxy::StorageAreaProxy):
232         (WebKit::StorageAreaProxy::setItem):
233         * WebProcess/Storage/StorageAreaProxy.h:
234         (StorageAreaProxy):
235         * WebProcess/Storage/StorageNamespaceProxy.cpp:
236         (WebKit::StorageNamespaceProxy::createSessionStorageNamespace):
237         (WebKit::StorageNamespaceProxy::StorageNamespaceProxy):
238         * WebProcess/Storage/StorageNamespaceProxy.h:
239         (WebKit::StorageNamespaceProxy::quota):
240         (StorageNamespaceProxy):
241
242 2013-02-19  Alexey Proskuryakov  <ap@apple.com>
243
244         <rdar://problem/13239119> NetworkProcess generates timeout spindump logs
245
246         Reviewed by Mark Rowe.
247
248         Don't keep a window server connection in processes that don't need it, and don't
249         run an NSApplication run loop.
250
251         * Shared/ChildProcess.h:
252         * Shared/mac/ChildProcessMac.mm: (WebKit::ChildProcess::shutdownWindowServerConnection):
253         Added a function to shut down connections, and to make sure we don't get one in the future.
254
255         * NetworkProcess/mac/NetworkProcessMac.mm:
256         (WebKit::NetworkProcess::initializeProcessName):
257         * OfflineStorageProcess/mac/OfflineStorageProcessMac.mm:
258         (WebKit::OfflineStorageProcess::initializeProcessName):
259         * SharedWorkerProcess/mac/SharedWorkerProcessMac.mm:
260         (WebKit::SharedWorkerProcess::platformInitializeSharedWorkerProcess): Also removed
261         some unused includes and forward declarations.
262
263 2013-02-18  Alexey Proskuryakov  <ap@apple.com>
264
265         [WK2] Cannot load documents with blob urls
266         https://bugs.webkit.org/show_bug.cgi?id=110160
267
268         Reviewed by Sam Weinig.
269
270         * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::canHandleRequest):
271         Added knowledge about blobs.
272
273 2013-02-19  Carlos Garcia Campos  <cgarcia@igalia.com>
274
275         [GTK] Move the API to get TLS certificate from WebKitURIResponse to WebKitWebView
276         https://bugs.webkit.org/show_bug.cgi?id=110190
277
278         Reviewed by Anders Carlsson.
279
280         Add webkit_web_view_get_tls_info() and remove
281         webkit_uri_response_get_https_status(). This way I can be sure
282         that when called after load has been committed the certificate
283         will be available. It also makes the API easier to use.
284
285         * UIProcess/API/gtk/WebKitURIResponse.cpp:
286         * UIProcess/API/gtk/WebKitURIResponse.h:
287         * UIProcess/API/gtk/WebKitURIResponsePrivate.h:
288         * UIProcess/API/gtk/WebKitWebView.cpp:
289         (webkitWebViewLoadChanged):
290         (mainResourceResponseChangedCallback):
291         (webkit_web_view_get_tls_info):
292         * UIProcess/API/gtk/WebKitWebView.h:
293         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
294         * UIProcess/API/gtk/tests/TestSSL.cpp:
295
296 2013-02-19  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
297
298         [WK2][EFL] Eliminate access to WK2 C++ internals from ewk_view functions
299         https://bugs.webkit.org/show_bug.cgi?id=109794
300
301         Reviewed by Anders Carlsson.
302
303         * UIProcess/API/C/efl/WKView.cpp:
304         (WKViewSetShowsAsSource):
305         (WKViewGetShowsAsSource):
306
307             Added new WKView API to wrap WebPageProxy::setMainFrameInViewSourceMode()
308             and WebPageProxy::mainFrameInViewSourceMode() calls.
309
310         (WKViewExitFullScreen):
311
312             Added new WKView API to wrap WebFullScreenManagerProxy::exitFullScreen()
313             calls.
314
315         * UIProcess/API/C/efl/WKView.h:
316         * UIProcess/API/efl/EwkView.cpp:
317         (EwkView::feedTouchEvent):
318
319             Added feedTouchEvent() method so that: at first ewk_view_feed_touch_event()
320             is not invoked from EwkView class, secondly ewk_view_feed_touch_event() does
321             not access WebPage instance directly.
322
323         (EwkView::feedTouchEvents):
324         * UIProcess/API/efl/EwkView.h:
325         (EwkView):
326         * UIProcess/API/efl/ewk_view.cpp:
327         (ewk_view_feed_touch_event):
328         (ewk_view_pagination_mode_set):
329         (ewk_view_pagination_mode_get):
330         (ewk_view_fullscreen_exit):
331         (ewkViewPageContentsCallback):
332         (ewk_view_page_contents_get):
333         (ewk_view_source_mode_set):
334         (ewk_view_source_mode_get):
335
336             Those are now using exported C API.
337
338         * UIProcess/efl/WebView.cpp:
339         (WebKit::WebView::setShowsAsSource):
340         (WebKit):
341         (WebKit::WebView::showsAsSource):
342         (WebKit::WebView::exitFullScreen):
343         * UIProcess/efl/WebView.h:
344         (WebView):
345
346             Added WebView methods to support added WKView API.
347
348 2013-02-19  Andras Becsi  <andras.becsi@digia.com>
349
350         [Qt][WK2] ASSERT(node) hit in WebPage::findZoomableAreaForPoint if no zoomable area found
351         https://bugs.webkit.org/show_bug.cgi?id=110220
352
353         Reviewed by Allan Sandfeld Jensen.
354
355         If EventHandler::bestZoomableAreaForTouchPoint was unsuccessfull, eg.
356         no node was found for a given point, we hit ASSERT(node).
357         We should only assert for a valid node if a zoomable area was found.
358
359         * WebProcess/WebPage/WebPage.cpp:
360         (WebKit::WebPage::findZoomableAreaForPoint):
361
362 2013-02-19  Christophe Dumez  <ch.dumez@sisa.samsung.com>
363
364         Regression(r143273): Caused a lot of tests to time out
365         https://bugs.webkit.org/show_bug.cgi?id=110212
366
367         Reviewed by Anders Carlsson.
368
369         StorageManager::destroySessionStorageNamespace() and StorageManager::cloneSessionStorageNamespace()
370         should call their respective "*Internal" equivalent instead of calling themselves. This lead to
371         a lot of time outs on our build bots.
372
373         * UIProcess/Storage/StorageManager.cpp:
374         (WebKit::StorageManager::destroySessionStorageNamespace):
375         (WebKit::StorageManager::cloneSessionStorageNamespace):
376
377 2013-02-18  Carlos Garcia Campos  <cgarcia@igalia.com>
378
379         [GTK] Remove webkit_web_view_get_subresources from WebKit2 GTK+ API
380         https://bugs.webkit.org/show_bug.cgi?id=110125
381
382         Reviewed by Anders Carlsson.
383
384         This API is currently implemented caching all resources in the
385         WebView which causes some problems in documents loading resources
386         indefinitely. This API was used in WebKit1 mainly to implement
387         webkit_web_view_save(), but we already have such API in
388         WebKit2.
389
390         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
391         (didReceiveWebViewMessageFromInjectedBundle):
392         * UIProcess/API/gtk/WebKitWebView.cpp:
393         (_WebKitWebViewPrivate):
394         (webkitWebViewLoadChanged):
395         * UIProcess/API/gtk/WebKitWebView.h:
396         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
397         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
398         * UIProcess/API/gtk/tests/TestResources.cpp:
399         (testWebViewResources):
400         (testWebResourceGetData):
401
402 2013-02-18  Christophe Dumez  <dchris@gmail.com>
403
404         [WK2][EFL] Stop using internal C++ API in ewk_error
405         https://bugs.webkit.org/show_bug.cgi?id=108796
406
407         Reviewed by Benjamin Poulain.
408
409         Stop using internal C++ API in ewk_error and use C API instead of avoid
410         violating API layering.
411
412         * UIProcess/API/efl/ewk_error.cpp:
413         (EwkError::domain):
414         (EwkError::isCancellation):
415         (ewk_error_type_get):
416         * UIProcess/API/efl/ewk_error_private.h:
417         (EwkError):
418
419 2013-02-18  Simon Fraser  <simon.fraser@apple.com>
420
421         Clean up the boolean argument to visibleContentRect
422         https://bugs.webkit.org/show_bug.cgi?id=110167
423
424         Reviewed by Simon Fraser.
425         
426         Replace the boolean argument to visibleContentRect() with
427         an enum.
428
429         * WebProcess/WebPage/WebFrame.cpp:
430         (WebKit::WebFrame::visibleContentBounds):
431         (WebKit::WebFrame::visibleContentBoundsExcludingScrollbars):
432
433 2013-02-18  Anders Carlsson  <andersca@apple.com>
434
435         Add a DefaultHash for RefPtr<SecurityOrigin>
436         https://bugs.webkit.org/show_bug.cgi?id=110170
437
438         Reviewed by Andreas Kling.
439
440         Remove all explicit uses of SecurityOriginHash.
441
442         * UIProcess/Storage/StorageManager.cpp:
443         (StorageManager::SessionStorageNamespace):
444         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
445         (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
446         * WebProcess/InjectedBundle/InjectedBundle.cpp:
447         (WebKit::InjectedBundle::originsWithApplicationCache):
448         * WebProcess/Notifications/NotificationPermissionRequestManager.h:
449         Include SecurityOriginHash.h. This fixes a bug where m_originToIDMap used pointer-equality
450         for looking up security origins.
451
452         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
453         (WebKit::WebResourceCacheManager::clearCacheForOrigin):
454         This can just take a const reference.
455
456         * WebProcess/ResourceCache/WebResourceCacheManager.h:
457
458 2013-02-18  Anders Carlsson  <andersca@apple.com>
459
460         Begin stubbing out session storage classes
461         https://bugs.webkit.org/show_bug.cgi?id=110168
462
463         Reviewed by Andreas Kling.
464
465         * UIProcess/Storage/StorageManager.cpp:
466         (StorageManager::StorageArea):
467         (WebKit):
468         (WebKit::StorageManager::StorageArea::create):
469         (WebKit::StorageManager::StorageArea::StorageArea):
470         (WebKit::StorageManager::StorageArea::~StorageArea):
471         (StorageManager::SessionStorageNamespace):
472         (WebKit::StorageManager::SessionStorageNamespace::isEmpty):
473         (WebKit::StorageManager::SessionStorageNamespace::create):
474         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
475         (WebKit::StorageManager::SessionStorageNamespace::~SessionStorageNamespace):
476         (WebKit::StorageManager::SessionStorageNamespace::cloneTo):
477         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
478         (WebKit::StorageManager::destroySessionStorageNamespaceInternal):
479         (WebKit::StorageManager::cloneSessionStorageNamespaceInternal):
480         * UIProcess/Storage/StorageManager.h:
481         (StorageManager):
482
483 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
484
485         [EFL][WK2] Add C API for popup menu and popup item
486         https://bugs.webkit.org/show_bug.cgi?id=109083
487
488         Reviewed by Anders Carlsson.
489
490         WK2 EFL delegates display of the popup menu to the browser which causes
491         us to have a strong interdependency between internal C++ classes
492         (WebPopupMenuProxyEfl, WebPopupItem) and our EFL API implementation
493         (EwkView, EwkPopupMenu, EwkPopupMenuItem).
494
495         Since we want to remove this interdependency, this patch introduces a
496         for WebPopupMenuProxyEfl (WKPopupMenuListener) and for WebPopupItem
497         (WKPopupItem). It also introduces a WKPage client with callbacks for
498         showPopupMenu and hidePopupMenu.
499
500         Note that the popup menu functionality is covered by ewk_popup_menu API
501         tests and no functionality is lost.
502
503         * PlatformEfl.cmake: Add new files to EFL CMake config.
504         * Shared/API/c/efl/WKBaseEfl.h: Add typedefs for WKPopupItemRef and
505         WKPopupMenuListenerRef.
506         * Shared/APIObject.h: Add new TypePopupMenuItem APIObject type for EFL
507         platform.
508         * UIProcess/API/C/efl/WKAPICastEfl.h: Add mapping for WKPopupItemRef
509         and WKPopupMenuListenerRef API types.
510         (WebKit):
511         (WebKit::toAPI):
512         * UIProcess/API/C/efl/WKPageEfl.cpp: Added.
513         (WKPageSetUIPopupMenuClient): Add new C API to set the UI Popup Menu
514         client on the page.
515         * UIProcess/API/C/efl/WKPageEfl.h: Added.
516         * UIProcess/API/C/efl/WKPopupItem.cpp: Added. Add C API for WebPopupItem.
517         (WKPopupItemGetType):
518         (WKPopupItemGetTextDirection):
519         (WKPopupItemHasTextDirectionOverride):
520         (WKPopupItemCopyText):
521         (WKPopupItemCopyToolTipText):
522         (WKPopupItemCopyAccessibilityText):
523         (WKPopupItemIsEnabled):
524         (WKPopupItemIsLabel):
525         (WKPopupItemIsSelected):
526         * UIProcess/API/C/efl/WKPopupItem.h: Added.
527         * UIProcess/API/C/efl/WKPopupMenuListener.cpp: Added. Add C API for
528         WebPopupMenuListenerEfl (formerly WebPopupMenuProxyEfl) so that the
529         client can report which popup menu item was selected.
530         (WKPopupMenuListenerSetSelection):
531         * UIProcess/API/C/efl/WKPopupMenuListener.h: Added.
532         * UIProcess/API/efl/EwkView.cpp: Remove dependency on internal C++ types
533         (WebPopupMenuProxyEfl and WebPopupItem) and use C API types instead.
534         (EwkView::requestPopupMenu):
535         * UIProcess/API/efl/EwkView.h:
536         (WebKit):
537         (EwkView):
538         * UIProcess/API/efl/ewk_popup_menu.cpp: Use C API for Popup menu.
539         (EwkPopupMenu::EwkPopupMenu):
540         (EwkPopupMenu::setSelectedIndex):
541         * UIProcess/API/efl/ewk_popup_menu_private.h:
542         (EwkPopupMenu::create):
543         (EwkPopupMenu):
544         * UIProcess/WebPageProxy.cpp: Use WKPageUIPopupMenuClient to show / hide
545         the popup menu on EFL port instead of asking the WebPopupMenuProxy.
546         (WebKit::WebPageProxy::close):
547         (WebKit::WebPageProxy::showPopupMenu):
548         (WebKit::WebPageProxy::hidePopupMenu):
549         * UIProcess/WebPageProxy.h: Add new WKPageUIPopupMenuClient member and
550         corresponding initialization method.
551         (WebPageProxy):
552         * UIProcess/WebPopupMenuProxy.h: Disable showPopupMenu / hidePopupMenu
553         virtual methods on EFL port since we go via WKPageUIPopupMenuClient
554         for this now.
555         (WebPopupMenuProxy):
556         * UIProcess/efl/PageUIClientEfl.cpp:
557         (WebKit::PageUIClientEfl::PageUIClientEfl): Handle WKPageUIPopupMenuClient
558         callbacks and call corresponding EwkView methods. Previously, the EwkView
559         methods were called by the internal WebPageProxyEfl class which is no
560         longer needed.
561         (WebKit::PageUIClientEfl::showPopupMenu):
562         (WebKit):
563         (WebKit::PageUIClientEfl::hidePopupMenu):
564         * UIProcess/efl/PageUIClientEfl.h:
565         (PageUIClientEfl):
566         * UIProcess/efl/WebPageProxyEfl.cpp:
567         (WebKit::WebPageProxy::initializeUIPopupMenuClient):
568         (WebKit):
569         * UIProcess/efl/WebPopupItemEfl.cpp: Added. Add APIObject wrapper for
570         WebPopupItem so that we can use it in WKPageUIPopupMenuClient.
571         (WebKit):
572         (WebKit::WebPopupItemEfl::WebPopupItemEfl):
573         (WebKit::WebPopupItemEfl::~WebPopupItemEfl):
574         * UIProcess/efl/WebPopupItemEfl.h: Added.
575         (WebKit):
576         (WebPopupItemEfl):
577         (WebKit::WebPopupItemEfl::create):
578         (WebKit::WebPopupItemEfl::data):
579         (WebKit::WebPopupItemEfl::itemType):
580         (WebKit::WebPopupItemEfl::text):
581         (WebKit::WebPopupItemEfl::textDirection):
582         (WebKit::WebPopupItemEfl::hasTextDirectionOverride):
583         (WebKit::WebPopupItemEfl::toolTipText):
584         (WebKit::WebPopupItemEfl::accessibilityText):
585         (WebKit::WebPopupItemEfl::isEnabled):
586         (WebKit::WebPopupItemEfl::isLabel):
587         (WebKit::WebPopupItemEfl::isSelected):
588         (WebKit::WebPopupItemEfl::type):
589         * UIProcess/efl/WebPopupMenuListenerEfl.cpp: Renamed from Source/WebKit2/UIProcess/efl/WebPopupMenuProxyEfl.cpp.
590         Use WebPopupMenuListenerEfl name instead of WebPopupMenuProxyEfl since
591         it more accurately represents its functionality now.
592         (WebKit):
593         (WebKit::WebPopupMenuListenerEfl::WebPopupMenuListenerEfl):
594         (WebKit::WebPopupMenuListenerEfl::valueChanged):
595         * UIProcess/efl/WebPopupMenuListenerEfl.h: Renamed from Source/WebKit2/UIProcess/efl/WebPopupMenuProxyEfl.h.
596         (WebKit):
597         (WebPopupMenuListenerEfl):
598         (WebKit::WebPopupMenuListenerEfl::create):
599         * UIProcess/efl/WebUIPopupMenuClient.cpp: Added.
600         (WebUIPopupMenuClient::showPopupMenu):
601         (WebUIPopupMenuClient::hidePopupMenu):
602         * UIProcess/efl/WebUIPopupMenuClient.h: Added.
603         (WebKit):
604         (WebUIPopupMenuClient):
605         * UIProcess/efl/WebView.cpp:
606         (WebKit::WebView::createPopupMenuProxy):
607
608 2013-02-18  Anders Carlsson  <andersca@apple.com>
609
610         Add StorageManager member functions for keeping track of session storage namespaces
611         https://bugs.webkit.org/show_bug.cgi?id=110163
612
613         Reviewed by Andreas Kling.
614
615         * UIProcess/Storage/StorageManager.cpp:
616         (WebKit::StorageManager::createSessionStorageNamespace):
617         (WebKit):
618         (WebKit::StorageManager::destroySessionStorageNamespace):
619         (WebKit::StorageManager::cloneSessionStorageNamespace):
620         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
621         (WebKit::StorageManager::destroySessionStorageNamespaceInternal):
622         (WebKit::StorageManager::cloneSessionStorageNamespaceInternal):
623         * UIProcess/Storage/StorageManager.h:
624         (StorageManager):
625         * UIProcess/WebContext.h:
626         (WebKit::WebContext::storageManager):
627         (WebContext):
628         * UIProcess/WebPageProxy.cpp:
629         (WebKit::WebPageProxy::WebPageProxy):
630         (WebKit::WebPageProxy::close):
631         (WebKit::WebPageProxy::createNewPage):
632
633 2013-02-18  Anders Carlsson  <andersca@apple.com>
634
635         StorageManager message handlers should take the connection
636         https://bugs.webkit.org/show_bug.cgi?id=110151
637
638         Reviewed by Andreas Kling.
639
640         * Platform/CoreIPC/HandleMessage.h:
641         (CoreIPC):
642         (CoreIPC::callMemberFunction):
643         (CoreIPC::handleMessage):
644         * Scripts/webkit2/messages.py:
645         (sync_message_statement):
646         (generate_message_handler):
647         * UIProcess/Storage/StorageManager.cpp:
648         (WebKit::StorageManager::createStorageArea):
649         (WebKit::StorageManager::destroyStorageArea):
650         (WebKit::StorageManager::getValues):
651         * UIProcess/Storage/StorageManager.h:
652         (StorageManager):
653         * UIProcess/Storage/StorageManager.messages.in:
654
655 2013-02-18  Christophe Dumez  <christophe.dumez@intel.com>
656
657         [EFL][WK2] Use C API inside ewk_security_origin
658         https://bugs.webkit.org/show_bug.cgi?id=107923
659
660         Reviewed by Alexey Proskuryakov.
661
662         Use C API inside ewk_security_origin instead of accessing
663         directly internal C++ classes, to avoid breaking API
664         layering.
665
666         * UIProcess/API/efl/EwkView.cpp:
667         (EwkView::enterFullScreen):
668         * UIProcess/API/efl/ewk_security_origin.cpp:
669         (EwkSecurityOrigin::EwkSecurityOrigin):
670         * UIProcess/API/efl/ewk_security_origin_private.h:
671         (EwkSecurityOrigin::create):
672         (EwkSecurityOrigin):
673
674 2013-01-04  Jer Noble  <jer.noble@apple.com>
675
676         pinch-zooming webpage messes up full-screening of embedded video
677         https://bugs.webkit.org/show_bug.cgi?id=106115
678
679         Reviewed by Maciej Stachowiak.
680
681         Reset the page scale when entering full screen, and reset to the original scale when exiting.
682
683         * UIProcess/mac/WKFullScreenWindowController.h:
684         * UIProcess/mac/WKFullScreenWindowController.mm:
685         (-[WKFullScreenWindowController enterFullScreen:]):
686         (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]):
687
688 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
689
690         [EFL][WK2] Disable failing API tests
691         https://bugs.webkit.org/show_bug.cgi?id=110081
692
693         Reviewed by Kenneth Rohde Christiansen.
694
695         Disable EWK2UnitTestBase.ewk_view_scale API test as it is failing.
696
697         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
698         (TEST_F):
699
700 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
701
702         [Qt][WK2] Support WK2 API tests
703         https://bugs.webkit.org/show_bug.cgi?id=109843
704
705         Reviewed by Jocelyn Turcotte.
706
707         * UIProcess/API/qt/qquickwebview_p.h:
708         (TestWebKitAPI):
709
710 2013-02-18  Andras Becsi  <andras.becsi@digia.com>
711
712         [Qt][WK2] Changing WebView.contentY and WebView.contentX does not redraw content
713         https://bugs.webkit.org/show_bug.cgi?id=108337
714
715         Reviewed by Jocelyn Turcotte.
716
717         We should not ignore content position changes unless pinch zoom or bounce-back
718         animation is ongoing.
719         This way we notify the web process about visible rect changes if the contentX
720         and contentY properties are used to programmatically scroll the content from QML.
721         One important usecase for this is when implementing scrollbars.
722
723         * UIProcess/qt/PageViewportControllerClientQt.cpp:
724         (WebKit::PageViewportControllerClientQt::PageViewportControllerClientQt):
725         (WebKit::PageViewportControllerClientQt::flickMoveStarted):
726         (WebKit::PageViewportControllerClientQt::flickMoveEnded):
727         (WebKit::PageViewportControllerClientQt::pageItemPositionChanged):
728         (WebKit::PageViewportControllerClientQt::scaleAnimationStateChanged):
729         (WebKit::PageViewportControllerClientQt::pinchGestureStarted):
730
731 2013-02-18  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
732
733         [WK2][EFL] Unified text checker implementation
734         https://bugs.webkit.org/show_bug.cgi?id=107682
735
736         Reviewed by Anders Carlsson.
737
738         * UIProcess/efl/TextCheckerEfl.cpp:
739         (WebKit):
740         (WebKit::nextWordOffset):
741         Helper function to determine the word offset to do not call
742         client's checkSpellingOfString for the word separators.
743
744         (WebKit::TextChecker::checkTextOfParagraph):
745         Allow to check spelling for multiple words,
746         their misspelling location and length are saved to the vector.
747
748         * WebProcess/WebCoreSupport/WebEditorClient.h:
749         Add UNIFIED_TEXT_CHECKING guard to checkTextOfParagraph.
750
751         * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
752         (WebKit):
753         (WebKit::WebEditorClient::checkTextOfParagraph):
754         As spelling implementation is exposed to UIProcess,
755         send a meesage to UIProcess to call TextChecker::checkTextOfParagraph.
756
757 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
758
759         [EFL][WK2] Refactor Ewk_Favicon code and stop relying on internal C++ API
760         https://bugs.webkit.org/show_bug.cgi?id=108598
761
762         Reviewed by Kenneth Rohde Christiansen.
763
764         Refactor the Ewk_Favicon code so that it no longer relies on internal
765         C++ API and so that it is based solely on the C API. The API is changed
766         a little as well so that the Favicon URL is no longer exposed to the
767         client. Also the client is now only notified of icon changes once the
768         favicon data is actually available.
769
770         The API is covered by existing API tests and by MiniBrowser which are
771         both updated accordingly in this patch.
772
773         * UIProcess/API/efl/EwkView.cpp:
774         (EwkView::informURLChange):
775         (EwkView::createFavicon):
776         (EwkView::onFaviconChanged):
777         * UIProcess/API/efl/EwkView.h:
778         (EwkView):
779         * UIProcess/API/efl/EwkViewCallbacks.h:
780         * UIProcess/API/efl/ewk_favicon_database.cpp:
781         Client are now notified of favicon changes only when the favicon data
782         becomes available and make API to retrieve a favicon synchronous. NULL
783         is returned if the favicon data is not available.
784
785         (EwkFaviconDatabase::EwkFaviconDatabase):
786         (EwkFaviconDatabase::getIconSurfaceSynchronously):
787         (EwkFaviconDatabase::iconDataReadyForPageURL):
788         (ewk_favicon_database_icon_get):
789         * UIProcess/API/efl/ewk_favicon_database.h:
790         * UIProcess/API/efl/ewk_favicon_database_private.h:
791         (EwkFaviconDatabase):
792         * UIProcess/API/efl/ewk_view.cpp:
793         (ewk_view_favicon_get):
794         * UIProcess/API/efl/ewk_view.h:
795         Rename 'icon,changed' signal to 'favicon,changed' for clarity and
796         consistency with the rest of the favicon API. Remove API to retrieve
797         the favicon URL and replace it by one to retrieve the favicon image as
798         an Evas_Object instead.
799
800         * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
801         Update API tests to use the new favicon API.
802
803 2013-02-17  Jae Hyun Park  <jae.park@company100.net>
804
805         Remove unnecessary public method DrawingAreaImpl::createGraphicsContext()
806         https://bugs.webkit.org/show_bug.cgi?id=109893
807
808         Reviewed by Anders Carlsson.
809
810         DrawingAreaImpl::createGraphicsContext() is unnecessary since
811         createGraphicsContext can be called directly using ShareableBitmap.
812
813         * WebProcess/WebPage/DrawingAreaImpl.cpp:
814         (WebKit::DrawingAreaImpl::display):
815         * WebProcess/WebPage/DrawingAreaImpl.h:
816         (DrawingAreaImpl):
817
818 2013-02-17  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
819
820         [WK2][EFL] Remove fullscreen manager proxy as a message receiver on invalidate()
821         https://bugs.webkit.org/show_bug.cgi?id=109451
822
823         Reviewed by Anders Carlsson.
824
825         Remove fullscreen manager proxy as a message receiver on invalidate(), like
826         other ports do after r142160.
827
828         * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
829         (WebKit::WebFullScreenManagerProxy::invalidate):
830
831 2013-02-17  Christophe Dumez  <ch.dumez@sisa.samsung.com>
832
833         Regression(r143124): Caused plugins/plugin-javascript-access.html to fail
834         https://bugs.webkit.org/show_bug.cgi?id=110053
835
836         Reviewed by Alexey Proskuryakov.
837
838         Clear m_plugins in loadPluginsIfNecessary() before populating the
839         vector again. We get duplicates otherwise.
840
841         * UIProcess/Plugins/PluginInfoStore.cpp:
842         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
843
844 2013-02-16  Andreas Kling  <akling@apple.com>
845
846         Remove multi-threading gunk from PluginInfoStore.
847         <http://webkit.org/b/110046>
848
849         Reviewed by Alexey Proskuryakov.
850
851         PluginInfoStore is never accessed from multiple threads anymore, so remove the Mutex locking
852         and stop making isolated copies of everything.
853
854         * Shared/Plugins/PluginModuleInfo.h:
855         (PluginModuleInfo):
856         * UIProcess/Plugins/PluginInfoStore.cpp:
857         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
858         (WebKit::PluginInfoStore::plugins):
859         (WebKit::PluginInfoStore::findPluginForMIMEType):
860         (WebKit::PluginInfoStore::findPluginForExtension):
861         (WebKit::PluginInfoStore::findPlugin):
862         (WebKit::PluginInfoStore::infoForPluginWithPath):
863         * UIProcess/Plugins/PluginInfoStore.h:
864         (PluginInfoStore):
865
866 2013-02-16  Sam Weinig  <sam@webkit.org>
867
868         Fix non-production builds.
869
870         * WebKit2.xcodeproj/project.pbxproj:
871
872 2013-02-16  Sam Weinig  <sam@webkit.org>
873
874         The Plugin.32 target does not build
875         https://bugs.webkit.org/show_bug.cgi?id=110032
876
877         Reviewed by Anders Carlsson.
878
879         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm: Removed.
880         This was meant to be removed already.
881
882         * WebKit2.xcodeproj/project.pbxproj:
883         Add Plugin.32 as dependency in All as it should be.
884
885 2013-02-16  Darin Adler  <darin@apple.com>
886
887         Fix WKDOMRangePrivate.h mistakes
888         https://bugs.webkit.org/show_bug.cgi?id=110028
889
890         Reviewed by Ryosuke Niwa.
891
892         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
893         Added include of WKDOMRangePrivate.h.
894
895         * WebProcess/InjectedBundle/API/mac/WKDOMRangePrivate.h:
896         Fixed class name and include to be WKDOMRange.
897         Fixed method name, _copyBundleRangeHandleRef, to match the
898         name in the source file.
899
900 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
901
902         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
903         https://bugs.webkit.org/show_bug.cgi?id=109996
904
905         Reviewed by Simon Fraser.
906
907         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
908         (InitWebCoreSystemInterface):
909
910 2013-02-15  Sheriff Bot  <webkit.review.bot@gmail.com>
911
912         Unreviewed, rolling out r143088.
913         http://trac.webkit.org/changeset/143088
914         https://bugs.webkit.org/show_bug.cgi?id=110000
915
916         Breaks the build (Requested by dgorbik on #webkit).
917
918         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
919         (InitWebCoreSystemInterface):
920
921 2013-02-15  Kiran Muppala  <cmuppala@apple.com>
922
923         Disable sudden termination on Mac
924         https://bugs.webkit.org/show_bug.cgi?id=109990
925
926         Reviewed by Mark Rowe.
927
928         Sudden Termination is causing WebContent XPC services to be killed in
929         response to memory pressure.  Hence, disable it until we can identify
930         if it is being enabled in error or not.
931
932         * Shared/mac/ChildProcessMac.mm:
933         (WebKit::ChildProcess::platformInitialize): Add call to
934         [NSProcessInfo disableSuddenTermination].
935
936 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
937
938         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
939         https://bugs.webkit.org/show_bug.cgi?id=109996
940
941         Reviewed by Simon Fraser.
942
943         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
944         (InitWebCoreSystemInterface):
945
946 2013-02-15  Adenilson Cavalcanti  <cavalcantii@gmail.com>
947
948         [Qt][WK2] Crash on window resize if WebProcess is closed/crashed
949         https://bugs.webkit.org/show_bug.cgi?id=109216
950
951         Reviewed by Benjamin Poulain.
952
953         Only make calls into DrawingAreaProxy pointer after checking its state.
954
955         When the WebProcess was closed or crashed, WebKit::WebPageProxy will set
956         its DrawingAreaProxy pointer to null. Resize events on UIProcess/client will
957         try to access the object to update the geometry and forward this information
958         into the WebProcess. This would create a crash scenario that is fixed by this patch.
959
960         * UIProcess/API/qt/qquickwebview.cpp:
961         (QQuickWebViewPrivate::didRelaunchProcess):
962         (QQuickWebViewLegacyPrivate::updateViewportSize):
963
964 2013-02-15  Anders Carlsson  <andersca@apple.com>
965
966         Add HashMap::isValidKey and HashSet::isValidValue
967         https://bugs.webkit.org/show_bug.cgi?id=109977
968
969         Reviewed by Sam Weinig and Darin Adler.
970
971         Just call HashMap::isValidKey directly.
972
973         * UIProcess/WebProcessProxy.cpp:
974         (WebKit::generatePageID):
975         Initialize the id to 0 and use prefix increment.
976
977         (WebKit::WebProcessProxy::webFrame):
978         (WebKit::WebProcessProxy::canCreateFrame):
979         (WebKit::WebProcessProxy::didDestroyFrame):
980
981 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
982
983         Typo fix after r143064.
984
985         * Platform/CoreIPC/win/ConnectionWin.cpp:
986         (CoreIPC::Connection::sendOutgoingMessage):
987
988 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
989
990         One more buildfix after r143052.
991
992         * Platform/CoreIPC/win/ConnectionWin.cpp:
993         (CoreIPC::Connection::sendOutgoingMessage):
994
995 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
996
997         Unreviewed buildfix after r143052 for Qt/GTK/EFL ports.
998
999         * Platform/unix/SharedMemoryUnix.cpp:
1000         (WebKit::SharedMemory::Handle::encode):
1001         * Platform/win/SharedMemoryWin.cpp:
1002         (WebKit::SharedMemory::Handle::encode):
1003         * Shared/Network/NetworkResourceLoadParameters.cpp:
1004         (WebKit::NetworkResourceLoadParameters::encode):
1005         * Shared/WebBatteryStatus.cpp:
1006         (WebKit::WebBatteryStatus::Data::encode):
1007         * Shared/WebNetworkInfo.cpp:
1008         (WebKit::WebNetworkInfo::Data::encode):
1009         * Shared/efl/LayerTreeContextEfl.cpp:
1010         (WebKit::LayerTreeContext::encode):
1011         * Shared/gtk/LayerTreeContextGtk.cpp:
1012         (WebKit::LayerTreeContext::encode):
1013         * Shared/qt/LayerTreeContextQt.cpp:
1014         (WebKit::LayerTreeContext::encode):
1015         * Shared/qt/QtNetworkReplyData.cpp:
1016         (WebKit::QtNetworkReplyData::encode):
1017         * Shared/qt/QtNetworkRequestData.cpp:
1018         (WebKit::QtNetworkRequestData::encode):
1019         * Shared/soup/PlatformCertificateInfo.cpp:
1020         (WebKit::PlatformCertificateInfo::encode):
1021
1022 2013-02-15  Anders Carlsson  <andersca@apple.com>
1023
1024         Make most ArgumentEncoder::encode member functions private
1025         https://bugs.webkit.org/show_bug.cgi?id=109973
1026
1027         Reviewed by Sam Weinig.
1028
1029         Make the encode overloads private; the stream operator should be used instead.
1030
1031         * Platform/CoreIPC/ArgumentEncoder.h:
1032         (ArgumentEncoder):
1033         * Platform/CoreIPC/Arguments.h:
1034         (CoreIPC::Arguments1::encode):
1035         (CoreIPC::Arguments2::encode):
1036         (CoreIPC::Arguments3::encode):
1037         (CoreIPC::Arguments4::encode):
1038         (CoreIPC::Arguments5::encode):
1039         (CoreIPC::Arguments6::encode):
1040         (CoreIPC::Arguments7::encode):
1041         (CoreIPC::Arguments8::encode):
1042         (CoreIPC::Arguments10::encode):
1043         * Platform/CoreIPC/Connection.cpp:
1044         (CoreIPC::Connection::createSyncMessageEncoder):
1045         * Platform/CoreIPC/MessageEncoder.cpp:
1046         (CoreIPC::MessageEncoder::MessageEncoder):
1047         * Scripts/webkit2/messages.py:
1048         (generate_message_handler):
1049         * Scripts/webkit2/messages_unittest.py:
1050         * Shared/Network/NetworkResourceLoadParameters.cpp:
1051         (WebKit::NetworkResourceLoadParameters::encode):
1052         * WebProcess/WebPage/EncoderAdapter.cpp:
1053         (WebKit::EncoderAdapter::EncoderAdapter):
1054         (WebKit::EncoderAdapter::encodeBytes):
1055         (WebKit::EncoderAdapter::encodeBool):
1056         (WebKit::EncoderAdapter::encodeUInt16):
1057         (WebKit::EncoderAdapter::encodeUInt32):
1058         (WebKit::EncoderAdapter::encodeUInt64):
1059         (WebKit::EncoderAdapter::encodeInt32):
1060         (WebKit::EncoderAdapter::encodeInt64):
1061         (WebKit::EncoderAdapter::encodeFloat):
1062         (WebKit::EncoderAdapter::encodeDouble):
1063         (WebKit::EncoderAdapter::encodeString):
1064
1065 2013-02-15  Anders Carlsson  <andersca@apple.com>
1066
1067         Add a synchronous GetValues message to StorageManager
1068         https://bugs.webkit.org/show_bug.cgi?id=109968
1069
1070         Reviewed by Sam Weinig.
1071
1072         * Platform/CoreIPC/Connection.cpp:
1073         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
1074         Handle synchronous messages.
1075
1076         (CoreIPC::Connection::processIncomingMessage):
1077         Check for work queue message receivers before doing any other processing.
1078
1079         * UIProcess/Storage/StorageManager.cpp:
1080         (WebKit::StorageManager::getValues):
1081         Add empty stub.
1082
1083         * UIProcess/Storage/StorageManager.h:
1084         * UIProcess/Storage/StorageManager.messages.in:
1085         Add GetValues message.
1086
1087         * WebProcess/Storage/StorageAreaProxy.cpp:
1088         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
1089         Send the GetValues message.
1090
1091 2013-02-15  Anders Carlsson  <andersca@apple.com>
1092
1093         A storage area should know its storage type
1094         https://bugs.webkit.org/show_bug.cgi?id=109964
1095
1096         Reviewed by Andreas Kling.
1097
1098         * WebProcess/Storage/StorageAreaProxy.cpp:
1099         (WebKit::StorageAreaProxy::StorageAreaProxy):
1100         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
1101         * WebProcess/Storage/StorageAreaProxy.h:
1102         (StorageAreaProxy):
1103         * WebProcess/Storage/StorageNamespaceProxy.cpp:
1104         (WebKit::StorageNamespaceProxy::storageType):
1105         (WebKit):
1106         * WebProcess/Storage/StorageNamespaceProxy.h:
1107         (StorageNamespaceProxy):
1108
1109 2013-02-15  Anders Carlsson  <andersca@apple.com>
1110
1111         Implement StorageAreaProxy::length
1112         https://bugs.webkit.org/show_bug.cgi?id=109962
1113
1114         Reviewed by Andreas Kling.
1115
1116         * WebProcess/Storage/StorageAreaProxy.cpp:
1117         (WebKit::StorageAreaProxy::length):
1118         Load the values if needed and then return the length.
1119
1120         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
1121         Add helper function.
1122
1123         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
1124         Just allocate the hash map for now.
1125
1126         * WebProcess/Storage/StorageAreaProxy.h:
1127         (StorageAreaProxy):
1128
1129 2013-02-15  Anders Carlsson  <andersca@apple.com>
1130
1131         Remove const from a bunch of StorageArea member functions
1132         https://bugs.webkit.org/show_bug.cgi?id=109957
1133
1134         Reviewed by Beth Dakin.
1135
1136         Update for WebCore changes.
1137
1138         * WebProcess/Storage/StorageAreaProxy.cpp:
1139         (WebKit::StorageAreaProxy::length):
1140         (WebKit::StorageAreaProxy::key):
1141         (WebKit::StorageAreaProxy::getItem):
1142         (WebKit::StorageAreaProxy::contains):
1143         (WebKit::StorageAreaProxy::canAccessStorage):
1144         (WebKit::StorageAreaProxy::memoryBytesUsedByCache):
1145         * WebProcess/Storage/StorageAreaProxy.h:
1146         (StorageAreaProxy):
1147
1148 2013-02-15  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
1149
1150         [EFL][WK2] Use C API inside BatteryProvider and NetworkInfoProvider
1151         https://bugs.webkit.org/show_bug.cgi?id=107821
1152
1153         Reviewed by Anders Carlsson.
1154
1155         BatteryProvider and NetworkInfoProvider should use C API
1156         instead of accessing the internal C++ classes directly.
1157
1158         * UIProcess/API/efl/ewk_context.cpp:
1159         (EwkContext::EwkContext):
1160         * UIProcess/efl/BatteryProvider.cpp:
1161         (BatteryProvider::~BatteryProvider):
1162         (BatteryProvider::create):
1163         (BatteryProvider::BatteryProvider):
1164         (BatteryProvider::didChangeBatteryStatus):
1165         * UIProcess/efl/BatteryProvider.h:
1166         (BatteryProvider):
1167         * UIProcess/efl/NetworkInfoProvider.cpp:
1168         (NetworkInfoProvider::create):
1169         (NetworkInfoProvider::NetworkInfoProvider):
1170         (NetworkInfoProvider::~NetworkInfoProvider):
1171         * UIProcess/efl/NetworkInfoProvider.h:
1172         (NetworkInfoProvider):
1173
1174 2013-02-15  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1175
1176         [WK2][EFL]REGRESSION (r141978): ewk_view_type_check api test failing
1177         https://bugs.webkit.org/show_bug.cgi?id=109038
1178
1179         Reviewed by Anders Carlsson.
1180
1181         EFL API is defensive by its nature and expects graceful handling of wrong function arguments
1182         whereas webkit implementation code does not. This patch adds new 'toEwkViewChecked' function,
1183         which provides handling of wrong arguments, to be used within EFL API layer code.
1184
1185         * UIProcess/API/efl/EwkView.cpp:
1186         (toEwkView):
1187
1188             EwkView* toEwkView(const Ewk_View_Smart_Data* smartData) is not exported anymore
1189             as it's used within EwkView class only.        
1190
1191         (EwkView::handleTouchMove):
1192         * UIProcess/API/efl/EwkView.h:
1193         * UIProcess/API/efl/ewk_view.cpp:
1194         (toEwkViewChecked):
1195
1196 2013-02-15  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1197
1198         [EFL][WK2] Have WebView subclass PageClient
1199         https://bugs.webkit.org/show_bug.cgi?id=109684
1200
1201         Reviewed by Anders Carlsson.
1202
1203         Stop constructing the PageClient in EwkView. PageClient is an internal
1204         class and we should not use it directly in our Ewk implementation.
1205         Instead, have WebView subclass PageClient. The PageClient implementation
1206         just calls WebView methods otherwise.
1207
1208         * PlatformEfl.cmake:
1209         * UIProcess/API/efl/EwkView.cpp:
1210         (EwkView::EwkView):
1211         (EwkView::setSize):
1212         * UIProcess/API/efl/EwkView.h:
1213         (WebKit):
1214         (EwkView):
1215         (EwkView::webView):
1216         * UIProcess/API/efl/ewk_view.cpp:
1217         * UIProcess/efl/PageClientBase.cpp: Removed.
1218         * UIProcess/efl/PageClientBase.h: Removed.
1219         * UIProcess/efl/PageClientDefaultImpl.cpp: Removed.
1220         * UIProcess/efl/PageClientDefaultImpl.h: Removed.
1221         * UIProcess/efl/PageClientLegacyImpl.cpp: Removed.
1222         * UIProcess/efl/PageClientLegacyImpl.h: Removed.
1223         * UIProcess/efl/PageLoadClientEfl.cpp:
1224         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
1225         * UIProcess/efl/PageViewportControllerClientEfl.h:
1226         * UIProcess/efl/WebPageProxyEfl.cpp:
1227         (WebKit::WebPageProxy::viewWidget):
1228         * UIProcess/efl/WebView.cpp:
1229         (WebKit::WebView::WebView):
1230         (WebKit::WebView::~WebView):
1231         (WebKit::WebView::initialize):
1232         (WebKit):
1233         (WebKit::WebView::evasObject):
1234         (WebKit::WebView::setThemePath):
1235         (WebKit::WebView::setDrawsBackground):
1236         (WebKit::WebView::drawsBackground):
1237         (WebKit::WebView::setDrawsTransparentBackground):
1238         (WebKit::WebView::drawsTransparentBackground):
1239         (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
1240         (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
1241         (WebKit::WebView::didCommitLoad):
1242         (WebKit::WebView::updateViewportSize):
1243         (WebKit::WebView::didChangeContentsSize):
1244         (WebKit::WebView::createDrawingAreaProxy):
1245         (WebKit::WebView::setViewNeedsDisplay):
1246         (WebKit::WebView::displayView):
1247         (WebKit::WebView::scrollView):
1248         (WebKit::WebView::viewSize):
1249         (WebKit::WebView::isViewWindowActive):
1250         (WebKit::WebView::isViewFocused):
1251         (WebKit::WebView::isViewVisible):
1252         (WebKit::WebView::isViewInWindow):
1253         (WebKit::WebView::processDidCrash):
1254         (WebKit::WebView::didRelaunchProcess):
1255         (WebKit::WebView::pageClosed):
1256         (WebKit::WebView::toolTipChanged):
1257         (WebKit::WebView::setCursor):
1258         (WebKit::WebView::setCursorHiddenUntilMouseMoves):
1259         (WebKit::WebView::registerEditCommand):
1260         (WebKit::WebView::clearAllEditCommands):
1261         (WebKit::WebView::canUndoRedo):
1262         (WebKit::WebView::executeUndoRedo):
1263         (WebKit::WebView::screenToWindow):
1264         (WebKit::WebView::windowToScreen):
1265         (WebKit::WebView::doneWithKeyEvent):
1266         (WebKit::WebView::doneWithTouchEvent):
1267         (WebKit::WebView::createPopupMenuProxy):
1268         (WebKit::WebView::createContextMenuProxy):
1269         (WebKit::WebView::createColorChooserProxy):
1270         (WebKit::WebView::setFindIndicator):
1271         (WebKit::WebView::enterAcceleratedCompositingMode):
1272         (WebKit::WebView::exitAcceleratedCompositingMode):
1273         (WebKit::WebView::updateAcceleratedCompositingMode):
1274         (WebKit::WebView::didCommitLoadForMainFrame):
1275         (WebKit::WebView::didFinishLoadingDataForCustomRepresentation):
1276         (WebKit::WebView::customRepresentationZoomFactor):
1277         (WebKit::WebView::setCustomRepresentationZoomFactor):
1278         (WebKit::WebView::flashBackingStoreUpdates):
1279         (WebKit::WebView::findStringInCustomRepresentation):
1280         (WebKit::WebView::countStringMatchesInCustomRepresentation):
1281         (WebKit::WebView::updateTextInputState):
1282         (WebKit::WebView::handleDownloadRequest):
1283         (WebKit::WebView::convertToDeviceSpace):
1284         (WebKit::WebView::convertToUserSpace):
1285         (WebKit::WebView::didChangeViewportProperties):
1286         (WebKit::WebView::pageDidRequestScroll):
1287         (WebKit::WebView::didRenderFrame):
1288         (WebKit::WebView::pageTransitionViewportReady):
1289         * UIProcess/efl/WebView.h:
1290         (WebKit):
1291         (WebView):
1292         (WebKit::WebView::pageRef):
1293         (WebKit::WebView::page):
1294         (WebKit::WebView::canScrollView):
1295
1296 2013-02-15  Milian Wolff  <milian.wolff@kdab.com>
1297
1298         [Qt] Restore URL Scheme Delegates after QtWebProcess crash
1299         https://bugs.webkit.org/show_bug.cgi?id=108808
1300
1301         When the QtWebProcess crashes, the registered URL Scheme
1302         Delegates are not properly restored over IPC in the newly
1303         launched process instance.
1304
1305         Reviewed by Simon Hausmann.
1306
1307         * UIProcess/API/qt/qquickwebview.cpp:
1308         (QQuickWebViewPrivate::didRelaunchProcess):
1309         (QQuickWebViewPrivate::updateSchemeDelegates):
1310         * UIProcess/API/qt/qquickwebview_p_p.h:
1311         (QQuickWebViewPrivate):
1312
1313 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1314
1315         Simplify hitTestResultAtPoint and nodesFromRect APIs
1316         https://bugs.webkit.org/show_bug.cgi?id=95720
1317
1318         Reviewed by Julien Chaffraix and Maciej Stachowiak.
1319
1320         Update calls to new API and update exported symbols.
1321
1322         * WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp:
1323         (WebKit::InjectedBundleNavigationAction::InjectedBundleNavigationAction):
1324         * WebProcess/WebPage/WebFrame.cpp:
1325         (WebKit::WebFrame::hitTest):
1326         * WebProcess/WebPage/WebPage.cpp:
1327         (WebKit::handleContextMenuEvent):
1328         (WebKit::WebPage::highlightPotentialActivation):
1329         (WebKit::WebPage::findZoomableAreaForPoint):
1330         * WebProcess/WebPage/mac/WebPageMac.mm:
1331         (WebKit::WebPage::characterIndexForPoint):
1332         (WebKit::WebPage::performDictionaryLookupAtLocation):
1333         (WebKit::WebPage::shouldDelayWindowOrderingEvent):
1334         (WebKit::WebPage::acceptsFirstMouse):
1335
1336 2013-02-14  Huang Dongsung  <luxtella@company100.net>
1337
1338         [WK2] Rename from scrollOffset to scrollDelta in WebChromeClient.
1339         https://bugs.webkit.org/show_bug.cgi?id=109885
1340
1341         Reviewed by Simon Fraser.
1342
1343         Chrome sends a scroll delta to WebChromeClient but WebChromeClient names it
1344         scrollOffset. So this patch corrects this misnaming.
1345
1346         In addition, all subclasses of LayerTreeHost don't use the misnamed
1347         scrollOffset in scrollNonCompositedContents(), so this patch removes the
1348         scrollOffset argument.
1349
1350         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1351         (WebKit::WebChromeClient::scroll):
1352         * WebProcess/WebCoreSupport/WebChromeClient.h:
1353         (WebChromeClient):
1354         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1355         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
1356         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1357         (CoordinatedLayerTreeHost):
1358         * WebProcess/WebPage/DrawingArea.h:
1359         (DrawingArea):
1360         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1361         (WebKit::DrawingAreaImpl::scroll):
1362         * WebProcess/WebPage/DrawingAreaImpl.h:
1363         (DrawingAreaImpl):
1364         * WebProcess/WebPage/LayerTreeHost.h:
1365         (LayerTreeHost):
1366         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
1367         (WebKit::LayerTreeHostGtk::scrollNonCompositedContents):
1368         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
1369         (LayerTreeHostGtk):
1370         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
1371         (LayerTreeHostMac):
1372         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
1373         (WebKit::LayerTreeHostMac::scrollNonCompositedContents):
1374         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
1375         (RemoteLayerTreeDrawingArea):
1376         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
1377         (WebKit::RemoteLayerTreeDrawingArea::scroll):
1378         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1379         (TiledCoreAnimationDrawingArea):
1380         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1381         (WebKit::TiledCoreAnimationDrawingArea::scroll):
1382
1383 2013-02-14  Alexey Proskuryakov  <ap@apple.com>
1384
1385         <rdar://problem/13161700> REGRESSION: Safari is unable to make SSL connections
1386         when running from recovery partition
1387
1388         Reviewed by Sam Weinig.
1389
1390         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
1391         * WebProcess/com.apple.WebProcess.sb.in:
1392         Re-added /private/var/db/mds/system rules lost in r141445.
1393
1394 2013-02-14  Anders Carlsson  <andersca@apple.com>
1395
1396         Add WKContextIsPlugInUpdateAvailable
1397         https://bugs.webkit.org/show_bug.cgi?id=109862
1398         <rdar://problem/13173140>
1399
1400         Reviewed by Sam Weinig.
1401
1402         * UIProcess/API/C/mac/WKContextPrivateMac.h:
1403         * UIProcess/API/C/mac/WKContextPrivateMac.mm: Renamed from Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.cpp.
1404         (WKContextGetProcessSuppressionEnabled):
1405         (WKContextSetProcessSuppressionEnabled):
1406         (WKContextIsPlugInUpdateAvailable):
1407         * WebKit2.xcodeproj/project.pbxproj:
1408
1409 2013-02-14  Zan Dobersek  <zdobersek@igalia.com>
1410
1411         [GTK] Errors when building WebKit2 with Clang
1412         https://bugs.webkit.org/show_bug.cgi?id=109603
1413
1414         Reviewed by Alexey Proskuryakov.
1415
1416         * UIProcess/API/gtk/WebKitUIClient.cpp:
1417         (setWindowFrame): Cast the position parameters to the integer type when constructing the GdkRectangle.
1418         * UIProcess/Authentication/WebCredential.cpp: Add an empty implementation of the newly specified destructor.
1419         * UIProcess/Authentication/WebCredential.h: Work around the incomplete WebCertificateInfo type errors thrown in the inline
1420         RefPtr destructor of the m_certificateInfo class member by defining a destructor in the class.
1421         * WebProcess/WebCoreSupport/WebEditorClient.h: The GTK-specific methods are not virtual and as such cannot be overriden.
1422         The OVERRIDE keywords are thus unnecessary.
1423
1424 2013-02-14  David Kilzer  <ddkilzer@apple.com>
1425
1426         [Mac] Clean up WARNING_CFLAGS
1427         <http://webkit.org/b/109747>
1428         <rdar://problem/13208373>
1429
1430         Reviewed by Mark Rowe.
1431
1432         * Configurations/Base.xcconfig: Use
1433         GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
1434         -Wshorten-64-to-32 rather than WARNING_CFLAGS.
1435
1436 2013-02-14  Sam Weinig  <sam@webkit.org>
1437
1438         Add conversions between ObjC and C DOM wrappers
1439         <rdar://problem/13205468>
1440         https://bugs.webkit.org/show_bug.cgi?id=109851
1441
1442         Reviewed by Anders Carlsson.
1443
1444         * WebKit2.xcodeproj/project.pbxproj:
1445         * WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp:
1446         (WKBundleRangeHandleCreate):
1447         * WebProcess/InjectedBundle/API/c/WKBundleRangeHandlePrivate.h: Added.
1448         * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm:
1449         (-[WKDOMNode _copyBundleNodeHandleRef]):
1450         * WebProcess/InjectedBundle/API/mac/WKDOMNodePrivate.h: Added.
1451         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
1452         (-[WKDOMRange _copyBundleRangeHandleRef]):
1453         * WebProcess/InjectedBundle/API/mac/WKDOMRangePrivate.h: Added.
1454         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
1455         (WebKit::InjectedBundleRangeHandle::getOrCreate):
1456         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h:
1457         (InjectedBundleRangeHandle):
1458
1459 2013-02-13  Anders Carlsson  <andersca@apple.com>
1460
1461         Remove StringPairVector
1462         https://bugs.webkit.org/show_bug.cgi?id=109778
1463
1464         Reviewed by Ryosuke Niwa.
1465
1466         Our message generation scripts can handle nested template parameter types now,
1467         so we no longer need to use StringPairVector.
1468
1469         * Shared/StringPairVector.h: Removed.
1470         * UIProcess/WebPageProxy.cpp:
1471         (WebKit::WebPageProxy::willSubmitForm):
1472         * UIProcess/WebPageProxy.h:
1473         (WebPageProxy):
1474         * UIProcess/WebPageProxy.messages.in:
1475         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1476         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
1477
1478 2013-02-13  Dean Jackson  <dino@apple.com>
1479
1480         PlugIn Autostart should expire in 30 days, not half a day
1481         https://bugs.webkit.org/show_bug.cgi?id=109767
1482
1483         Reviewed by Brian Weinstein.
1484
1485         We forgot to multiply by 60 seconds in a minute.
1486
1487         * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
1488
1489 2013-02-13  Anders Carlsson  <andersca@apple.com>
1490
1491         Message generation should handle nested templates
1492         https://bugs.webkit.org/show_bug.cgi?id=109771
1493
1494         Reviewed by Ryosuke Niwa.
1495
1496         Make it possible to have nested class template types as message parameters and
1497         correctly gather all the needed headers and argument coder headers.
1498
1499         * Scripts/webkit2/messages.py:
1500         (class_template_headers):
1501         Recursively figure out the types and template headers needed for a given type.
1502
1503         (argument_coder_headers_for_type):
1504         (headers_for_type):
1505         Call class_template_headers.
1506
1507         * Scripts/webkit2/messages_unittest.py:
1508         (CoreIPC):
1509         * Scripts/webkit2/parser.py:
1510         (split_parameters_string):
1511         (parse_parameters_string):
1512
1513 2013-02-13  David Farler  <dfarler@apple.com>
1514
1515         Make WebKit2 Derived Sources work with SDK identifiers too
1516         https://bugs.webkit.org/show_bug.cgi?id=109763
1517
1518         Reviewed by David Kilzer.
1519
1520         * WebKit2.xcodeproj/project.pbxproj: Pass SDKROOT=${SDKROOT} to DerivedSources.make
1521
1522 2013-02-13  Csaba Osztrogonác  <ossy@webkit.org>
1523
1524         One more buildfix for !ENABLE(PLUGIN_PROCESS) platforms.
1525
1526         * WebProcess/WebProcess.cpp:
1527         (WebKit::WebProcess::WebProcess):
1528
1529 2013-02-13  Csaba Osztrogonác  <ossy@webkit.org>
1530
1531         Unreviewed Qt-Mac and Qt-Win buildfix after r142768.
1532
1533         * WebProcess/WebProcess.h:
1534         (WebKit):
1535
1536 2013-02-13  Adam Barth  <abarth@webkit.org>
1537
1538         Remove bogus ASSERT in WebFrameProxy::didStartProvisionalLoad
1539         https://bugs.webkit.org/show_bug.cgi?id=109733
1540
1541         Reviewed by Sam Weinig.
1542
1543         After http://trac.webkit.org/changeset/142555, this ASSERT is
1544         triggering on these tests:
1545
1546         fast/dom/window-load-crash.html
1547         fast/frames/seamless/seamless-hyperlink-named.html
1548         fast/frames/seamless/seamless-hyperlink.html
1549
1550         The ASSERT appears to be bogus. This patch removes it.
1551
1552         * UIProcess/WebFrameProxy.cpp:
1553         (WebKit::WebFrameProxy::didStartProvisionalLoad):
1554
1555 2013-02-13  Sam Weinig  <sam@webkit.org>
1556
1557         Consolidate main functions in WebKit2 now that they are all identical
1558         https://bugs.webkit.org/show_bug.cgi?id=109748
1559
1560         Reviewed by Anders Carlsson.
1561
1562         - Consolidates all the LegacyProcess main functions into ChildProcessMain.mm
1563         - Consolidates all the XPCService main functions into XPCServiceMain.mm and XPCServiceMain.Development.mm
1564         - Rename existing ChildProcessMain.h/mm to ChildProcessEntryPoint.h/mm to match the XPCService ones.
1565         - Switch LegacyProcess to use the "entry point in the plist" idiom, instead of hard coding each one, again
1566           matching the XPCService.
1567
1568         * Configurations/BaseLegacyProcess.xcconfig: Add base configuration to hold common legacy process options.
1569         * Configurations/BaseXPCService.xcconfig:
1570         * Configurations/NetworkProcess.xcconfig:
1571         * Configurations/OfflineStorageProcess.xcconfig:
1572         * Configurations/PluginProcess.xcconfig:
1573         * Configurations/SharedWorkerProcess.xcconfig:
1574         * Configurations/WebContentProcess.xcconfig: Renamed form  WebProcess.xcconfig.
1575         * NetworkProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1576         * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm:
1577         * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMainBootstrapper.cpp: Removed.
1578         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm: Removed.
1579         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm: Removed.
1580         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1581         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMain.mm:
1582         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMainBootstrapper.cpp: Removed.
1583         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/OfflineStorageServiceMain.Development.mm: Removed.
1584         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/OfflineStorageServiceMain.mm: Removed.
1585         * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1586         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
1587         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMainBootstrapper.cpp: Removed.
1588         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm: Removed.
1589         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm: Removed.
1590         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h: 
1591         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm: 
1592         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h: Removed.
1593         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm: Replaced.
1594         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMainBootstrapper.h: Removed.
1595         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h: Removed.
1596         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h: Removed.
1597         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
1598         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
1599         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1600         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm:
1601         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMainBootstrapper.cpp: Removed.
1602         * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1603         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
1604         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMainBootstrapper.cpp: Removed.
1605         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm: Removed.
1606         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm: Removed.
1607         * WebKit2.xcodeproj/project.pbxproj:
1608
1609 2013-02-13  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1610
1611         [EFL][WK2] Stop using WebString in ewk_cookie_manager, ewk_form_submission_request and ewk_text_checker
1612         https://bugs.webkit.org/show_bug.cgi?id=108794
1613
1614         Reviewed by Alexey Proskuryakov.
1615
1616         Stop using WebString in ewk_cookie_manager, ewk_form_submission_request
1617         and ewk_text_checker as it is internal C++ API. WKString and
1618         WKEinaSharedString are used instead.
1619
1620         * UIProcess/API/cpp/efl/WKEinaSharedString.cpp:
1621         (WKEinaSharedString::leakString): Add leakString() method to
1622         WKEinaSharedString so that we can conveniently convert a WKString to a
1623         Eina shared string and take ownership of it.
1624         * UIProcess/API/cpp/efl/WKEinaSharedString.h:
1625         * UIProcess/API/efl/ewk_cookie_manager.cpp:
1626         (getHostnamesWithCookiesCallback):
1627         * UIProcess/API/efl/ewk_form_submission_request.cpp:
1628         (EwkFormSubmissionRequest::copyFieldValue):
1629         (ewk_form_submission_request_field_names_get):
1630         (ewk_form_submission_request_field_value_get):
1631         * UIProcess/API/efl/ewk_form_submission_request_private.h:
1632         (EwkFormSubmissionRequest):
1633         * UIProcess/API/efl/ewk_text_checker.cpp:
1634         (checkSpellingOfString):
1635         (guessesForWord):
1636         (learnWord):
1637         (ignoreWord):
1638         * UIProcess/API/efl/tests/test_ewk2_eina_shared_string.cpp:
1639         (TEST_F): Add API test for new WKEinaSharedString::leakString() method.
1640
1641 2013-02-13  Anders Carlsson  <andersca@apple.com>
1642
1643         Remove Connection::QueueClient
1644         https://bugs.webkit.org/show_bug.cgi?id=109744
1645
1646         Reviewed by Sam Weinig.
1647
1648         * Platform/CoreIPC/Connection.cpp:
1649         (CoreIPC::Connection::processIncomingMessage):
1650         (CoreIPC::Connection::connectionDidClose):
1651         * Platform/CoreIPC/Connection.h:
1652         (Connection):
1653
1654 2013-02-13  Anders Carlsson  <andersca@apple.com>
1655
1656         Try to fix the Lion build.
1657
1658         * WebProcess/WebPage/EventDispatcher.h:
1659         (EventDispatcher):
1660
1661 2013-02-13  Anders Carlsson  <andersca@apple.com>
1662
1663         Remove support for the DispatchOnConnectionQueue message attribute
1664         https://bugs.webkit.org/show_bug.cgi?id=109743
1665
1666         Reviewed by Sam Weinig.
1667
1668         * Platform/CoreIPC/HandleMessage.h:
1669         (CoreIPC):
1670         * Scripts/webkit2/messages.py:
1671         (handler_function):
1672         (generate_message_handler):
1673         * Scripts/webkit2/messages_unittest.py:
1674
1675 2013-02-13  Anders Carlsson  <andersca@apple.com>
1676
1677         StorageManager should be a WorkQueueMessageReceiver
1678         https://bugs.webkit.org/show_bug.cgi?id=109741
1679
1680         Reviewed by Sam Weinig.
1681
1682         * UIProcess/Storage/StorageManager.cpp:
1683         (WebKit::StorageManager::processWillOpenConnection):
1684         (WebKit::StorageManager::processWillCloseConnection):
1685         (WebKit::StorageManager::createStorageArea):
1686         (WebKit::StorageManager::destroyStorageArea):
1687         * UIProcess/Storage/StorageManager.h:
1688         (StorageManager):
1689         * UIProcess/Storage/StorageManager.messages.in:
1690
1691 2013-02-13  Anders Carlsson  <andersca@apple.com>
1692
1693         EventDispatcher should be a WorkQueueMessageReceiver
1694         https://bugs.webkit.org/show_bug.cgi?id=109736
1695
1696         Reviewed by Andreas Kling.
1697
1698         * WebProcess/WebPage/EventDispatcher.cpp:
1699         (WebKit::EventDispatcher::create):
1700         (WebKit):
1701         (WebKit::EventDispatcher::EventDispatcher):
1702         (WebKit::EventDispatcher::initializeConnection):
1703         (WebKit::EventDispatcher::wheelEvent):
1704         (WebKit::EventDispatcher::gestureEvent):
1705         * WebProcess/WebPage/EventDispatcher.h:
1706         (EventDispatcher):
1707         * WebProcess/WebPage/EventDispatcher.messages.in:
1708         * WebProcess/WebProcess.cpp:
1709         (WebKit::WebProcess::WebProcess):
1710         (WebKit::WebProcess::initializeConnection):
1711         * WebProcess/WebProcess.h:
1712         (WebKit):
1713         (WebKit::WebProcess::eventDispatcher):
1714         (WebProcess):
1715
1716 2013-02-13  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1717
1718         Unreviewed build fix after r142768.
1719
1720         r142768 broke the EFL WK2 build due to wrong member initialization
1721         order in the WebProcess constructor initialization list.
1722
1723         * WebProcess/WebProcess.cpp:
1724         (WebKit::WebProcess::WebProcess):
1725
1726 2013-02-13  Anders Carlsson  <andersca@apple.com>
1727
1728         Make PluginProcessConnectionManager a WorkQueueMessageReceiver
1729         https://bugs.webkit.org/show_bug.cgi?id=109727
1730
1731         Reviewed by Andreas Kling.
1732
1733         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
1734         (WebKit::PluginProcessConnectionManager::create):
1735         (WebKit):
1736         (WebKit::PluginProcessConnectionManager::PluginProcessConnectionManager):
1737         (WebKit::PluginProcessConnectionManager::initializeConnection):
1738         (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
1739         * WebProcess/Plugins/PluginProcessConnectionManager.h:
1740         (PluginProcessConnectionManager):
1741         * WebProcess/Plugins/PluginProcessConnectionManager.messages.in:
1742         * WebProcess/WebProcess.cpp:
1743         (WebKit::WebProcess::WebProcess):
1744         (WebKit::WebProcess::initializeConnection):
1745         (WebKit::WebProcess::pluginProcessConnectionManager):
1746         * WebProcess/WebProcess.h:
1747         (WebKit):
1748         (WebProcess):
1749
1750 2013-02-13  Anders Carlsson  <andersca@apple.com>
1751
1752         Make SecItemShimProxy be a WorkQueueMessageReceiver
1753         https://bugs.webkit.org/show_bug.cgi?id=109719
1754
1755         Reviewed by Sam Weinig.
1756
1757         This adds a WantsConnection message attribute to be used for messages whose handlers
1758         should take the connection the message was delivered to.
1759         
1760         * Platform/CoreIPC/HandleMessage.h:
1761         (CoreIPC::handleMessage):
1762         Add new handleMessage overload.
1763         
1764         * Scripts/webkit2/messages.py:
1765         (async_message_statement):
1766         (generate_message_handler):
1767         Handle the WantsMessage attribute.
1768
1769         * UIProcess/mac/SecItemShimProxy.cpp:
1770         (WebKit::SecItemShimProxy::shared):
1771         Use dispatch_once and adoptRef.
1772
1773         (WebKit::SecItemShimProxy::SecItemShimProxy):
1774         Initialize the queue.
1775
1776         (WebKit::SecItemShimProxy::initializeConnection):
1777         Add the proxy as a work queue message receiver.
1778
1779         (WebKit::SecItemShimProxy::secItemRequest):
1780         This no longer needs to call out to a dispatch queue, it's already on a queue.
1781
1782         * UIProcess/mac/SecItemShimProxy.messages.in:
1783         This doesn't need to be a legacy receiver. Also, add the WantsConnection message.
1784
1785 2013-02-13  Sheriff Bot  <webkit.review.bot@gmail.com>
1786
1787         Unreviewed, rolling out r142736.
1788         http://trac.webkit.org/changeset/142736
1789         https://bugs.webkit.org/show_bug.cgi?id=109716
1790
1791         Broke ABI, nightly builds crash on launch (Requested by ap on
1792         #webkit).
1793
1794         * Shared/APIClientTraits.cpp:
1795         (WebKit):
1796         * Shared/APIClientTraits.h:
1797         * UIProcess/API/C/WKPage.h:
1798         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
1799         (attachLoaderClientToView):
1800         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
1801         * WebProcess/qt/QtBuiltinBundlePage.cpp:
1802         (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
1803
1804 2013-02-13  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1805
1806         [WK2][EFL] Cleanup of graphics related code in EwkView
1807         https://bugs.webkit.org/show_bug.cgi?id=109377
1808
1809         Reviewed by Anders Carlsson.
1810
1811         * UIProcess/API/efl/EwkView.cpp:
1812         (EwkView::EwkView):
1813
1814             Initialize the evasGL dependencies here and
1815             set m_isAccelerated to false if this fails.
1816
1817             Set the coordinated graphics scene as active
1818             when using fixed layout.
1819
1820         (EwkView::setSize):
1821
1822             Add a method to set the size and user-viewport
1823             transform from the outside. The idea is moving
1824             this to our pure WK C API in the future.
1825
1826         (EwkView::transformFromScene):
1827         (EwkView::transformToScene):
1828
1829             Update the transform methods to use the user-
1830             viewport transform.
1831
1832         (EwkView::paintToCurrentGLContext):
1833         (EwkView::paintToCairoSurface):
1834
1835             Add methods to paint to either the current GL context
1836             or to a given cairo_surface_t (for software fallback
1837             cases).
1838
1839         (EwkView::displayTimerFired):
1840
1841             Clean up and use the two above methods.
1842
1843         (EwkView::scheduleUpdateDisplay):
1844
1845             Use the new size() methods instead of using the 
1846             smart-object data directly.
1847
1848         (EwkView::createGLSurface):
1849
1850             Make this method use size() to query the surface size
1851             and avoid creating the context (done in ctor now).
1852             Also avoid using the smart-object data directly.
1853
1854         (EwkView::enterAcceleratedCompositingMode):
1855         (EwkView::exitAcceleratedCompositingMode):
1856
1857             Turn on/off the use of the coord. graphics scene.
1858
1859         (EwkView::handleEvasObjectCalculate):
1860
1861             Use the new setSize and setUserViewportTransform.
1862
1863         (EwkView::takeSnapshot):
1864         * UIProcess/API/efl/EwkView.h:
1865         (WebCore):
1866         (EwkView):
1867         (EwkView::size):
1868         (EwkView::setUserViewportTransform):
1869         (EwkView::userViewportTransform):
1870
1871             Add the new method definitions and rename isHardwareAccelerated
1872             to isAccelerated which fits better with the naming in WebCore.
1873
1874 2013-02-13  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1875
1876         [EFL][WK2] Introduce WKViewClient C API
1877         https://bugs.webkit.org/show_bug.cgi?id=109559
1878
1879         Reviewed by Anders Carlsson.
1880
1881         This patch introduces the WKViewClient C API for EFL's WKView. The purpose of
1882         this new C API is to eventually remove the interdependency between EFL's
1883         PageClient and EwkView. When completed, PageClient should only interact with
1884         WebView and not be aware of EwkView so that we have a clean separation between
1885         internal WebKit2 classes and our EFL Ewk API implementation.
1886
1887         This patch is only a first step towards this goal as there is a lot of work
1888         to do to achieve complete separation between EwkView and PageClient. The purpose
1889         of this patch is to introduce the needed architecture which will later be
1890         extended by introducing new WKViewClient callbacks.
1891
1892         * PlatformEfl.cmake: Add new ViewClientEfl.cpp and WebViewClient.cpp to EFL's CMake
1893         configuration.
1894         * UIProcess/API/C/efl/WKView.cpp:
1895         (WKViewSetViewClient):
1896         * UIProcess/API/C/efl/WKView.h: Introduce new WKViewClient C API.
1897         * UIProcess/API/efl/EwkView.cpp:
1898         (EwkView::EwkView): Initialize ViewClientEfl.
1899         * UIProcess/API/efl/EwkView.h: Add new ViewClientEfl member.
1900         (WebKit):
1901         (EwkView):
1902         * UIProcess/API/efl/EwkViewCallbacks.h: Update ContentsSizeChanged smart callback to
1903         accept a WKSize in parameter instead of an IntRect.
1904         * UIProcess/efl/PageClientBase.cpp: Start calling WKViewClient callbacks instead of
1905         interacting directly with EwkView to avoid violating API layering.
1906         (WebKit::PageClientBase::view):
1907         (WebKit::PageClientBase::setViewNeedsDisplay):
1908         * UIProcess/efl/PageClientBase.h:
1909         (WebKit):
1910         (PageClientBase):
1911         * UIProcess/efl/PageClientDefaultImpl.cpp: Start calling WKViewClient callbacks instead of
1912         interacting directly with EwkView to avoid violating API layering.
1913         (WebKit::PageClientDefaultImpl::didChangeContentsSize):
1914         * UIProcess/efl/PageClientLegacyImpl.cpp: Start calling WKViewClient callbacks instead of
1915         interacting directly with EwkView to avoid violating API layering.
1916         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
1917         * UIProcess/efl/ViewClientEfl.cpp:
1918         (WebKit):
1919         (WebKit::ViewClientEfl::toEwkView):
1920         (WebKit::ViewClientEfl::viewNeedsDisplay):
1921         (WebKit::ViewClientEfl::didChangeContentsSize):
1922         (WebKit::ViewClientEfl::ViewClientEfl):
1923         (WebKit::ViewClientEfl::~ViewClientEfl):
1924         * UIProcess/efl/ViewClientEfl.h: Introduce new ViewClientEfl which handles WKViewClient callbacks
1925         and interacts with EwkView.
1926         (WebKit):
1927         (ViewClientEfl):
1928         (WebKit::ViewClientEfl::create):
1929         * UIProcess/efl/WebView.cpp:
1930         (WebKit::WebView::initializeClient):
1931         (WebKit):
1932         (WebKit::WebView::setViewNeedsDisplay):
1933         (WebKit::WebView::didChangeContentsSize):
1934         * UIProcess/efl/WebView.h: Add new WebViewClient member and corresponding methods to interact
1935         with it.
1936         (WebView):
1937         * UIProcess/efl/WebViewClient.cpp:
1938         (WebKit):
1939         (WebKit::WebViewClient::viewNeedsDisplay):
1940         (WebKit::WebViewClient::didChangeContentsSize):
1941         * UIProcess/efl/WebViewClient.h: Add new WebViewClient APIClient for WKViewClient.
1942         (WebCore):
1943         (WebKit):
1944
1945 2013-02-13  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1946
1947         [WK2][EFL][WTR] Regression(r141836): WTR crashes on exit
1948         https://bugs.webkit.org/show_bug.cgi?id=109456
1949
1950         Reviewed by Anders Carlsson.
1951
1952         WebView destructor now considers the situation if its WebPageProxy
1953         instance had been closed from outside the class (explicitly
1954         by client code).
1955
1956         * UIProcess/efl/WebView.cpp:
1957         (WebKit::WebView::~WebView):
1958
1959 2013-02-13  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1960
1961         [WK2] Remove web intents callbacks
1962         https://bugs.webkit.org/show_bug.cgi?id=109654
1963
1964         Reviewed by Benjamin Poulain.
1965
1966         Web intents was removed by r142549.
1967
1968         * Shared/APIClientTraits.cpp:
1969         (WebKit):
1970         * Shared/APIClientTraits.h:
1971         * UIProcess/API/C/WKPage.h:
1972         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
1973         (attachLoaderClientToView):
1974         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
1975         * WebProcess/qt/QtBuiltinBundlePage.cpp:
1976         (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
1977
1978 2013-02-12  Adenilson Cavalcanti  <cavalcantii@gmail.com>
1979
1980         [WK2] Page reloading will crash UIProcess after WebProcess was killed
1981         https://bugs.webkit.org/show_bug.cgi?id=109305
1982
1983         Reviewed by Benjamin Poulain.
1984
1985         Re-initialize the pointer to a WebInspectorProxy object before calling
1986         initializeWebPage().
1987
1988         When the WebProcess crashes, WebPageProxy::processDidCrash() will
1989         set WebInspectorProxy pointer to null, which later is accessed by
1990         initializeWebPage(). This patch avoids a crash scenario where
1991         calls into a null pointer would be made.
1992
1993         * UIProcess/WebPageProxy.cpp:
1994         (WebKit::WebPageProxy::reattachToWebProcess):
1995
1996 2013-02-12  Joseph Pecoraro  <pecoraro@apple.com>
1997
1998         [iOS] Enable PAGE_VISIBILITY_API
1999         https://bugs.webkit.org/show_bug.cgi?id=109399
2000
2001         Reviewed by David Kilzer.
2002
2003         * Configurations/FeatureDefines.xcconfig:
2004
2005 2013-02-12  Brady Eidson  <beidson@apple.com>
2006
2007         Update a comment in NetworkProcess to be more accurate.
2008
2009         Rubberstamped by Sam Weinig.
2010
2011         * NetworkProcess/NetworkProcess.cpp:
2012         (WebKit::NetworkProcess::didClose):
2013
2014 2013-02-12  Anders Carlsson  <andersca@apple.com>
2015
2016         SecItemShim should be a WorkQueueMessageReceiver
2017         https://bugs.webkit.org/show_bug.cgi?id=109636
2018
2019         Reviewed by Sam Weinig.
2020
2021         * Platform/CoreIPC/Connection.cpp:
2022         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
2023         Add a helper function for dispatching a work queue message receiver message.
2024
2025         (CoreIPC::Connection::processIncomingMessage):
2026         Check if there are any work queue message receivers registered for this message.
2027
2028         * Shared/mac/SecItemShim.cpp:
2029         (WebKit::SecItemShim::shared):
2030         Use dispatch_once instead of the AtomicallyInitializedStatic macro.
2031
2032         (WebKit::SecItemShim::SecItemShim):
2033         Initialize the queue.
2034
2035         (WebKit::SecItemShim::secItemResponse):
2036         Remove the connection parameter.
2037
2038         (WebKit::SecItemShim::initializeConnection):
2039         Register the shim object as a work queue message receiver.
2040
2041         * Shared/mac/SecItemShim.h:
2042         Inherit from WorkQueueMessageReceiver.
2043
2044         * Shared/mac/SecItemShim.messages.in:
2045         Remove LegacyReceiver and DispatchOnConnectionQueue.
2046
2047 2013-02-12  Sam Weinig  <sam@webkit.org>
2048
2049         Make Plug-in XPC services "join existing sessions"
2050         <rdar://problem/13196448>
2051
2052         Reviewed by Mark Rowe.
2053
2054         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist:
2055         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist:
2056         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
2057
2058 2013-02-12  Sam Weinig  <sam@webkit.org>
2059
2060         Add skeleton of the OfflineStorageProcess
2061         https://bugs.webkit.org/show_bug.cgi?id=109615
2062
2063         Reviewed by Anders Carlsson.
2064
2065         This adds the skeleton of a new process to contain Database and Local Storage
2066         backends in (hence, offline storage). We're adding a new process, rather than
2067         using the Network or UIProcesses, to allow us to tightly sandbox these activities
2068         away from networking and full filesystem access.
2069
2070         * Configurations/OfflineStorageProcess.xcconfig: Added.
2071         * Configurations/OfflineStorageService.Development.xcconfig: Added.
2072         * Configurations/OfflineStorageService.xcconfig: Added.
2073         * DerivedSources.make:
2074         * OfflineStorageProcess: Added.
2075         * OfflineStorageProcess/EntryPoint: Added.
2076         * OfflineStorageProcess/EntryPoint/mac: Added.
2077         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess: Added.
2078         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/Info.plist: Added.
2079         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMain.mm: Added.
2080         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMainBootstrapper.cpp: Added.
2081         * OfflineStorageProcess/EntryPoint/mac/XPCService: Added.
2082         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService: Added.
2083         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development: Added.
2084         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/Info.plist: Added.
2085         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/OfflineStorageServiceMain.Development.mm: Added.
2086         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/Info.plist: Added.
2087         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/OfflineStorageServiceMain.mm: Added.
2088         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageServiceEntryPoint.mm: Added.
2089         * OfflineStorageProcess/OfflineStorageProcess.cpp: Added.
2090         * OfflineStorageProcess/OfflineStorageProcess.h: Added.
2091         * OfflineStorageProcess/OfflineStorageProcess.messages.in: Added.
2092         * OfflineStorageProcess/mac: Added.
2093         * OfflineStorageProcess/mac/OfflineStorageProcessMac.mm: Added.
2094         (WebKit::OfflineStorageProcess::initializeProcessName):
2095         (WebKit::OfflineStorageProcess::initializeSandbox):
2096         * OfflineStorageProcess/mac/com.apple.WebKit.OfflineStorage.sb: Added.
2097         * Shared/OfflineStorage: Added.
2098         * Shared/OfflineStorage/OfflineStorageProcessCreationParameters.cpp: Added.
2099         * Shared/OfflineStorage/OfflineStorageProcessCreationParameters.h: Added.
2100
2101         * Scripts/webkit2/messages.py:
2102         (struct_or_class):
2103         Added OfflineStorageProcessCreationParameters.
2104
2105         * WebKit2.xcodeproj/project.pbxproj:
2106
2107 2013-02-12  Jinwoo Song  <jinwoo7.song@samsung.com>
2108
2109         [EFL][WK2] Fix build warning after r142579
2110         https://bugs.webkit.org/show_bug.cgi?id=109547
2111
2112         Reviewed by Alexey Proskuryakov.
2113
2114         Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
2115
2116         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2117         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
2118
2119 2013-02-12  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2120
2121         [EFL][WK2] Reenable ewk_auth_request API tests
2122         https://bugs.webkit.org/show_bug.cgi?id=108451
2123
2124         Reviewed by Benjamin Poulain.
2125
2126         ewk_auth_request API tests were temporarily disabled after
2127         the C API for resource loading was removed from WebKit2.
2128         This patches updates the tests so that they no longer rely
2129         on the resource loading events and renables them.
2130
2131         This patch also corrects the naming of the static variables
2132         in the test to follow more closely the WebKit coding style.
2133
2134         * PlatformEfl.cmake:
2135         * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp:
2136         (serverCallback):
2137         (TEST_F):
2138         (onLoadFinished):
2139
2140 2013-02-12  Anders Carlsson  <andersca@apple.com>
2141
2142         Introduce a WorkQueueMessageReceiver class as a replacement for QueueClient
2143         https://bugs.webkit.org/show_bug.cgi?id=109612
2144
2145         Reviewed by Andreas Kling.
2146
2147         * Platform/CoreIPC/Connection.cpp:
2148         (CoreIPC::Connection::addWorkQueueMessageReceiver):
2149         (CoreIPC):
2150         (CoreIPC::Connection::removeWorkQueueMessageReceiver):
2151         (CoreIPC::Connection::addWorkQueueMessageReceiverOnConnectionWorkQueue):
2152         (CoreIPC::Connection::removeWorkQueueMessageReceiverOnConnectionWorkQueue):
2153         * Platform/CoreIPC/Connection.h:
2154         (Connection):
2155
2156 2013-02-12  Csaba Osztrogonác  <ossy@webkit.org>
2157
2158         Typo fix after r142663.
2159
2160         * GNUmakefile.list.am:
2161
2162 2013-02-12  Csaba Osztrogonác  <ossy@webkit.org>
2163
2164         [WK2] Unreviewed trivial buildfix after r142630 and r142651.
2165
2166         * CMakeLists.txt:
2167         * GNUmakefile.list.am:
2168         * Target.pri:
2169         * UIProcess/Plugins/PluginProcessProxy.cpp:
2170         (WebKit::PluginProcessProxy::didFinishLaunching):
2171         * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp:
2172         (WebKit::PluginProcessProxy::platformGetLaunchOptions):
2173         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
2174         (WebKit::PluginProcessProxy::platformGetLaunchOptions):
2175
2176 2013-02-12  Anders Carlsson  <andersca@apple.com>
2177
2178         Change the queue client base class to be private everywhere
2179         https://bugs.webkit.org/show_bug.cgi?id=109604
2180
2181         Reviewed by Andreas Kling.
2182
2183         Move connection queue client registration inside of the respective queue client classes.
2184
2185         Also, it's too late to add queue clients in ChildProcessProxy::didFinishLaunching, so do this in
2186         ChildProcessProxy::connectionWillOpen instead.
2187         
2188         Finally, assert that queue clients are only being added and removed from the client thread.
2189
2190         * NetworkProcess/NetworkProcess.cpp:
2191         (WebKit::NetworkProcess::initializeConnection):
2192         * Platform/CoreIPC/Connection.cpp:
2193         (CoreIPC::Connection::addQueueClient):
2194         (CoreIPC::Connection::removeQueueClient):
2195         * Shared/mac/SecItemShim.cpp:
2196         (WebKit::SecItemShim::initializeConnection):
2197         (WebKit):
2198         * Shared/mac/SecItemShim.h:
2199         (SecItemShim):
2200         * UIProcess/Network/NetworkProcessProxy.cpp:
2201         (WebKit::NetworkProcessProxy::connectionWillOpen):
2202         (WebKit):
2203         (WebKit::NetworkProcessProxy::connectionWillClose):
2204         (WebKit::NetworkProcessProxy::didFinishLaunching):
2205         * UIProcess/Network/NetworkProcessProxy.h:
2206         (NetworkProcessProxy):
2207         * UIProcess/WebProcessProxy.cpp:
2208         (WebKit::WebProcessProxy::connectionWillOpen):
2209         (WebKit::WebProcessProxy::didFinishLaunching):
2210         * UIProcess/mac/SecItemShimProxy.cpp:
2211         (WebKit::SecItemShimProxy::initializeConnection):
2212         (WebKit):
2213         * UIProcess/mac/SecItemShimProxy.h:
2214         (SecItemShimProxy):
2215         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
2216         (WebKit::PluginProcessConnectionManager::initializeConnection):
2217         (WebKit):
2218         * WebProcess/Plugins/PluginProcessConnectionManager.h:
2219         (PluginProcessConnectionManager):
2220         * WebProcess/WebPage/EventDispatcher.cpp:
2221         (WebKit::EventDispatcher::initializeConnection):
2222         (WebKit):
2223         * WebProcess/WebPage/EventDispatcher.h:
2224         (EventDispatcher):
2225         * WebProcess/WebProcess.cpp:
2226         (WebKit::WebProcess::initializeConnection):
2227
2228 2013-02-12  Brady Eidson  <beidson@apple.com>
2229
2230         Add WKContext API to retrieve basic network process statistics
2231         https://bugs.webkit.org/show_bug.cgi?id=109329
2232
2233         Reviewed by Sam Weinig.
2234
2235         This patch adds a WKContextGetStatisticsWithOptions which allows the client to ask for
2236         certain types of statistics.
2237
2238         It also expands the "get statistics" callback mechanism to allow for a statistics request 
2239         to be answered by multiple child processes.
2240
2241         That mechanism still has some rough edges but will eventually allow for getting statistics
2242         from multiple web processes, as well.
2243
2244         * NetworkProcess/HostRecord.cpp:
2245         (WebKit::HostRecord::pendingRequestCount):
2246         (WebKit::HostRecord::activeLoadCount):
2247         * NetworkProcess/HostRecord.h:
2248
2249         * NetworkProcess/NetworkProcess.cpp:
2250         (WebKit::NetworkProcess::getNetworkProcessStatistics):
2251         * NetworkProcess/NetworkProcess.h:
2252         * NetworkProcess/NetworkProcess.messages.in:
2253
2254         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
2255         (WebKit::NetworkResourceLoadScheduler::hostsPendingCount):
2256         (WebKit::NetworkResourceLoadScheduler::loadsPendingCount):
2257         (WebKit::NetworkResourceLoadScheduler::hostsActiveCount):
2258         (WebKit::NetworkResourceLoadScheduler::loadsActiveCount):
2259         * NetworkProcess/NetworkResourceLoadScheduler.h:
2260
2261         * Shared/Authentication/AuthenticationManager.h:
2262         (WebKit::AuthenticationManager::outstandingAuthenticationChallengeCount):
2263         * Shared/Downloads/DownloadManager.h:
2264
2265         * UIProcess/API/C/WKContext.cpp:
2266         (WKContextGetStatistics):
2267         (WKContextGetStatisticsWithOptions):
2268         * UIProcess/API/C/WKContext.h:
2269
2270         * UIProcess/StatisticsRequest.cpp: Added.
2271         (WebKit::StatisticsRequest::StatisticsRequest):
2272         (WebKit::StatisticsRequest::~StatisticsRequest):
2273         (WebKit::StatisticsRequest::addOutstandingRequest):
2274         (WebKit::addToDictionaryFromHashMap):
2275         (WebKit::createDictionaryFromHashMap):
2276         (WebKit::StatisticsRequest::completedRequest):
2277         * UIProcess/StatisticsRequest.h: Added.
2278         (WebKit::StatisticsRequest::create):
2279
2280         * UIProcess/WebContext.cpp:
2281         (WebKit::WebContext::networkingProcessConnection):
2282         (WebKit::WebContext::getStatistics):
2283         (WebKit::WebContext::requestWebContentStatistics):
2284         (WebKit::WebContext::requestNetworkingStatistics):
2285         (WebKit::WebContext::didGetStatistics):
2286         * UIProcess/WebContext.h:
2287         * UIProcess/WebContext.messages.in:
2288
2289         * WebProcess/WebProcess.cpp:
2290         (WebKit::WebProcess::getWebCoreStatistics):
2291
2292         * WebKit2.xcodeproj/project.pbxproj:
2293
2294 2013-02-12  Anders Carlsson  <andersca@apple.com>
2295
2296         Build fix.
2297
2298         Add back the files to the Xcode project that were removed in r142580.
2299
2300         * WebKit2.xcodeproj/project.pbxproj:
2301         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
2302
2303 2013-02-12  Jessie Berlin  <jberlin@apple.com>
2304
2305         Build fix after r142540 and r142518
2306
2307         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
2308         (WebKit::PluginProcessConnectionManager::didReceivePluginProcessConnectionManagerMessageOnConnectionWorkQueue):
2309         This function was added to the header in r142518 but not implemented in that revision.
2310         It wasn't a problem until r142540 started using it.
2311         Add a stub implementation for it.
2312
2313 2013-02-11  Brady Eidson  <beidson@apple.com>
2314
2315         Make PluginProcessProxy a ChildProcessProxy.
2316         https://bugs.webkit.org/show_bug.cgi?id=109513
2317
2318         Reviewed by Anders Carlsson.
2319
2320         * Shared/ChildProcessProxy.h: Inherit from ThreadSafeRefCounted.
2321         * UIProcess/Network/NetworkProcessProxy.h: Don't inherit from RefCounted.
2322         * UIProcess/WebProcessProxy.h: Don't inherit from ThreadSafeRefCounted
2323         * UIProcess/Plugins/PluginProcessProxy.h: Don't inherit from RefCounted, do inherit from ChildProcessProxy
2324
2325         Rely on ChildProcessProxy for process launcher management and launch options:
2326         * UIProcess/Plugins/PluginProcessProxy.cpp:
2327         (WebKit::PluginProcessProxy::PluginProcessProxy):
2328         (WebKit::PluginProcessProxy::getLaunchOptions):
2329         (WebKit::PluginProcessProxy::getPluginProcessConnection):
2330         (WebKit::PluginProcessProxy::getSitesWithData):
2331         (WebKit::PluginProcessProxy::clearSiteData):
2332         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
2333         (WebKit::PluginProcessProxy::platformGetLaunchOptions):
2334         (WebKit::PluginProcessProxy::getPluginProcessSerialNumber):
2335
2336 2013-02-11  Alexey Proskuryakov  <ap@apple.com>
2337
2338         <rdar://problem/13196331> NetworkProcess deny mach-lookup com.apple.PowerManagement.control
2339
2340         Reviewed by Sam Weinig.
2341
2342         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
2343
2344 2013-02-11  Huang Dongsung  <luxtella@company100.net>
2345
2346         Coordinated Graphics: Make CoordinatedGraphicsScene not know contents size.
2347         https://bugs.webkit.org/show_bug.cgi?id=108922
2348
2349         Reviewed by Noam Rosenthal.
2350         Signed off for WebKit2 by Benjamin Poulain.
2351
2352         Currently, CoordinatedGraphicsScene has two methods to know contents
2353         size: setContentsSize() and setVisibleContentsRect(). Contents size is
2354         used when adjusting a scroll position, but adjustment is not needed
2355         because EFL and Qt platform code (currently PageViewportController)
2356         already adjusts a scroll position, and it is natural for each platform
2357         to be in charge of adjusting. So this patch makes CoordinatedGraphicsScene
2358         not know contents size.
2359
2360         In addition, now DrawingAreaProxy::coordinatedLayerTreeHostProxy() is only used
2361         to get CoordinatedGraphicsScene.
2362
2363         * UIProcess/API/qt/qquickwebpage.cpp:
2364         (QQuickWebPagePrivate::updateSize):
2365         * UIProcess/API/qt/raw/qrawwebview.cpp:
2366         (QRawWebView::setSize):
2367         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
2368         (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect):
2369         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2370         (CoordinatedLayerTreeHostProxy):
2371         * UIProcess/efl/PageClientLegacyImpl.cpp:
2372         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
2373         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2374         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
2375
2376 2013-02-11  Huang Dongsung  <luxtella@company100.net>
2377
2378         Coordinated Graphics: remove the DidChangeScrollPosition message.
2379         https://bugs.webkit.org/show_bug.cgi?id=108051
2380
2381         Reviewed by Noam Rosenthal.
2382         Signed off for WebKit2 by Benjamin Poulain.
2383
2384         Currently, we use the DidChangeScrollPosition message to send the scroll
2385         position that WebCore used in this frame to UI Process. We had to have
2386         some member variables for the DidChangeScrollPosition message.
2387         However, we can send a scroll position via the DidRenderFrame message,
2388         because CoordinatedGraphicsScene::m_renderedContentsScrollPosition is
2389         updated at the moment of flushing. So we can remove the
2390         DidChangeScrollPosition message and some redundant member variables.
2391
2392         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
2393         (WebKit::CoordinatedLayerTreeHostProxy::didRenderFrame):
2394         (WebKit):
2395         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2396         (CoordinatedLayerTreeHostProxy):
2397         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
2398           Remove the DidChangeScrollPosition message.
2399         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2400         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
2401         (WebKit::CoordinatedLayerTreeHost::flushPendingLayerChanges):
2402           Send a scroll position via the DidChangeScrollPosition message.
2403         (WebKit::CoordinatedLayerTreeHost::syncLayerState):
2404           Don't send a scroll position because flushPendingLayerChanges() does
2405           that. In addition, it is weird to check if we must send a scroll
2406           position at the moment of sending the SyncLayerState message of every
2407           layers.
2408         (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
2409         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2410
2411 2013-02-11  Ryosuke Niwa  <rniwa@webkit.org>
2412
2413         Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface
2414         https://bugs.webkit.org/show_bug.cgi?id=109534
2415
2416         Reviewed by Anders Carlsson.
2417
2418         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2419         (WebKit):
2420         * WebProcess/WebCoreSupport/WebEditorClient.h:
2421
2422 2013-02-11  Jae Hyun Park  <jae.park@company100.net>
2423
2424         [EFL] Build fix
2425         https://bugs.webkit.org/show_bug.cgi?id=109518
2426
2427         Reviewed by Laszlo Gombos.
2428
2429         Fix EFL build by including PluginProcessConnectionManager.messages.in in
2430         CMakeLists.txt
2431
2432         * CMakeLists.txt:
2433
2434 2013-02-11  Anders Carlsson  <andersca@apple.com>
2435
2436         Fix build.
2437
2438         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
2439         (WebKit::PluginProcessConnectionManager::didReceiveMessageOnConnectionWorkQueue):
2440         * WebProcess/WebProcess.cpp:
2441
2442 2013-02-11  Seulgi Kim  <seulgikim@company100.net>
2443
2444         [GTK] Build fix.
2445         https://bugs.webkit.org/show_bug.cgi?id=109516
2446
2447         Reviewed by Csaba Osztrogonác.
2448
2449         PluginProcessConnectionManagerMessages are omitted from messages list.
2450
2451         * GNUmakefile.list.am:
2452
2453 2013-02-11  Tim Horton  <timothy_horton@apple.com>
2454
2455         [WK2] setMinimumLayoutWidth should bail if there's no WebProcess
2456         https://bugs.webkit.org/show_bug.cgi?id=109512
2457         <rdar://problem/13093627>
2458
2459         Reviewed by Anders Carlsson.
2460
2461         * UIProcess/WebPageProxy.cpp:
2462         (WebKit::WebPageProxy::setMinimumLayoutWidth):
2463
2464 2013-02-11  Anders Carlsson  <andersca@apple.com>
2465
2466         PluginProcessConnectionManager should be a QueueClient
2467         https://bugs.webkit.org/show_bug.cgi?id=109496
2468
2469         Reviewed by Andreas Kling.
2470
2471         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
2472         (WebKit::PluginProcessConnectionManager::didReceiveMessageOnConnectionWorkQueue):
2473         (WebKit):
2474         (WebKit::PluginProcessConnectionManager::didCloseOnConnectionWorkQueue):
2475         * WebProcess/Plugins/PluginProcessConnectionManager.h:
2476         (PluginProcessConnectionManager):
2477         * WebProcess/WebProcess.cpp:
2478         (WebKit::WebProcess::initializeConnection):
2479         * WebProcess/WebProcess.h:
2480         (WebProcess):
2481
2482 2013-02-11  Csaba Osztrogonác  <ossy@webkit.org>
2483
2484         Unreviewed WK2 buildfix after r142518.
2485
2486         * DerivedSources.pri:
2487
2488 2013-02-11  Gavin Barraclough  <barraclough@apple.com>
2489
2490         PluginProcess should quit immediately if idle in response to low-memory notifications
2491         https://bugs.webkit.org/show_bug.cgi?id=109103
2492         <rdar://problem/12679827>
2493
2494         Reviewed by Brady Eidson.
2495
2496         PluginProcess now installs a MemoryPressureHandler for the process, providing
2497         a custom callback which will call terminate if appropriate (if the plugin is not
2498         currently in use).
2499
2500         * PluginProcess/PluginProcess.cpp:
2501         (WebKit::PluginProcess::lowMemoryHandler):
2502             - Custom callback to terminate if appropriate.
2503         (WebKit::PluginProcess::initializeProcess):
2504             - Install the MemoryPressureHandler.
2505         (WebKit::PluginProcess::shouldTerminate):
2506             - This method now also needs to be callable in situations where it might return false.
2507         * PluginProcess/PluginProcess.h:
2508         (PluginProcess):
2509             - Added declaration for lowMemoryHandler.
2510
2511 2013-02-11  Anders Carlsson  <andersca@apple.com>
2512
2513         Move the PluginProcessCrashed message to PluginProcessConnectionManager
2514         https://bugs.webkit.org/show_bug.cgi?id=109493
2515
2516         Reviewed by Andreas Kling.
2517
2518         This is in preparation for making PluginProcessConnectionManager a connection queue client.
2519
2520         * DerivedSources.make:
2521         * UIProcess/Plugins/PluginProcessProxy.cpp:
2522         (WebKit::PluginProcessProxy::didClose):
2523         * WebKit2.xcodeproj/project.pbxproj:
2524         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
2525         (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
2526         * WebProcess/Plugins/PluginProcessConnectionManager.h:
2527         (PluginProcessConnectionManager):
2528         * WebProcess/Plugins/PluginProcessConnectionManager.messages.in: Added.
2529         * WebProcess/WebProcess.cpp:
2530         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
2531         (WebKit::WebProcess::webResourceLoadScheduler):
2532         * WebProcess/WebProcess.h:
2533         (WebProcess):
2534         * WebProcess/WebProcess.messages.in:
2535
2536 2013-02-11  Benjamin Poulain  <benjamin@webkit.org>
2537
2538         Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings
2539         https://bugs.webkit.org/show_bug.cgi?id=109349
2540
2541         Reviewed by Sam Weinig.
2542
2543         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
2544         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
2545         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2546         * WebProcess/InjectedBundle/InjectedBundle.h:
2547         (InjectedBundle):
2548
2549 2013-02-11  Dean Jackson  <dino@apple.com>
2550
2551         Snapshotted plug-in should use shadow root
2552         https://bugs.webkit.org/show_bug.cgi?id=108284
2553
2554         Reviewed by Simon Fraser.
2555
2556         Take three of this commit - after rollout in r142400 and r142405.
2557         We no longer have any need for plugInStartLabelImage.
2558
2559         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
2560         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
2561         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
2562         * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
2563
2564 2013-02-11  Anders Carlsson  <andersca@apple.com>
2565
2566         The plug-in process connection manager doesn't need to be heap allocated
2567         https://bugs.webkit.org/show_bug.cgi?id=109479
2568
2569         Reviewed by Andreas Kling.
2570
2571         * WebProcess/WebProcess.cpp:
2572         (WebKit::WebProcess::WebProcess):
2573         (WebKit::WebProcess::pluginProcessConnectionManager):
2574         (WebKit::WebProcess::pluginProcessCrashed):
2575         * WebProcess/WebProcess.h:
2576         (WebKit):
2577         (WebProcess):
2578
2579 2013-02-11  Tony Chang  <tony@chromium.org>
2580
2581         Move setFrameFlatteningEnabled from layoutTestController to window.internals.settings
2582         https://bugs.webkit.org/show_bug.cgi?id=87149
2583
2584         Reviewed by Simon Fraser.
2585
2586         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2587         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Add setFrameFlatteningEnabled to the list of overridable values.
2588
2589 2013-02-11  Claudio Saavedra  <csaavedra@igalia.com>
2590
2591         [WK2][Notifications] Missing early return in populateCopyOfNotificationPermissions
2592         https://bugs.webkit.org/show_bug.cgi?id=108459
2593
2594         Reviewed by Alexey Proskuryakov.
2595
2596         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
2597         (WebKit::WebNotificationManagerProxy::populateCopyOfNotificationPermissions):
2598         Providers might return 0 and we will end up with a null-pointer dereference.
2599         Early check against this.
2600
2601 2013-02-10  Sam Weinig  <sam@webkit.org>
2602
2603         Make the Plug-in XPCService build work even when building in Xcode
2604         <rdar://problem/13011186>
2605         https://bugs.webkit.org/show_bug.cgi?id=109392
2606
2607         Reviewed by Anders Carlsson.
2608
2609         * Configurations/DebugRelease.xcconfig:
2610         Add a DEBUG_OR_RELEASE variable to test against.
2611         * Configurations/PluginService.32.xcconfig:
2612         * Configurations/PluginService.64.xcconfig:
2613         In non-production builds, don't link against WebKit2, so that we don't get warnings about WebKit2.framework
2614         not containing the right architectures. This is ok, as these services are not used in non-production builds.
2615
2616         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info.plist:
2617         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm:
2618         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info.plist:
2619         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm:
2620         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist:
2621         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm:
2622         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist:
2623         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm:
2624         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
2625         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm:
2626         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
2627         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm:
2628         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
2629         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm:
2630         Switch off the the old idiom of defining a macro for the initializer function, and instead set
2631         it in the Info.plist, so the XPCServiceBootstrapper can grab it.
2632
2633         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h:
2634         (WebKit::XPCServiceEventHandler):
2635         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h:
2636         (WebKit::XPCServiceEventHandler):
2637         Get the entry point from the bundle, rather than the macro. This is not only a bit less gross,
2638         but also allows us to build without having linked against WebKit2.framework.
2639
2640         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
2641         (WebKit::shouldUseXPC):
2642         Re-enable using XPC for plug-ins.
2643
2644         * WebKit2.xcodeproj/project.pbxproj:
2645         Update project.
2646
2647 2013-02-10  Anders Carlsson  <andersca@apple.com>
2648
2649         Add back code that was accidentally removed when moving plug-in enumeration back to the main thread
2650         https://bugs.webkit.org/show_bug.cgi?id=109379
2651
2652         Reviewed by Andreas Kling.
2653
2654         * UIProcess/WebProcessProxy.cpp:
2655         (WebKit::WebProcessProxy::getPlugins):
2656
2657 2013-02-10  Kent Tamura  <tkent@chromium.org>
2658
2659         Unreviewed, rolling out r142347.
2660         http://trac.webkit.org/changeset/142347
2661         https://bugs.webkit.org/show_bug.cgi?id=108273
2662
2663         Because a depending change r142343 was rolled out.
2664
2665         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2666         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
2667         (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
2668         (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
2669
2670 2013-02-10  Kent Tamura  <tkent@chromium.org>
2671
2672         Unreviewed, rolling out r142343.
2673         http://trac.webkit.org/changeset/142343
2674         https://bugs.webkit.org/show_bug.cgi?id=108284
2675
2676         It might make inspector/profiler/selector-profiler-url.html
2677         crashy.
2678
2679         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
2680         (WebKit::InjectedBundlePageUIClient::plugInStartLabelImage):
2681         (WebKit):
2682         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
2683         (InjectedBundlePageUIClient):
2684         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2685         (WebKit::WebChromeClient::plugInStartLabelImage):
2686         (WebKit):
2687         * WebProcess/WebCoreSupport/WebChromeClient.h:
2688         (WebChromeClient):
2689
2690 2013-02-10  Zan Dobersek  <zdobersek@igalia.com>
2691
2692         [WebKit2][Gtk] Remove the fullscreen manager proxy message receiver upon invalidating
2693         https://bugs.webkit.org/show_bug.cgi?id=109352
2694
2695         Reviewed by Sam Weinig.
2696
2697         As added for the Mac port in r142160 due to the changes in the same revision, remove
2698         the fullscreen manager proxy as a message receiver. Also fixes a failing unit test.
2699
2700         * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp:
2701         (WebKit::WebFullScreenManagerProxy::invalidate):
2702
2703 2013-02-10  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
2704
2705         [WK2] Fix build on PLUGIN_ARCHITECTURE(UNSUPPORTED) after r142314
2706         https://bugs.webkit.org/show_bug.cgi?id=109364
2707
2708         Reviewed by Simon Hausmann.
2709
2710         void NetscapePlugin::platformPreInitialize() is need to be added to NetscapePluginNone.cpp.
2711
2712         * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
2713         (WebKit::NetscapePlugin::platformPreInitialize):
2714         (WebKit):
2715
2716 2013-02-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2717
2718         Unreviewed, rolling out r137328.
2719         http://trac.webkit.org/changeset/137328
2720         https://bugs.webkit.org/show_bug.cgi?id=109367
2721
2722         causes memory usage to balloon if connection queue is filling
2723         faster than sending (Requested by kling on #webkit).
2724
2725         * Platform/CoreIPC/ArgumentEncoder.cpp:
2726         (CoreIPC::ArgumentEncoder::ArgumentEncoder):
2727         (CoreIPC::ArgumentEncoder::grow):
2728         * Platform/CoreIPC/ArgumentEncoder.h:
2729         (CoreIPC::ArgumentEncoder::buffer):
2730         (ArgumentEncoder):
2731
2732 2013-02-08  Sam Weinig  <sam@webkit.org>
2733
2734         Fix ASSERT when the Web Content Process crashes
2735         https://bugs.webkit.org/show_bug.cgi?id=109346
2736
2737         Reviewed by Simon Fraser.
2738
2739         * UIProcess/WebPageProxy.cpp:
2740         (WebKit::WebPageProxy::processDidCrash):
2741         We need to remove ourselves as a message receiver before calling out to the client, as
2742         the client might want to re-add us (as Safari does).
2743
2744 2013-02-08  Benjamin Poulain  <bpoulain@apple.com>
2745
2746         Move workerThreadCount from TestRunner to WebCore Internals
2747         https://bugs.webkit.org/show_bug.cgi?id=109239
2748
2749         Reviewed by Darin Adler.
2750
2751         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
2752         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
2753         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2754         * WebProcess/InjectedBundle/InjectedBundle.h:
2755         (InjectedBundle):
2756         * WebProcess/WebPage/WebFrame.cpp: Remove a useless #include.
2757
2758 2013-02-08  Dean Jackson  <dino@apple.com>
2759
2760         Remove use of plugInStartLabelImage
2761         https://bugs.webkit.org/show_bug.cgi?id=108273
2762
2763         Reviewed by Simon Fraser.
2764
2765         Remove any use of plugInStartLabelImage. While there, implement plugInStartLabelTitle
2766         and plugInStartLabelSubtitle to return the values from the client.
2767         implement them.
2768
2769         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Remove callback and entry from client structure.
2770         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
2771         (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle): Ask the client bundle for value.
2772         (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle): Ditto.
2773
2774 2013-02-08  Dean Jackson  <dino@apple.com>
2775
2776         Snapshotted plug-in should use shadow root
2777         https://bugs.webkit.org/show_bug.cgi?id=108284
2778
2779         Reviewed by Simon Fraser.
2780
2781         Take two of this commit! We no longer have any need for plugInStartLabelImage.
2782
2783         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
2784         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
2785         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
2786         * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
2787
2788 2013-02-08  Dean Jackson  <dino@apple.com>
2789
2790         Rolling out r142333 and r142337 which broke Mac Release builds.
2791
2792 2013-02-08  Anders Carlsson  <andersca@apple.com>
2793
2794         Move plug-in enumeration back to the main thread
2795         https://bugs.webkit.org/show_bug.cgi?id=109337
2796         <rdar://problem/12015046>
2797
2798         Reviewed by Andreas Kling.
2799
2800         Plug-in enumeration was moved to a separate work queue to improve responsiveness, but
2801         doing so lead to crashes when WebKit1 would enumerate plug-ins on the main thread at the same time.
2802         Bug <rdar://problem/13185819> tracks fixing the responsiveness issue by spawning a plug-in process
2803         and have it do the enumeration.
2804
2805         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
2806         (WebKit::getPluginInfoFromCarbonResources):
2807         * UIProcess/WebProcessProxy.cpp:
2808         (WebKit::WebProcessProxy::connectionWillOpen):
2809         (WebKit::WebProcessProxy::connectionWillClose):
2810         (WebKit::WebProcessProxy::getPlugins):
2811         * UIProcess/WebProcessProxy.h:
2812         (WebCore):
2813         (WebProcessProxy):
2814         * UIProcess/WebProcessProxy.messages.in:
2815         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2816         (WebKit):
2817         (WebKit::WebPlatformStrategies::populatePluginCache):
2818         * WebProcess/WebProcess.cpp:
2819         * WebProcess/WebProcess.h:
2820         (WebProcess):
2821         * WebProcess/WebProcess.messages.in:
2822
2823 2013-02-08  Dean Jackson  <dino@apple.com>
2824
2825         Snapshotted plug-in should use shadow root
2826         https://bugs.webkit.org/show_bug.cgi?id=108284
2827
2828         Reviewed by Simon Fraser.
2829
2830         We no longer have any need for plugInStartLabelImage.
2831
2832         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
2833         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
2834         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
2835         * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
2836
2837 2013-02-08  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
2838
2839         [WK2] Fix the build on !Mac after r142314.
2840         https://bugs.webkit.org/show_bug.cgi?id=109327
2841
2842         Reviewed by Benjamin Poulain.
2843
2844         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2845         (WebKit::NetscapePlugin::platformPreInitialize): Add a stub for
2846         the newly-added function.
2847
2848         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2849         (WebKit::NetscapePlugin::platformPreInitialize):
2850         (WebKit):
2851
2852 2013-02-07  Anders Carlsson  <andersca@apple.com>
2853
2854         Work around a bug in Flash where NSException objects can be released too early
2855         https://bugs.webkit.org/show_bug.cgi?id=109242
2856         <rdar://problem/13003470>
2857
2858         Reviewed by Darin Adler.
2859
2860         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
2861         (WebKit::NetscapePluginModule::determineQuirks):
2862         Set the new plug-in quirk.
2863
2864         * Shared/Plugins/PluginQuirks.h:
2865         Add a new plug-in quirk.
2866
2867         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2868         (WebKit::NetscapePlugin::initialize):
2869         Call platformPreInitialize.
2870
2871         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
2872         (NetscapePlugin):
2873         Add platformPreInitialize.
2874
2875         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
2876         (WebKit::NSException_release):
2877         Add new empty function.
2878
2879         (WebKit::NetscapePlugin::platformPreInitialize):
2880         Patch -[NSException release] to be a no-op.
2881
2882 2013-02-08  Dean Jackson  <dino@apple.com>
2883
2884         Do not register autostart for plugins from file:// (or nowhere)
2885         https://bugs.webkit.org/show_bug.cgi?id=108271
2886
2887         Reviewed by Tim Horton.
2888
2889         If the pageOrigin is the empty string don't add
2890         it to the auto-start origin list for snapshotting.
2891
2892         * WebProcess/WebProcess.cpp:
2893         (WebKit::WebProcess::addPlugInAutoStartOrigin):
2894
2895 2013-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
2896
2897         Unreviewed, rolling out r142212.
2898         http://trac.webkit.org/changeset/142212
2899         https://bugs.webkit.org/show_bug.cgi?id=109255
2900
2901         Causes ASSERT(!m_installed) on launch (Requested by smfr on
2902         #webkit).
2903
2904         * PluginProcess/PluginProcess.cpp:
2905         (WebKit::PluginProcess::initializeProcess):
2906         (WebKit::PluginProcess::shouldTerminate):
2907         * PluginProcess/PluginProcess.h:
2908         (PluginProcess):
2909         * WebProcess/WebProcess.cpp:
2910         (WebKit::WebProcess::initializeWebProcess):
2911
2912 2013-02-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2913
2914         [EFL][WK2] Remove dead code after r142169
2915         https://bugs.webkit.org/show_bug.cgi?id=109251
2916
2917         Reviewed by Benjamin Poulain.
2918
2919         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2920         (WebKit::WebChromeClient::contentsSizeChanged):
2921
2922 2013-02-06  Gavin Barraclough  <barraclough@apple.com>
2923
2924         PluginProcess should quit immediately if idle in response to low-memory notifications
2925         https://bugs.webkit.org/show_bug.cgi?id=109103
2926         <rdar://problem/12679827>
2927
2928         Reviewed by Darin Adler.
2929
2930         PluginProcess now initializes a MemoryPressureHandler for the process, providing
2931         a custom callback which will call terminate if appropriate (if the plugin is not
2932         currently in use).
2933
2934         * PluginProcess/PluginProcess.cpp:
2935         (WebKit::PluginProcess::lowMemoryHandler):
2936             - Custom callback to terminate if appropriate.
2937         (WebKit::PluginProcess::initializeProcess):
2938             - Initialize the MemoryPressureHandler.
2939         (WebKit::PluginProcess::shouldTerminate):
2940             - This method now also needs to be callable in situations where it might return false.
2941         * PluginProcess/PluginProcess.h:
2942         (PluginProcess):
2943             - Added declaration for lowMemoryHandler.
2944         * WebProcess/WebProcess.cpp:
2945         (WebKit::WebProcess::initializeWebProcess):
2946             - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
2947
2948 2013-02-07  KwangYong Choi  <ky0.choi@samsung.com>
2949
2950         Fix build warning after r142017
2951         https://bugs.webkit.org/show_bug.cgi?id=109119
2952
2953         Reviewed by Alexey Proskuryakov.
2954
2955         Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
2956
2957         * UIProcess/WebPageProxy.cpp:
2958         (WebKit::WebPageProxy::getPluginPath):
2959
2960 2013-02-07  Martin Robinson  <mrobinson@igalia.com>
2961
2962         [GTK] Cleanup command-line defines
2963         https://bugs.webkit.org/show_bug.cgi?id=109213
2964
2965         Reviewed by Xan Lopez.
2966
2967         * GNUmakefile.am:  Remove references to flags that are now
2968         provided by autotoolsconfig.h.
2969
2970 2013-02-07  Benjamin Poulain  <bpoulain@apple.com>
2971
2972         Move pauseAnimation/pauseTransition from TestRunner to Internals
2973         https://bugs.webkit.org/show_bug.cgi?id=109107
2974
2975         Reviewed by Anders Carlsson.
2976
2977         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
2978         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
2979         * WebProcess/WebPage/WebFrame.cpp:
2980         * WebProcess/WebPage/WebFrame.h:
2981         (WebFrame):
2982
2983 2013-02-07  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2984
2985         [WK2][EFL] Removal of non coordinated graphics code path from WK2 EFL
2986         https://bugs.webkit.org/show_bug.cgi?id=109165
2987
2988         Reviewed by Anders Carlsson.
2989
2990         Removed non coordinated graphics code path from WK2 EFL as it was not used by
2991         anyone and caused a lot of preprocessor macros in the code making it less readable.
2992
2993         * UIProcess/API/efl/EvasGLContext.cpp:
2994         * UIProcess/API/efl/EvasGLContext.h:
2995         (WebKit::EvasGLContext::context):
2996         * UIProcess/API/efl/EvasGLSurface.cpp:
2997         * UIProcess/API/efl/EvasGLSurface.h:
2998         (WebKit::EvasGLSurface::surface):
2999
3000             Removed also 'inline' and 'const' keywords from functions declaration,
3001             as both EvasGLContext::context() and EvasGLSurface::surface()
3002             are defined inside their classes and return mutable pointer.
3003
3004         * UIProcess/API/efl/EwkView.cpp:
3005         (EwkView::EwkView):
3006         (EwkView::transformFromScene):
3007         (EwkView::transformToScreen):
3008         (EwkView::coordinatedGraphicsScene):
3009         (EwkView::displayTimerFired):
3010         (EwkView::scheduleUpdateDisplay): Renamed from EwkView::update().
3011         (EwkView::exitAcceleratedCompositingMode):
3012         (EwkView::handleEvasObjectCalculate):
3013         (EwkView::takeSnapshot):
3014         * UIProcess/API/efl/EwkView.h:
3015         (WebCore):
3016         (EwkView):
3017         * UIProcess/API/efl/SnapshotImageGL.cpp:
3018         (getImageSurfaceFromFrameBuffer):
3019         * UIProcess/API/efl/SnapshotImageGL.h:
3020         * UIProcess/API/efl/ewk_view.cpp:
3021         * UIProcess/efl/PageClientBase.cpp:
3022         (WebKit::PageClientBase::setViewNeedsDisplay):
3023         (WebKit::PageClientBase::updateAcceleratedCompositingMode):
3024         * UIProcess/efl/PageClientBase.h:
3025         (PageClientBase):
3026         * UIProcess/efl/PageClientDefaultImpl.cpp:
3027         (WebKit::PageClientDefaultImpl::didCommitLoad):
3028         (WebKit::PageClientDefaultImpl::updateViewportSize):
3029         (WebKit::PageClientDefaultImpl::didChangeViewportProperties):
3030         (WebKit::PageClientDefaultImpl::didChangeContentsSize):
3031         (WebKit::PageClientDefaultImpl::pageTransitionViewportReady):
3032         * UIProcess/efl/PageClientDefaultImpl.h:
3033         (PageClientDefaultImpl):
3034         * UIProcess/efl/PageClientLegacyImpl.cpp:
3035         (WebKit::PageClientLegacyImpl::didCommitLoad):
3036         (WebKit::PageClientLegacyImpl::updateViewportSize):
3037         (WebKit::PageClientLegacyImpl::didChangeViewportProperties):
3038         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
3039         (WebKit::PageClientLegacyImpl::pageDidRequestScroll):
3040         (WebKit::PageClientLegacyImpl::didRenderFrame):
3041         (WebKit::PageClientLegacyImpl::pageTransitionViewportReady):
3042         * UIProcess/efl/PageClientLegacyImpl.h:
3043         (PageClientLegacyImpl):
3044         * UIProcess/efl/PageLoadClientEfl.cpp:
3045         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
3046         (WebKit::PageLoadClientEfl::PageLoadClientEfl):
3047         * UIProcess/efl/PageLoadClientEfl.h:
3048         (PageLoadClientEfl):
3049         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
3050         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
3051         (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
3052         * UIProcess/efl/PageViewportControllerClientEfl.h:
3053         * UIProcess/efl/WebInspectorProxyEfl.cpp:
3054         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
3055         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3056         (WebKit::WebChromeClient::contentsSizeChanged):
3057
3058 2013-02-06  Sam Weinig  <sam@webkit.org>
3059
3060         Make WebPageProxy and sub-objects MessageReceivers
3061         https://bugs.webkit.org/show_bug.cgi?id=108785
3062
3063         Reviewed by Anders Carlsson.
3064
3065         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3066         (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
3067         (WebKit::CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy):
3068         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3069         (CoordinatedLayerTreeHostProxy):
3070         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
3071         * UIProcess/DrawingAreaProxy.cpp:
3072         (WebKit::DrawingAreaProxy::DrawingAreaProxy):
3073         (WebKit::DrawingAreaProxy::~DrawingAreaProxy):
3074         (WebKit::DrawingAreaProxy::contentsRect):
3075         * UIProcess/DrawingAreaProxy.h:
3076         (WebKit::DrawingAreaProxy::setVisibleContentsRect):
3077         * UIProcess/DrawingAreaProxy.messages.in:
3078         * UIProcess/DrawingAreaProxyImpl.cpp:
3079         (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
3080         * UIProcess/DrawingAreaProxyImpl.h:
3081         * UIProcess/WebFullScreenManagerProxy.cpp:
3082         (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
3083         * UIProcess/WebFullScreenManagerProxy.h:
3084         (WebFullScreenManagerProxy):
3085         * UIProcess/WebFullScreenManagerProxy.messages.in:
3086         * UIProcess/WebInspectorProxy.cpp:
3087         (WebKit::WebInspectorProxy::WebInspectorProxy):
3088         (WebKit::WebInspectorProxy::invalidate):
3089         * UIProcess/WebInspectorProxy.h:
3090         * UIProcess/WebInspectorProxy.messages.in:
3091         * UIProcess/WebPageProxy.cpp:
3092         (WebKit::WebPageProxy::WebPageProxy):
3093         (WebKit::WebPageProxy::reattachToWebProcess):
3094         (WebKit::WebPageProxy::close):
3095         (WebKit::WebPageProxy::inspector):
3096         (WebKit::WebPageProxy::fullScreenManager):
3097         (WebKit::WebPageProxy::processDidCrash):
3098         * UIProcess/WebPageProxy.h:
3099         * UIProcess/WebPageProxy.messages.in:
3100         * UIProcess/WebProcessProxy.cpp:
3101         (WebKit::WebProcessProxy::didReceiveMessage):
3102         (WebKit::WebProcessProxy::didReceiveSyncMessage):
3103         * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
3104         (WebKit::WebFullScreenManagerProxy::invalidate):
3105
3106 2013-02-07  Zan Dobersek  <zdobersek@igalia.com>
3107
3108         [Autotools] Remove uses of Automake FARSTREAM_(CFLAGS|LIBS) variables, USE_FARSTREAM conditional
3109         https://bugs.webkit.org/show_bug.cgi?id=109198
3110
3111         Reviewed by Martin Robinson.
3112
3113         * GNUmakefile.am: Remove the FARSTREAM_(CFLAGS|LIBS) variables, they're
3114         not set to anything.
3115
3116 2013-02-07  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3117
3118         [WK2][EFL] Add WKView methods related to background drawing
3119         https://bugs.webkit.org/show_bug.cgi?id=109159
3120
3121         Reviewed by Anders Carlsson.
3122
3123         * UIProcess/API/C/efl/WKView.cpp:
3124         (WKViewSetDrawsBackground):
3125         (WKViewGetDrawsBackground):
3126         (WKViewSetDrawsTransparentBackground):
3127         (WKViewGetDrawsTransparentBackground):
3128          * UIProcess/efl/WebView.cpp:
3129         (WebKit::WebView::setDrawsBackground):
3130         (WebKit):
3131         (WebKit::WebView::drawsBackground):
3132         (WebKit::WebView::setDrawsTransparentBackground):
3133         (WebKit::WebView::drawsTransparentBackground):
3134         * UIProcess/efl/WebView.h:
3135         (WebView):
3136        * UIProcess/API/C/efl/WKView.h:
3137
3138             New methods added
3139
3140         * UIProcess/API/efl/EwkView.cpp:
3141         (EwkView::EwkView):
3142         (EwkView::displayTimerFired):
3143         (EwkView::handleEvasObjectColorSet):
3144         * UIProcess/API/efl/EwkView.h:
3145         (EwkView):
3146         * UIProcess/API/efl/ewk_view.cpp:
3147         (ewk_view_draws_page_background_set):
3148
3149             Remove the unneeded m_setDrawsBackground and replace
3150             it with the WKView setting.
3151
3152 2013-02-07  Christophe Dumez  <dchris@gmail.com>
3153
3154         [EFL][WK2] EWK2UnitTestBase.ewk_view_page_contents_get API test is sometimes failing
3155         https://bugs.webkit.org/show_bug.cgi?id=108634
3156
3157         Reviewed by Alexey Proskuryakov.
3158
3159         Use more robust data validation in EWK2UnitTestBase.ewk_view_page_contents_get
3160         so that the test passes consistently. The issue was that the header before the
3161         data includes the current date. Depending on the date, the data may start at a
3162         different index in the returned string. Instead of hardcoding the data start
3163         index in the test, we now use String::contains().
3164
3165         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
3166         (PageContentsCallback):
3167         (TEST_F):
3168
3169 2013-02-07  Gavin Peters  <gavinp@chromium.org>
3170
3171         Unreviewed, rolling out r142141.
3172         http://trac.webkit.org/changeset/142141
3173         https://bugs.webkit.org/show_bug.cgi?id=108990
3174
3175         Reland r142112, will update Chromium expectations and create a
3176         Chromium bug instead for the crash.
3177
3178         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3179         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3180         * WebProcess/WebPage/DrawingAreaImpl.cpp:
3181         (WebKit::DrawingAreaImpl::DrawingAreaImpl):
3182
3183 2013-02-07  Gavin Peters  <gavinp@chromium.org>
3184
3185         Unreviewed, rolling out r142112.
3186         http://trac.webkit.org/changeset/142112
3187         https://bugs.webkit.org/show_bug.cgi?id=108990
3188
3189         The new test scrollingcoordinator/non-fast-scrollable-region-transformed- iframe.html crashes on Lion.
3190
3191         See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=scrollingcoordinator%2Fnon-fast-scrollable-region-transformed-iframe.html
3192
3193         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3194         (WebKit::updateOffsetFromViewportForSelf):
3195         (WebKit):
3196         (WebKit::updateOffsetFromViewportForLayer):
3197         (WebKit::CoordinatedLayerTreeHost::syncFixedLayers):
3198         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3199         * WebProcess/WebPage/DrawingAreaImpl.cpp:
3200         (WebKit::DrawingAreaImpl::DrawingAreaImpl):
3201
3202 2013-02-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3203
3204         [CoordinatedGraphics] Use ScrollingCoordinator to track fixed layers
3205         https://bugs.webkit.org/show_bug.cgi?id=108990
3206
3207         Reviewed by Noam Rosenthal.
3208         Signed off for WebKit2 by Simon Fraser.
3209
3210         WebCore keeps ScrollingCoordinator up-to-date about whether layers are fixed or not, so we
3211         don't need to traverse the tree every frame to get this information.
3212
3213         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp: remove
3214         syncFixedLayers() and its helper functions. Those were used to identify the fixed layers
3215         and are not needed anymore.
3216         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3217         * WebProcess/WebPage/DrawingAreaImpl.cpp:
3218         (WebKit::DrawingAreaImpl::DrawingAreaImpl): enable the scrolling coordinator usage for
3219         Coordinated Graphics.
3220
3221 2013-02-07  Michael Brüning  <michael.bruning@digia.com>
3222
3223         [Qt][WK2] Fold QtWebPageLoadClient into QQuickWebViewPrivate and move to C API.
3224         https://bugs.webkit.org/show_bug.cgi?id=108473
3225
3226         Reviewed by Simon Hausmann.
3227         Signed off for WebKit2 by Benjamin Poulain.
3228
3229         This patch removes the QtWebPageLoadClient and moves the functionality into the
3230         QQuickWebViewPrivate as most callback methods are calling the private webview
3231         indirectly anyway.
3232
3233         The patch also moves as much of the functionality to the C API as is possible with
3234         the current C API.
3235
3236         * Target.pri:
3237         * UIProcess/API/qt/qquickwebview.cpp:
3238         (QQuickWebViewPrivate::initialize):
3239         (QQuickWebViewPrivate::didStartProvisionalLoadForFrame):
3240         (QQuickWebViewPrivate::didReceiveServerRedirectForProvisionalLoadForFrame):
3241         (QQuickWebViewPrivate::didFailLoad):
3242         (QQuickWebViewPrivate::didCommitLoadForFrame):
3243         (QQuickWebViewPrivate::didFinishLoadForFrame):
3244         (QQuickWebViewPrivate::didSameDocumentNavigationForFrame):
3245         (QQuickWebViewPrivate::didReceiveTitleForFrame):
3246         (QQuickWebViewPrivate::didStartProgress):
3247         (QQuickWebViewPrivate::didChangeProgress):
3248         (QQuickWebViewPrivate::didFinishProgress):
3249         (QQuickWebViewPrivate::didChangeBackForwardList):
3250         (QQuickWebViewPrivate::setTransparentBackground):
3251         (QQuickWebViewPrivate::transparentBackground):
3252         (QQuickWebViewPrivate::loadProgressDidChange):
3253         * UIProcess/API/qt/qquickwebview_p.h:
3254         (WebKit):
3255         * UIProcess/API/qt/qquickwebview_p_p.h:
3256         (WebKit):
3257         (QQuickWebViewPrivate):
3258         * UIProcess/qt/QtWebError.cpp:
3259         (WebKit::QtWebError::url):
3260         * UIProcess/qt/QtWebPageLoadClient.cpp: Removed.
3261         * UIProcess/qt/QtWebPageLoadClient.h: Removed.
3262
3263 2013-02-05  Eunmi Lee  <eunmi15.lee@samsung.com> and Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
3264
3265         [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.
3266         https://bugs.webkit.org/show_bug.cgi?id=97173
3267
3268         Reviewed by Kenneth Rohde Christiansen, signed-off by Benjamin Poulain.
3269
3270         Initialize and shutdown the EFL libraries in the ewk_main.cpp for
3271         UIProcess and WebProcessMainEfl.cpp for WebProcess.
3272
3273         This allows us to shut down the libraries in a proper way, since
3274         RunLoop persist until the process exits.
3275
3276         * UIProcess/API/efl/ewk_main.cpp:
3277         (ewk_init):
3278         (ewk_shutdown):
3279         * WebProcess/efl/WebProcessMainEfl.cpp:
3280         (WebKit::WebProcessMainEfl):
3281
3282 2013-02-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3283
3284         Unreviewed build fix.
3285
3286         * UIProcess/Downloads/DownloadProxyMap.cpp:
3287         (WebKit::DownloadProxyMap::processDidClose):
3288         m_process can't be initialized nullptr yet. Use 0 instead of nullptr.
3289
3290 2013-02-07  Simon Hausmann  <simon.hausmann@digia.com>
3291
3292         [Qt][WK2] Fold QtWebPageFindClient into QQuickWebViewPrivate
3293         https://bugs.webkit.org/show_bug.cgi?id=108920
3294
3295         Reviewed by Jocelyn Turcotte, signed off for WK2 by Benjamin.
3296
3297         Employ the pattern suggested by Jocelyn to simply implement the C
3298         callbacks directly using static functions.
3299
3300         * Target.pri:
3301         * UIProcess/API/qt/qquickwebview.cpp:
3302         (toQQuickWebViewPrivate):
3303         (QQuickWebViewPrivate::initialize):
3304         (QQuickWebViewPrivate::didFindString):
3305         (QQuickWebViewPrivate::didFailToFindString):
3306         * UIProcess/API/qt/qquickwebview_p_p.h:
3307         (QQuickWebViewPrivate):
3308         * UIProcess/qt/QtWebPageFindClient.cpp: Removed.
3309         * UIProcess/qt/QtWebPageFindClient.h: Removed.
3310
3311 2013-02-03  Sam Weinig  <sam@webkit.org>
3312
3313         Make CustomProtocolManagerProxy a MessageReceiver
3314         https://bugs.webkit.org/show_bug.cgi?id=108787
3315
3316         Reviewed by Anders Carlsson.
3317
3318         * Shared/ChildProcessProxy.cpp:
3319         (WebKit::ChildProcessProxy::addMessageReceiver):
3320         (WebKit::ChildProcessProxy::removeMessageReceiver):
3321         (WebKit::ChildProcessProxy::dispatchMessage):
3322         (WebKit::ChildProcessProxy::dispatchSyncMessage):
3323         * Shared/ChildProcessProxy.h:
3324         Sink the MessageReceiverMap down into the ChildProcessProxy.
3325
3326         * UIProcess/Downloads/DownloadProxyMap.cpp:
3327         (WebKit::DownloadProxyMap::DownloadProxyMap):
3328         (WebKit::DownloadProxyMap::createDownloadProxy):
3329         (WebKit::DownloadProxyMap::downloadFinished):
3330         (WebKit::DownloadProxyMap::processDidClose):
3331         * UIProcess/Downloads/DownloadProxyMap.h:
3332         Pass the ChildProcessProxy rather than the MessageReceiverMap to the constructor.
3333
3334         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3335         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
3336         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
3337         (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
3338         Convert to a MessageReceiver.
3339
3340         * UIProcess/Network/NetworkProcessProxy.cpp:
3341         (WebKit::NetworkProcessProxy::createDownloadProxy):
3342         (WebKit::NetworkProcessProxy::didReceiveMessage):
3343         (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
3344         * UIProcess/Network/NetworkProcessProxy.h:
3345         * UIProcess/WebProcessProxy.cpp:
3346         (WebKit::WebProcessProxy::didReceiveMessage):
3347         (WebKit::WebProcessProxy::didReceiveSyncMessage):
3348         (WebKit::WebProcessProxy::createDownloadProxy):
3349         * UIProcess/WebProcessProxy.h:
3350         (WebProcessProxy):
3351         Remove direct chaining to CustomProtocolManagerProxy.
3352
3353 2013-02-06  Enrica Casucci  <enrica@apple.com>
3354
3355         ASSERT(!m_findPageOverlay) in FindController.cpp after r140769.
3356         https://bugs.webkit.org/show_bug.cgi?id=109105.
3357
3358         Reviewed by Tim Horton.
3359
3360         In r140769 we changed the way the overlay is destroyed,
3361         therefore the assert is no longer valid and should be removed.
3362
3363         * WebProcess/WebPage/FindController.cpp:
3364         (WebKit::FindController::updateFindUIAfterPageScroll):
3365
3366 2013-02-06  Anders Carlsson  <andersca@apple.com>
3367
3368         Dispatch storage manager messages to the storage work queue
3369         https://bugs.webkit.org/show_bug.cgi?id=109099
3370
3371         Reviewed by Andreas Kling.
3372
3373         * UIProcess/Storage/StorageManager.cpp:
3374         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
3375         (WebKit::StorageManager::dispatchMessageOnStorageManagerQueue):
3376         (WebKit):
3377         * UIProcess/Storage/StorageManager.h:
3378         (StorageManager):
3379
3380 2013-02-06  Anders Carlsson  <andersca@apple.com>
3381
3382         Pass the document source URL to the pluginLoadPolicy callback
3383         https://bugs.webkit.org/show_bug.cgi?id=109084
3384         <rdar://problem/13154516>
3385
3386         Reviewed by Andreas Kling.
3387
3388         * UIProcess/API/C/WKPage.h:
3389         * UIProcess/WebPageProxy.cpp:
3390         (WebKit::WebPageProxy::getPluginPath):
3391         * UIProcess/WebPageProxy.h:
3392         (WebPageProxy):
3393         * UIProcess/WebPageProxy.messages.in:
3394         * UIProcess/WebUIClient.cpp:
3395         (WebKit::WebUIClient::pluginLoadPolicy):
3396         * UIProcess/WebUIClient.h:
3397         (WebUIClient):
3398         * WebProcess/WebPage/WebPage.cpp:
3399         (WebKit::WebPage::createPlugin):
3400         (WebKit::WebPage::canPluginHandleResponse):
3401
3402 2013-02-06  Alexey Proskuryakov  <ap@apple.com>
3403
3404         Get rid of unneeded writeable preferences.
3405
3406         Reviewed by Anders Carlsson.
3407
3408         com.apple.HIToolbox.plist and com.apple.WebProcess.plist were made writeable very
3409         early in WebKit2 development, before we moved a lot of functionality to UI process.
3410         They don't appear to be needed any more.
3411
3412         Note that we do not even need to allow reading for com.apple.WebProcess.plist -
3413         it's read at process initialization before we enter the sandbox, and services
3414         have a different plist anyway.
3415
3416         * WebProcess/com.apple.WebProcess.sb.in:
3417
3418 2013-02-06  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
3419
3420         [EFL][WK2] Assertion failure on MiniBrowser exit
3421         https://bugs.webkit.org/show_bug.cgi?id=108932
3422
3423         Reviewed by Anders Carlsson.
3424
3425         WorkQueue is now refcounted after r141497, so increase ref
3426         count when a new job is scheduled and unref it when it finishes.
3427
3428         * Platform/efl/WorkQueueEfl.cpp:
3429         (WorkQueue::performWork):
3430         (WorkQueue::performTimerWork):
3431         (WorkQueue::dispatch):
3432         (WorkQueue::dispatchAfterDelay):
3433
3434 2013-02-06  Simon Hausmann  <simon.hausmann@digia.com>, Zoltan Arvai  <zarvai@inf.u-szeged.hu>
3435
3436         [WK2][Win] Fix build after MessageID.h related changes and after r141619.
3437         https://bugs.webkit.org/show_bug.cgi?id=108612
3438
3439         Reviewed by Anders Carlsson.
3440
3441         * Platform/CoreIPC/win/ConnectionWin.cpp:
3442         (CoreIPC::Connection::platformInvalidate):
3443         (CoreIPC::Connection::readEventHandler):
3444         (CoreIPC::Connection::open):
3445         (CoreIPC::Connection::sendOutgoingMessage):
3446         * Platform/WorkQueue.h:
3447         (WorkQueue::WorkItemWin::queue):
3448         (WorkItemWin):
3449         * Platform/win/SharedMemoryWin.cpp:
3450         (WebKit::SharedMemory::Handle::decode):
3451         * Platform/win/WorkQueueWin.cpp:
3452         (WorkQueue::handleCallback):
3453         (WorkQueue::performWorkOnRegisteredWorkThread):
3454
3455 2013-02-06  Mike West  <mkwst@chromium.org>
3456
3457         Add an ENABLE_NOSNIFF feature flag.
3458         https://bugs.webkit.org/show_bug.cgi?id=109029
3459
3460         Reviewed by Jochen Eisinger.
3461
3462         This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
3463         when processing script and other resource types.
3464
3465         * Configurations/FeatureDefines.xcconfig:
3466
3467 2013-02-06  Marja Hölttä  <marja@chromium.org>
3468
3469         Take referrer policy into account when clearing the referrer header
3470         https://bugs.webkit.org/show_bug.cgi?id=86000
3471
3472         Reviewed by Alexey Proskuryakov.
3473
3474         The referrer should only be cleared when doing a https -> http redirect,
3475         if the policy is "default". Otherwise the referrer should be left intact.
3476
3477         * NetworkProcess/NetworkResourceLoader.cpp:
3478         (WebKit::NetworkResourceLoader::start):
3479         * NetworkProcess/SchedulableLoader.cpp:
3480         (WebKit::SchedulableLoader::SchedulableLoader):
3481         * NetworkProcess/SchedulableLoader.h:
3482         (WebKit::SchedulableLoader::shouldClearReferrerOnHTTPSToHTTPRedirect):
3483         (SchedulableLoader):
3484         * NetworkProcess/SyncNetworkResourceLoader.cpp:
3485         (WebKit::SyncNetworkResourceLoader::start):
3486         * NetworkProcess/mac/RemoteNetworkingContext.h:
3487         (WebKit::RemoteNetworkingContext::create):
3488         (RemoteNetworkingContext):
3489         * NetworkProcess/mac/RemoteNetworkingContext.mm:
3490         (WebKit::RemoteNetworkingContext::shouldClearReferrerOnHTTPSToHTTPRedirect):
3491         (WebKit):
3492         (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
3493         * Shared/Network/NetworkResourceLoadParameters.cpp:
3494         (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
3495         (WebKit::NetworkResourceLoadParameters::encode):
3496         (WebKit::NetworkResourceLoadParameters::decode):
3497         * Shared/Network/NetworkResourceLoadParameters.h:
3498         (NetworkResourceLoadParameters):
3499         (WebKit::NetworkResourceLoadParameters::shouldClearReferrerOnHTTPSToHTTPRedirect):
3500         * WebProcess/Network/WebResourceLoadScheduler.cpp:
3501         (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad):
3502         (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad):
3503         (WebKit::WebResourceLoadScheduler::scheduleLoad):
3504         * WebProcess/Network/WebResourceLoadScheduler.h:
3505         (WebResourceLoadScheduler):
3506         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
3507         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
3508
3509 2013-02-06  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
3510
3511         [EFL][WK2] Encapsulate Ewk View evas smart object code inside EwkView class
3512         https://bugs.webkit.org/show_bug.cgi?id=108062
3513
3514         Reviewed by Kenneth Rohde Christiansen.
3515
3516         The Ewk View implementation is encapsulated within EwkView class.
3517         Besides multiple refactoring of Ewk View evas smart object code was made.
3518
3519         * UIProcess/API/C/efl/WKView.cpp:
3520         (createWKView): 
3521
3522             Aux function to share WKView creation implementation.
3523
3524         * UIProcess/API/efl/EwkView.cpp:
3525         (smartDataChanged):
3526         (defaultSmartClassInstance):
3527         (toSmartData):
3528         (EwkView::initSmartClassInterface):
3529         (EwkView::toEvasObject):
3530         (EwkView::smartData):
3531
3532             Renamed and moved here from ewk_view.
3533
3534         (EwkViewEventHandler):