Progress towards implementing downloads with NetworkSession
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2016-01-07  Alex Christensen  <achristensen@webkit.org>
2
3         Progress towards implementing downloads with NetworkSession
4         https://bugs.webkit.org/show_bug.cgi?id=152760
5
6         Reviewed by Brady Eidson.
7
8         * NetworkProcess/Downloads/Download.cpp:
9         (WebKit::Download::Download):
10         There's no need to store the unused NetworkSession&.
11         (WebKit::Download::didStart):
12         (WebKit::Download::didReceiveAuthenticationChallenge):
13         Downloads with NetworkSession are NetworkLoads until the response is received, which is after authentication
14         challenges are handled by NetworkLoad's code.
15         (WebKit::Download::didReceiveResponse):
16         * NetworkProcess/Downloads/Download.h:
17         * NetworkProcess/Downloads/DownloadManager.cpp:
18         (WebKit::DownloadManager::startDownload):
19         Create a PendingDownload, which is basically a NetworkLoad that knows that it will become a Download 
20         when the response is received, regardless of whether or not there is a Content-Disposition header.
21         (WebKit::DownloadManager::dataTaskBecameDownloadTask):
22         * NetworkProcess/Downloads/DownloadManager.h:
23         * NetworkProcess/Downloads/PendingDownload.h: Added.
24         (WebKit::PendingDownload::PendingDownload):
25         Added a new NetworkLoadClient for requests that will become downloads.
26         A PendingDownload contains a NetworkLoad so we can always keep them together
27         and so it can handle setting its pending download id.
28         * WebKit2.xcodeproj/project.pbxproj:
29         * NetworkProcess/NetworkLoad.cpp:
30         (WebKit::NetworkLoad::NetworkLoad):
31         Avoid dereferencing a pointer if the NetworkSession hadn't been created when a NetworkLoad starts.
32         This shouldn't be possible, but it's good to not assume that all pointers are non-null.
33         (WebKit::NetworkLoad::cancel):
34         Add a null check in case the constructor doesn't make m_task.
35         (WebKit::NetworkLoad::convertTaskToDownload):
36         (WebKit::NetworkLoad::setPendingDownloadID):
37         Added for downloads that start with startDownload.  The pending DownloadID is used to indicate that
38         this request should always become a download, regardless of whether or not the response has a 
39         Content-Disposition header.
40         (WebKit::NetworkLoad::willPerformHTTPRedirection):
41         (WebKit::NetworkLoad::didReceiveResponse):
42         * NetworkProcess/NetworkLoad.h:
43         There's no need to store a DownloadID here.  It's stored in the NetworkDataTask (m_task).
44         * NetworkProcess/NetworkSession.h:
45         (WebKit::NetworkDataTask::client):
46         (WebKit::NetworkDataTask::pendingDownloadID):
47         (WebKit::NetworkDataTask::setPendingDownloadID):
48         (WebKit::NetworkDataTask::downloadID): Deleted.
49         (WebKit::NetworkDataTask::setDownloadID): Deleted.
50         Renamed downloadID and setDownloadID to pendingDownloadID and setPendingDownloadID, respectively,
51         to indicate their use.  They are not the current downloadID, but they are the downloadID of the download
52         that will happen once the response is received and PolicyDownload will be returned in the completion handler.
53         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
54         (-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
55         Call dataTaskBecameDownloadTask after didBecomeDownload because the networkDataTask is deleted by removing it 
56         from m_pendingDownloads in dataTaskBecameDownloadTask.
57
58 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
59
60         Add a setting and preferences to enable display-list drawing. Does nothing yet.
61         https://bugs.webkit.org/show_bug.cgi?id=152807
62
63         Reviewed by Zalan Bujtas.
64         
65         WK2 debug pref for display-list drawing, defaults to off.
66
67         * Shared/WebPreferencesDefinitions.h:
68         * UIProcess/API/Cocoa/WKPreferences.mm:
69         (-[WKPreferences _displayListDrawingEnabled]):
70         (-[WKPreferences _setDisplayListDrawingEnabled:]):
71         * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
72         * WebProcess/WebPage/WebPage.cpp:
73         (WebKit::WebPage::updatePreferences):
74
75 2016-01-06  Daniel Bates  <dabates@apple.com>
76
77         Use code signed identifier as part of user directory suffix
78         https://bugs.webkit.org/show_bug.cgi?id=152310
79         <rdar://problem/13352225>
80
81         As pointed out by Sam Weinig, the year is 2016! I inadvertently added the copyright year 2015 instead of 2016.
82
83         * Shared/mac/ChildProcessMac.mm:
84
85 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
86
87         [iOS] Revert overflow:hidden on the body affecting viewport scale (r186786)
88         https://bugs.webkit.org/show_bug.cgi?id=152803
89         rdar://problem/22242515
90
91         Reviewed by Tim Horton.
92
93         You can't assume that if an author uses overflow:hidden on the body, they have no
94         content outside the body that is important. Sites like Google Translate put
95         abspos elements outside the body.
96         
97         So revert the change.
98
99         * WebProcess/WebPage/WebPage.cpp:
100         (WebKit::WebPage::mainFrameDidLayout): Go back to using contents size.
101
102 2016-01-06  Anders Carlsson  <andersca@apple.com>
103
104         Add a smart block pointer
105         https://bugs.webkit.org/show_bug.cgi?id=152799
106
107         Reviewed by Tim Horton.
108
109         Use WTF::BlockPtr.
110
111         * UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
112         (-[WKWebsiteDataStore fetchDataRecordsOfTypes:completionHandler:]):
113         (-[WKWebsiteDataStore removeDataOfTypes:modifiedSince:completionHandler:]):
114         (-[WKWebsiteDataStore removeDataOfTypes:forDataRecords:completionHandler:]):
115
116 2016-01-06  Daniel Bates  <dabates@apple.com>
117
118         Use code signed identifier as part of user directory suffix
119         https://bugs.webkit.org/show_bug.cgi?id=152310
120         <rdar://problem/13352225>
121
122         Reviewed by Brent Fulgham.
123
124         * Shared/mac/ChildProcessMac.mm:
125         (WebKit::findSecCodeForProcess): Added.
126         (WebKit::ChildProcess::initializeSandbox): Modified to use an identifier
127         from the code signature of the app/tool as part of the user directory suffix.
128
129 2016-01-06  Brian Burg  <bburg@apple.com>
130
131         Add a WebKit SPI for registering an automation controller with RemoteInspector
132         https://bugs.webkit.org/show_bug.cgi?id=151576
133
134         Reviewed by Dan Bernstein and Joseph Pecoraro.
135
136         _WKAutomationDelegate is a new SPI that allows WKProcessPool clients to decide
137         policy and implement actions for remote automation.
138
139         The SPI's implementation connects the client's delegate to RemoteInspector::Client.
140         This allows the delegate to handle some commands, such as requestAutomationSession,
141         that come over XPC from an external test runner but are not associated with a specific
142         automation target.
143
144         * PlatformMac.cmake:
145         * UIProcess/API/APIAutomationClient.h: Added. Boilerplate for WebKit::AutomationClient.
146         (API::AutomationClient::~AutomationClient):
147         (API::AutomationClient::allowsRemoteAutomation):
148         (API::AutomationClient::requestAutomationSession):
149         * UIProcess/API/Cocoa/WKProcessPool.mm:
150         (-[WKProcessPool _automationDelegate]): Added.
151         (-[WKProcessPool _setAutomationDelegate:]): Added.
152         (-[WKProcessPool _automationCapabilitiesDidChange]): Added.
153         * UIProcess/API/Cocoa/WKProcessPoolPrivate.h: Add delegate.
154         * UIProcess/API/Cocoa/_WKAutomationDelegate.h: Added.
155
156             This is a new delegate SPI of WKProcessPool; it corresponds to AutomationClient.
157
158         * UIProcess/Cocoa/AutomationClient.h: Added.
159         * UIProcess/Cocoa/AutomationClient.mm: Added.
160
161             This implements a bridge between RemoteInspector::Client and _WKAutomationDelegate.
162             Since the delegate can be called from JavaScriptCore, save the delegating
163             WKProcessPool and pass it as the self parameter to delegate methods.
164
165         (WebKit::AutomationClient::AutomationClient):
166         (WebKit::AutomationClient::~AutomationClient):
167
168             This client automatically registers and unregisters as a RemoteInspector::Client.
169
170         (WebKit::AutomationClient::remoteAutomationAllowed):
171         (WebKit::AutomationClient::requestAutomationSession):
172
173             Forward requests from RemoteInspector to the automation delegate.
174
175         * UIProcess/WebProcessPool.cpp:
176         (WebKit::WebProcessPool::WebProcessPool):
177         (WebKit::WebProcessPool::setAutomationClient): Added.
178         (WebKit::WebProcessPool::updateAutomationCapabilities): Added, it notifies RemoteInspector.
179         * UIProcess/WebProcessPool.h:
180         * WebKit2.xcodeproj/project.pbxproj:
181
182 2016-01-06  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
183
184         [EFL] Set WebKit2 process output name
185         https://bugs.webkit.org/show_bug.cgi?id=152773
186
187         Reviewed by Benjamin Poulain.
188
189         If we add *WebKit* prefix to each WK2 process, it is more clear when checking what process is running.
190         So this patch sets wk2 process output name.
191
192         * PlatformEfl.cmake:
193
194 2016-01-05  Alex Christensen  <achristensen@webkit.org>
195
196         Implement defersLoading with NetworkSession
197         https://bugs.webkit.org/show_bug.cgi?id=151818
198
199         Reviewed by Darin Adler.
200
201         * NetworkProcess/NetworkLoad.cpp:
202         (WebKit::NetworkLoad::NetworkLoad):
203         (WebKit::NetworkLoad::setDefersLoading):
204         * NetworkProcess/NetworkSession.h:
205         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
206         (WebKit::NetworkDataTask::resume):
207         (WebKit::NetworkDataTask::suspend):
208
209 2016-01-05  Tim Horton  <timothy_horton@apple.com>
210
211         REGRESSION (r192432): Keyboard repeat doesn't work anymore for arrow keys/spacebar
212         https://bugs.webkit.org/show_bug.cgi?id=152767
213         <rdar://problem/24017380>
214
215         Reviewed by Dan Bernstein.
216
217         * UIProcess/ios/WKContentViewInteraction.mm:
218         (-[WKContentView _didHandleKeyEvent:eventWasHandled:]):
219         Instead of always bailing, call [super _handleKeyUIEvent:] if we aren't
220         in an editable area, because we won't have done so in _handleKeyUIEvent.
221
222         It's important that the event makes it to the root UIResponder (even if
223         we handled it!) for key repeat to function.
224
225         The double-scrolling case is still fixed because we notice the resent
226         event coming back in to us and bail if we've already seen it.
227
228 2016-01-05  Jer Noble  <jer.noble@apple.com>
229
230         [Mac] Exiting fullscreen via Mission Control leaves fullcreen window frontmost on desktop
231         https://bugs.webkit.org/show_bug.cgi?id=152733
232
233         Reviewed by Eric Carlson.
234
235         Rather than ignore -windowDidExitFullScreen: notifications when fullscreen exit was
236         not initiated by WebKit (and the -window:startCustomAnimationToEnterFullScreenWithDuration:
237         method was not called), continue to exit fullscreen normally.
238
239         * UIProcess/mac/WKFullScreenWindowController.mm:
240         (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]):
241
242 2016-01-05  Alex Christensen  <achristensen@webkit.org>
243
244         Clean up download code
245         https://bugs.webkit.org/show_bug.cgi?id=152739
246
247         Reviewed by Brady Eidson.
248
249         * NetworkProcess/Downloads/DownloadManager.cpp:
250         (WebKit::DownloadManager::DownloadManager):
251         (WebKit::DownloadManager::didCreateDownload):
252         (WebKit::DownloadManager::didDestroyDownload):
253         (WebKit::DownloadManager::downloadProxyConnection):
254         (WebKit::DownloadManager::downloadsAuthenticationManager):
255         * NetworkProcess/Downloads/DownloadManager.h:
256         Keep a Client& instead of a Client*.
257         * NetworkProcess/NetworkProcess.cpp:
258         (WebKit::NetworkProcess::downloadManager):
259         * NetworkProcess/NetworkSession.h:
260         m_sessionID is not used. There is no need to store the sessionID if it is only used in the NetworkSession constructor.
261         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
262         (WebKit::NetworkSession::defaultSession):
263         (WebKit::NetworkSession::NetworkSession):
264
265 2016-01-04  Carlos Garcia Campos  <cgarcia@igalia.com>
266
267         [GTK] Allow to save and restore session
268         https://bugs.webkit.org/show_bug.cgi?id=115600
269
270         Reviewed by Michael Catanzaro.
271
272         Add new API to get and resore the web view session state.
273
274         * PlatformGTK.cmake: Add new files to compilation.
275         * UIProcess/API/gtk/WebKitWebView.cpp:
276         (webkit_web_view_get_session_state): Create a new
277         WebKitWebViewSessionState representing the current session state.
278         (webkit_web_view_restore_session_state): Restore the web view
279         session state from the given WebKitWebViewSessionState.
280         * UIProcess/API/gtk/WebKitWebView.h:
281         * UIProcess/API/gtk/WebKitWebViewSessionState.cpp: Added.
282         (_WebKitWebViewSessionState::_WebKitWebViewSessionState):
283         (toExternalURLsPolicy):
284         (toWebCoreExternalURLsPolicy):
285         (toHTMLBodyElementType):
286         (toHTTPBodyElementType):
287         (encodeHTTPBody):
288         (encodeFrameState):
289         (encodePageState):
290         (encodeBackForwardListItemState):
291         (encodeBackForwardListState):
292         (encodeSessionState):
293         (decodeHTTPBody):
294         (decodeFrameState):
295         (decodeBackForwardListItemState):
296         (decodeSessionState):
297         (webkitWebViewSessionStateCreate):
298         (webkitWebViewSessionStateGetSessionState):
299         (webkit_web_view_session_state_new): Create a
300         WebKitWebViewSessionState from serialized data.
301         (webkit_web_view_session_state_ref):
302         (webkit_web_view_session_state_unref):
303         (webkit_web_view_session_state_serialize): Serialize the WebKitWebViewSessionState.
304         * UIProcess/API/gtk/WebKitWebViewSessionState.h: Added.
305         * UIProcess/API/gtk/WebKitWebViewSessionStatePrivate.h: Added.
306         * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt: Add new symbols.
307         * UIProcess/API/gtk/docs/webkit2gtk-4.0.types: Add webkit_web_view_session_state_get_type.
308         * UIProcess/API/gtk/webkit2.h: Include WebKitWebViewSessionState.h.
309
310 2016-01-04  Alex Christensen  <achristensen@webkit.org>
311
312         Use unique_ptr for NetworkDataTasks and references for NetworkSessionTaskClients
313         https://bugs.webkit.org/show_bug.cgi?id=152724
314
315         Reviewed by Andy Estes.
316
317         There is no reason to have a NetworkSessionTaskClient* instead of a 
318         NetworkSessionTaskClient& just so we can clear it in the NetworkLoad destructor, 
319         which immediately calls ~NetworkDataTask.
320         Also, NetworkDataTasks are owned only by the NetworkLoad, so there's no reason to refcount them.
321
322         * NetworkProcess/Downloads/Download.h:
323         * NetworkProcess/Downloads/DownloadManager.h:
324         * NetworkProcess/NetworkLoad.cpp:
325         (WebKit::NetworkLoad::~NetworkLoad):
326         * NetworkProcess/NetworkLoad.h:
327         * NetworkProcess/NetworkSession.h:
328         (WebKit::NetworkSessionTaskClient::~NetworkSessionTaskClient):
329         (WebKit::NetworkDataTask::client):
330         (WebKit::NetworkDataTask::downloadID):
331         (WebKit::NetworkDataTask::setDownloadID):
332         (WebKit::NetworkDataTask::clearClient): Deleted.
333         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
334         (-[WKNetworkSessionDelegate URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:]):
335         (-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]):
336         (-[WKNetworkSessionDelegate URLSession:task:didCompleteWithError:]):
337         (-[WKNetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
338         (-[WKNetworkSessionDelegate URLSession:dataTask:didReceiveData:]):
339         (-[WKNetworkSessionDelegate URLSession:downloadTask:didFinishDownloadingToURL:]):
340         (-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
341         (WebKit::NetworkSession::~NetworkSession):
342         (WebKit::NetworkSession::createDataTaskWithRequest):
343         (WebKit::NetworkSession::dataTaskForIdentifier):
344         (WebKit::NetworkDataTask::NetworkDataTask):
345
346 2016-01-04  Alex Christensen  <achristensen@webkit.org>
347
348         Progress towards implementing downloads with NetworkSession
349         https://bugs.webkit.org/show_bug.cgi?id=152716
350
351         Reviewed by Brady Eidson.
352
353         * NetworkProcess/Downloads/Download.h:
354         * NetworkProcess/Downloads/DownloadID.h:
355         (WebKit::DownloadID::DownloadID):
356         (WebKit::DownloadID::operator==):
357         (WebKit::DownloadID::operator!=):
358         (WebKit::DownloadID::downloadID):
359         * NetworkProcess/Downloads/DownloadManager.cpp:
360         (WebKit::DownloadManager::startDownload):
361         * NetworkProcess/Downloads/DownloadManager.h:
362         (WebKit::DownloadManager::download):
363         (WebKit::DownloadManager::isDownloading):
364         * NetworkProcess/Downloads/cocoa/DownloadCocoa.mm:
365         (WebKit::Download::resume):
366         (WebKit::Download::platformInvalidate):
367         (WebKit::Download::platformDidFinish):
368         (WebKit::Download::start): Deleted.
369         * NetworkProcess/NetworkSession.h:
370         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
371         (-[WKNetworkSessionDelegate URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:]):
372         (-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]):
373         (-[WKNetworkSessionDelegate URLSession:task:didCompleteWithError:]):
374         (-[WKNetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
375         (-[WKNetworkSessionDelegate URLSession:dataTask:didReceiveData:]):
376         (-[WKNetworkSessionDelegate URLSession:downloadTask:didFinishDownloadingToURL:]):
377         (-[WKNetworkSessionDelegate URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:]):
378         (-[WKNetworkSessionDelegate URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:]):
379         (-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
380
381         When using NSURLSession, a data task is converted to a download task after the connection has already
382         been established, the headers have been received, and WebCore looks at the response and decides that
383         this connection should become a download.  We call the didReceiveResponse to match the behavior of 
384         NSURLDownload, but this could be cleaned up later to match what is actually happening.  We also do not
385         need to tell the download to start because it has already started.
386
387         (WebKit::NetworkSession::dataTaskForIdentifier):
388         (WebKit::NetworkSession::addDownloadID):
389         (WebKit::NetworkSession::downloadID):
390         (WebKit::NetworkSession::takeDownloadID):
391         (WebKit::NetworkDataTask::NetworkDataTask):
392
393         NSURLSessionDownloadTask taskIdentifiers are unique to that NSURLSession, but we have one global DownloadManager
394         in the NetworkProcess.  We need to have each NetworkSession keep a map of taskIdentifiers to global DownloadID.
395
396 2016-01-04  Tim Horton  <timothy_horton@apple.com>
397
398         Turn on gesture events when building for Yosemite
399         https://bugs.webkit.org/show_bug.cgi?id=152704
400         rdar://problem/24042472
401
402         Reviewed by Anders Carlsson.
403
404         * Configurations/FeatureDefines.xcconfig:
405
406 2016-01-04  Tim Horton  <timothy_horton@apple.com>
407
408         Hardware keyboard key-commands stop responding when viewing PDFs
409         https://bugs.webkit.org/show_bug.cgi?id=152712
410         <rdar://problem/23014457>
411
412         Reviewed by Dan Bernstein.
413
414         Maintain first responder status through any content view swapping, by
415         making WKWebView become first responder if needed, and pushing first
416         responder status down to the swapped-in content view if possible.
417
418         * UIProcess/API/Cocoa/WKWebView.mm:
419         (-[WKWebView becomeFirstResponder]):
420         Make the current content view first responder instead of the WKContentView,
421         in case we have a custom content view installed.
422
423         (-[WKWebView canBecomeFirstResponder]):
424         WKWebView can always become first responder, even if none of its children can.
425         This makes it so that if a custom content view can't become first responder,
426         WKWebView will take the responsibility.
427
428         (-[WKWebView _setHasCustomContentView:loadedMIMEType:]):
429         Return the responsibility of being first responder to the newly-installed
430         content view if WKWebView is currently the first responder (either because
431         of tab switching or because the previous content view did not support
432         being first responder), if it supports being first responder.
433
434 2016-01-04  Commit Queue  <commit-queue@webkit.org>
435
436         Unreviewed, rolling out r194544.
437         https://bugs.webkit.org/show_bug.cgi?id=152711
438
439         This change caused assertions in existing inspector tests
440         (Requested by ryanhaddad on #webkit).
441
442         Reverted changeset:
443
444         "Web Inspector: reproducible debug ASSERT when inspecting the
445         inspector (WK2)"
446         https://bugs.webkit.org/show_bug.cgi?id=152080
447         http://trac.webkit.org/changeset/194544
448
449 2016-01-04  Alex Christensen  <achristensen@webkit.org>
450
451         Fix Mac CMake build after r194378.
452
453         * CMakeLists.txt:
454
455 2016-01-04  Brian Burg  <bburg@apple.com>
456
457         Web Inspector: reproducible debug ASSERT when inspecting the inspector (WK2)
458         https://bugs.webkit.org/show_bug.cgi?id=152080
459
460         Reviewed by Timothy Hatcher.
461
462         We hit an assert underneath ChildProcessProxy::addMessageReceiver when opening Inspector[2]
463         because we try to add WebInpectorProxy as a message receiver twice for the same process.
464
465         On investigating, I found several interrelated issues that caused this state of affairs:
466
467          - WebInspectorProxy adds message receivers for inspector page's WebProcess and the
468         inspected page's WebProcess. When inspecting the inspector, we mistakenly add a receiver
469         again because the inspector is now the inspected page.
470          - We mixed up process ids when adding message receivers.
471          - invalidate() is re-entrant, causing us to try and double-remove the message receiver.
472
473         Fix this by removing add/remove of message recievers for the inspector page when then
474         inspected page is itself an inspector page. In that case, the receivers are managed by
475         the inspector page's WebInspectorProxy instance.
476
477         * UIProcess/WebInspectorProxy.cpp:
478         (WebKit::WebInspectorProxy::invalidate): Re-arrange to guard against useless reentrancy.
479         (WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess):
480         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
481         (WebKit::WebInspectorProxy::didClose):
482
483 2016-01-04  Alex Christensen  <achristensen@webkit.org>
484
485         Build fix after r194536 when using NetworkSession.
486
487         * NetworkProcess/Downloads/DownloadManager.cpp:
488         (WebKit::DownloadManager::dataTaskBecameDownloadTask):
489         (WebKit::DownloadManager::convertHandleToDownload):
490         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
491         (-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
492         WTFMove changed underneath me.
493
494 2016-01-04  Alex Christensen  <achristensen@webkit.org>
495
496         Progress towards implementing downloads with NetworkSession
497         https://bugs.webkit.org/show_bug.cgi?id=152576
498
499         Reviewed by Brady Eidson.
500
501         * NetworkProcess/Downloads/Download.cpp:
502         (WebKit::Download::Download):
503         (WebKit::Download::~Download):
504         (WebKit::Download::didStart):
505         (WebKit::Download::didReceiveAuthenticationChallenge):
506         * NetworkProcess/Downloads/Download.h:
507         (WebKit::Download::downloadID):
508         * NetworkProcess/Downloads/DownloadManager.cpp:
509         (WebKit::DownloadManager::startDownload):
510         (WebKit::DownloadManager::dataTaskBecameDownloadTask):
511         (WebKit::DownloadManager::convertHandleToDownload):
512         * NetworkProcess/Downloads/DownloadManager.h:
513         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
514         (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
515         * NetworkProcess/NetworkLoad.cpp:
516         (WebKit::NetworkLoad::convertTaskToDownload):
517         * NetworkProcess/NetworkLoad.h:
518         * NetworkProcess/NetworkSession.h:
519         (WebKit::NetworkDataTask::client):
520         (WebKit::NetworkDataTask::clearClient):
521         (WebKit::NetworkDataTask::downloadID):
522         (WebKit::NetworkDataTask::setDownloadID):
523         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
524         (-[WKNetworkSessionDelegate URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:]):
525         (-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
526
527 2016-01-04  Michael Catanzaro  <mcatanzaro@igalia.com>
528
529         [GTK] Rename _WebKitWebContextPrivate.context to _WebKitWebContextPrivate.processPool
530         https://bugs.webkit.org/show_bug.cgi?id=152672
531
532         Reviewed by Carlos Garcia Campos.
533
534         * UIProcess/API/gtk/WebKitDownloadClient.cpp:
535         (attachDownloadClientToContext):
536         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
537         (attachInjectedBundleClientToContext):
538         * UIProcess/API/gtk/WebKitSecurityManager.cpp:
539         (registerSecurityPolicyForURIScheme):
540         * UIProcess/API/gtk/WebKitWebContext.cpp:
541         (webkitWebContextConstructed):
542         (webkitWebContextDispose):
543         (webkit_web_context_set_cache_model):
544         (webkit_web_context_get_cache_model):
545         (webkit_web_context_clear_cache):
546         (webkit_web_context_get_cookie_manager):
547         (ensureFaviconDatabase):
548         (webkit_web_context_set_favicon_database_directory):
549         (webkit_web_context_set_additional_plugins_directory):
550         (webkitWebContextGetPluginThread):
551         (webkit_web_context_set_tls_errors_policy):
552         (webkit_web_context_set_disk_cache_directory):
553         (webkit_web_context_prefetch_dns):
554         (webkit_web_context_allow_tls_certificate_for_host):
555         (webkit_web_context_set_process_model):
556         (webkit_web_context_set_web_process_count_limit):
557         (webkitWebContextStartDownload):
558         (webkitWebContextGetProcessPool):
559         (webkitWebContextCreatePageForWebView):
560         (webkitWebContextGetContext): Deleted.
561         * UIProcess/API/gtk/WebKitWebContextPrivate.h:
562
563 2016-01-03  Simon Fraser  <simon.fraser@apple.com>
564
565         Rename scrollPosition(Scrollbar*) to scrollOffset(ScrollbarOrientation)
566         https://bugs.webkit.org/show_bug.cgi?id=152666
567
568         Reviewed by Dan Bernstein.
569
570         Scrollbar values take offsets (zero-based), so rename the accessor used
571         by scrollbars to set their value, and pass in an orientation, rather than
572         a pointer to the scrollbar.
573
574         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.h:
575         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
576         (WebKit::PDFPlugin::scrollOffset):
577         (WebKit::PDFPlugin::scrollPosition): Renamed.
578
579 2015-12-31  Andy Estes  <aestes@apple.com>
580
581         Replace WTF::move with WTFMove
582         https://bugs.webkit.org/show_bug.cgi?id=152601
583
584         Reviewed by Brady Eidson.
585
586         * DatabaseProcess/DatabaseProcess.cpp:
587         (WebKit::DatabaseProcess::postDatabaseTask):
588         (WebKit::DatabaseProcess::fetchWebsiteData):
589         (WebKit::DatabaseProcess::deleteWebsiteData):
590         (WebKit::DatabaseProcess::deleteWebsiteDataForOrigins):
591         (WebKit::DatabaseProcess::indexedDatabaseOrigins):
592         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
593         (WebKit::UniqueIDBDatabase::postTransactionOperation):
594         (WebKit::UniqueIDBDatabase::postMainThreadTask):
595         (WebKit::UniqueIDBDatabase::postDatabaseTask):
596         * NetworkProcess/Downloads/DownloadManager.cpp:
597         (WebKit::DownloadManager::startDownload):
598         (WebKit::DownloadManager::convertHandleToDownload):
599         (WebKit::DownloadManager::resumeDownload):
600         * NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm:
601         (WebKit::NetworkServiceInitializerDelegate::NetworkServiceInitializerDelegate):
602         * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp:
603         (WebKit::NetworkBlobRegistry::registerBlobURL):
604         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
605         (WebKit::NetworkConnectionToWebProcess::performSynchronousLoad):
606         (WebKit::NetworkConnectionToWebProcess::registerBlobURL):
607         * NetworkProcess/NetworkLoad.cpp:
608         (WebKit::NetworkLoad::didReceiveData):
609         (WebKit::NetworkLoad::didReceiveBuffer):
610         (WebKit::NetworkLoad::continueCanAuthenticateAgainstProtectionSpace):
611         * NetworkProcess/NetworkProcess.cpp:
612         (WebKit::fetchDiskCacheEntries):
613         (WebKit::NetworkProcess::fetchWebsiteData):
614         (WebKit::NetworkProcess::deleteWebsiteData):
615         (WebKit::clearDiskCacheEntries):
616         (WebKit::NetworkProcess::deleteWebsiteDataForOrigins):
617         * NetworkProcess/NetworkResourceLoader.cpp:
618         (WebKit::NetworkResourceLoader::SynchronousLoadData::SynchronousLoadData):
619         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
620         (WebKit::NetworkResourceLoader::retrieveCacheEntry):
621         (WebKit::NetworkResourceLoader::didFinishLoading):
622         (WebKit::NetworkResourceLoader::tryStoreAsCacheEntry):
623         (WebKit::NetworkResourceLoader::validateCacheEntry):
624         * NetworkProcess/NetworkResourceLoader.h:
625         * NetworkProcess/cache/NetworkCache.cpp:
626         (WebKit::NetworkCache::Cache::retrieve):
627         (WebKit::NetworkCache::Cache::store):
628         (WebKit::NetworkCache::Cache::clear):
629         * NetworkProcess/cache/NetworkCacheCoders.h:
630         * NetworkProcess/cache/NetworkCacheDataSoup.cpp:
631         (WebKit::NetworkCache::Data::empty):
632         (WebKit::NetworkCache::Data::subrange):
633         (WebKit::NetworkCache::concatenate):
634         (WebKit::NetworkCache::Data::adoptMap):
635         * NetworkProcess/cache/NetworkCacheEntry.cpp:
636         (WebKit::NetworkCache::Entry::Entry):
637         * NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp:
638         (WebKit::NetworkCache::runTaskInQueue):
639         (WebKit::NetworkCache::fillDataFromReadBuffer):
640         (WebKit::NetworkCache::IOChannel::readSyncInThread):
641         * NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp:
642         (WebKit::NetworkCache::SpeculativeLoad::SpeculativeLoad):
643         (WebKit::NetworkCache::SpeculativeLoad::didFinishLoading):
644         (WebKit::NetworkCache::SpeculativeLoad::didComplete):
645         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
646         (WebKit::NetworkCache::SpeculativeLoadManager::ExpiringEntry::ExpiringEntry):
647         (WebKit::NetworkCache::SpeculativeLoadManager::PreloadedEntry::PreloadedEntry):
648         (WebKit::NetworkCache::SpeculativeLoadManager::PreloadedEntry::takeCacheEntry):
649         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::create):
650         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::setExistingSubresourcesEntry):
651         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::PendingFrameLoad):
652         (WebKit::NetworkCache::SpeculativeLoadManager::registerLoad):
653         (WebKit::NetworkCache::SpeculativeLoadManager::addPreloadedEntry):
654         (WebKit::NetworkCache::SpeculativeLoadManager::retrieveEntryFromStorage):
655         (WebKit::NetworkCache::SpeculativeLoadManager::revalidateEntry):
656         (WebKit::NetworkCache::SpeculativeLoadManager::preloadEntry):
657         (WebKit::NetworkCache::SpeculativeLoadManager::retrieveSubresourcesEntry):
658         * NetworkProcess/cache/NetworkCacheStatistics.cpp:
659         (WebKit::NetworkCache::Statistics::queryWasEverRequested):
660         * NetworkProcess/cache/NetworkCacheStorage.cpp:
661         (WebKit::NetworkCache::Storage::ReadOperation::finish):
662         (WebKit::NetworkCache::Storage::synchronize):
663         (WebKit::NetworkCache::Storage::dispatchReadOperation):
664         (WebKit::NetworkCache::Storage::dispatchWriteOperation):
665         (WebKit::NetworkCache::Storage::retrieve):
666         (WebKit::NetworkCache::Storage::store):
667         (WebKit::NetworkCache::Storage::traverse):
668         (WebKit::NetworkCache::Storage::clear):
669         * NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp:
670         (WebKit::NetworkCache::SubresourcesEntry::SubresourcesEntry):
671         (WebKit::NetworkCache::SubresourcesEntry::updateSubresourceKeys):
672         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
673         (WebKit::NetworkDataTask::NetworkDataTask):
674         * NetworkProcess/soup/NetworkProcessSoup.cpp:
675         (WebKit::NetworkProcess::clearDiskCache):
676         * Platform/IPC/ArgumentCoders.h:
677         (IPC::ArgumentCoder<WTF::Optional<T>>::decode):
678         * Platform/IPC/ArgumentDecoder.cpp:
679         (IPC::ArgumentDecoder::ArgumentDecoder):
680         * Platform/IPC/ArgumentEncoder.cpp:
681         (IPC::ArgumentEncoder::addAttachment):
682         (IPC::ArgumentEncoder::releaseAttachments):
683         * Platform/IPC/Attachment.cpp:
684         (IPC::Attachment::encode):
685         * Platform/IPC/Connection.cpp:
686         (IPC::Connection::SyncMessageState::processIncomingMessage):
687         (IPC::Connection::SyncMessageState::dispatchMessages):
688         (IPC::Connection::dispatchWorkQueueMessageReceiverMessage):
689         (IPC::Connection::sendMessage):
690         (IPC::Connection::sendSyncReply):
691         (IPC::Connection::waitForMessage):
692         (IPC::Connection::sendSyncMessage):
693         (IPC::Connection::sendSyncMessageFromSecondaryThread):
694         (IPC::Connection::waitForSyncReply):
695         (IPC::Connection::processIncomingSyncReply):
696         (IPC::Connection::processIncomingMessage):
697         (IPC::Connection::sendOutgoingMessages):
698         (IPC::Connection::dispatchSyncMessage):
699         (IPC::Connection::enqueueIncomingMessage):
700         (IPC::Connection::dispatchOneMessage):
701         * Platform/IPC/Connection.h:
702         (IPC::Connection::Identifier::Identifier):
703         (IPC::Connection::send):
704         (IPC::Connection::sendSync):
705         * Platform/IPC/HandleMessage.h:
706         (IPC::handleMessage):
707         (IPC::handleMessageDelayed):
708         * Platform/IPC/MessageDecoder.cpp:
709         (IPC::MessageDecoder::MessageDecoder):
710         (IPC::MessageDecoder::setImportanceAssertion):
711         (IPC::MessageDecoder::unwrapForTesting):
712         * Platform/IPC/MessageDecoder.h:
713         (IPC::MessageDecoder::setMessageProcessingToken):
714         * Platform/IPC/MessageEncoder.cpp:
715         (IPC::MessageEncoder::wrapForTesting):
716         * Platform/IPC/MessageRecorder.cpp:
717         (IPC::MessageRecorder::recordOutgoingMessage):
718         (IPC::MessageRecorder::recordIncomingMessage):
719         (IPC::MessageRecorder::MessageProcessingToken::MessageProcessingToken):
720         * Platform/IPC/MessageSender.cpp:
721         (IPC::MessageSender::sendMessage):
722         * Platform/IPC/MessageSender.h:
723         (IPC::MessageSender::send):
724         (IPC::MessageSender::sendSync):
725         * Platform/IPC/glib/GSocketMonitor.cpp:
726         (IPC::GSocketMonitor::start):
727         * Platform/IPC/mac/ConnectionMac.mm:
728         (IPC::Connection::open):
729         (IPC::createMessageDecoder):
730         (IPC::Connection::receiveSourceEventHandler):
731         * Platform/IPC/unix/ConnectionUnix.cpp:
732         (IPC::Connection::processMessage):
733         * Platform/unix/SharedMemoryUnix.cpp:
734         (WebKit::SharedMemory::Handle::decode):
735         (WebKit::SharedMemory::Handle::releaseAttachment):
736         (WebKit::SharedMemory::Handle::adoptAttachment):
737         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
738         (WebKit::PluginServiceInitializerDelegate::PluginServiceInitializerDelegate):
739         * PluginProcess/PluginProcess.cpp:
740         (WebKit::PluginProcess::initializePluginProcess):
741         * PluginProcess/WebProcessConnection.cpp:
742         (WebKit::WebProcessConnection::addPluginControllerProxy):
743         (WebKit::WebProcessConnection::createPluginInternal):
744         * PluginProcess/mac/PluginProcessMac.mm:
745         (WebKit::PluginProcess::platformInitializePluginProcess):
746         * Scripts/webkit/LegacyMessageReceiver-expected.cpp:
747         (Messages::WebPage::GetPluginProcessConnection::DelayedReply::DelayedReply):
748         (Messages::WebPage::GetPluginProcessConnection::DelayedReply::send):
749         (Messages::WebPage::TestMultipleAttributes::DelayedReply::DelayedReply):
750         (Messages::WebPage::TestMultipleAttributes::DelayedReply::send):
751         * Scripts/webkit/MessageReceiver-expected.cpp:
752         (Messages::WebPage::GetPluginProcessConnection::DelayedReply::DelayedReply):
753         (Messages::WebPage::GetPluginProcessConnection::DelayedReply::send):
754         (Messages::WebPage::TestMultipleAttributes::DelayedReply::DelayedReply):
755         (Messages::WebPage::TestMultipleAttributes::DelayedReply::send):
756         * Scripts/webkit/messages.py:
757         (generate_message_handler):
758         * Shared/API/APIArray.cpp:
759         (API::Array::create):
760         (API::Array::createStringArray):
761         (API::Array::copy):
762         * Shared/API/APIArray.h:
763         * Shared/API/APIDictionary.cpp:
764         (API::Dictionary::create):
765         (API::Dictionary::Dictionary):
766         (API::Dictionary::keys):
767         * Shared/API/APIPageGroupHandle.cpp:
768         (API::PageGroupHandle::create):
769         (API::PageGroupHandle::PageGroupHandle):
770         (API::PageGroupHandle::decode):
771         * Shared/API/APIString.h:
772         * Shared/API/APIURL.h:
773         (API::URL::create):
774         (API::URL::URL):
775         * Shared/API/Cocoa/RemoteObjectInvocation.h:
776         (WebKit::RemoteObjectInvocation::ReplyInfo::ReplyInfo):
777         * Shared/API/Cocoa/RemoteObjectInvocation.mm:
778         (WebKit::RemoteObjectInvocation::RemoteObjectInvocation):
779         (WebKit::RemoteObjectInvocation::decode):
780         * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
781         (ensureObjectStream):
782         (createEncodedObject):
783         * Shared/API/Cocoa/_WKRemoteObjectInterface.mm:
784         (initializeMethod):
785         (-[_WKRemoteObjectInterface setClasses:forSelector:argumentIndex:ofReply:]):
786         * Shared/API/Cocoa/_WKRemoteObjectRegistry.mm:
787         (-[_WKRemoteObjectRegistry _sendInvocation:interface:]):
788         * Shared/API/c/WKArray.cpp:
789         (WKArrayCreate):
790         (WKArrayCreateAdoptingValues):
791         * Shared/API/c/WKDictionary.cpp:
792         (WKDictionaryCreate):
793         * Shared/API/c/WKSharedAPICast.h:
794         (WebKit::ProxyingRefPtr::ProxyingRefPtr):
795         * Shared/APIWebArchive.mm:
796         (API::WebArchive::WebArchive):
797         (API::WebArchive::subresources):
798         (API::WebArchive::subframeArchives):
799         * Shared/AsyncRequest.cpp:
800         (WebKit::AsyncRequest::AsyncRequest):
801         (WebKit::AsyncRequest::setAbortHandler):
802         * Shared/AsyncRequest.h:
803         * Shared/BlockingResponseMap.h:
804         (BlockingResponseMap::didReceiveResponse):
805         * Shared/ChildProcessProxy.cpp:
806         (WebKit::ChildProcessProxy::sendMessage):
807         (WebKit::ChildProcessProxy::didFinishLaunching):
808         * Shared/ChildProcessProxy.h:
809         (WebKit::ChildProcessProxy::send):
810         (WebKit::ChildProcessProxy::sendSync):
811         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
812         (WebKit::CoordinatedGraphicsScene::dispatchOnMainThread):
813         (WebKit::CoordinatedGraphicsScene::dispatchOnClientRunLoop):
814         (WebKit::CoordinatedGraphicsScene::createLayer):
815         (WebKit::CoordinatedGraphicsScene::syncRemoteContent):
816         (WebKit::CoordinatedGraphicsScene::appendUpdate):
817         * Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.cpp:
818         (WebKit::ThreadSafeCoordinatedSurface::create):
819         (WebKit::ThreadSafeCoordinatedSurface::ThreadSafeCoordinatedSurface):
820         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
821         (WebKit::CompositingRunLoop::CompositingRunLoop):
822         (WebKit::CompositingRunLoop::callOnCompositingRunLoop):
823         (WebKit::ThreadedCompositor::callOnCompositingThread):
824         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
825         (WebKit::XPCServiceInitializerDelegate::XPCServiceInitializerDelegate):
826         (WebKit::XPCServiceInitializer):
827         * Shared/Plugins/Netscape/PluginInformation.cpp:
828         (WebKit::createPluginInformationDictionary):
829         * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.h:
830         (WebKit::RemoteScrollingCoordinatorTransaction::setStateTreeToEncode):
831         * Shared/SessionTracker.cpp:
832         (WebKit::SessionTracker::setSession):
833         * Shared/UserData.cpp:
834         (WebKit::UserData::UserData):
835         (WebKit::transformGraph):
836         (WebKit::UserData::decode):
837         * Shared/WebBackForwardListItem.cpp:
838         (WebKit::WebBackForwardListItem::create):
839         (WebKit::WebBackForwardListItem::WebBackForwardListItem):
840         * Shared/WebBackForwardListItem.h:
841         (WebKit::WebBackForwardListItem::setPageState):
842         * Shared/WebCompiledContentExtension.cpp:
843         (WebKit::WebCompiledContentExtension::create):
844         (WebKit::WebCompiledContentExtension::WebCompiledContentExtension):
845         * Shared/WebCompiledContentExtensionData.h:
846         (WebKit::WebCompiledContentExtensionData::WebCompiledContentExtensionData):
847         * Shared/WebContextMenuItem.cpp:
848         (WebKit::WebContextMenuItem::submenuItemsAsAPIArray):
849         * Shared/WebCoreArgumentCoders.cpp:
850         (IPC::ArgumentCoder<UserStyleSheet>::decode):
851         (IPC::ArgumentCoder<UserScript>::decode):
852         (IPC::ArgumentCoder<FilterOperations>::decode):
853         (IPC::ArgumentCoder<BlobPart>::decode):
854         * Shared/WebKeyboardEvent.cpp:
855         (WebKit::WebKeyboardEvent::WebKeyboardEvent):
856         * Shared/WebPreferencesStore.h:
857         (WebKit::WebPreferencesStore::Value::Value):
858         * Shared/WebRenderLayer.cpp:
859         (WebKit::WebRenderLayer::createArrayFromLayerList):
860         * Shared/WebRenderObject.cpp:
861         (WebKit::WebRenderObject::WebRenderObject):
862         * Shared/WebTouchEvent.cpp:
863         (WebKit::WebTouchEvent::WebTouchEvent):
864         * Shared/efl/WebEventFactory.cpp:
865         (WebKit::WebEventFactory::createWebTouchEvent):
866         * Shared/gtk/NativeWebKeyboardEventGtk.cpp:
867         (WebKit::NativeWebKeyboardEvent::NativeWebKeyboardEvent):
868         * Shared/gtk/NativeWebTouchEventGtk.cpp:
869         (WebKit::NativeWebTouchEvent::NativeWebTouchEvent):
870         * Shared/gtk/WebContextMenuItemGtk.cpp:
871         (WebKit::WebContextMenuItemGtk::WebContextMenuItemGtk):
872         * Shared/gtk/WebEventFactory.cpp:
873         (WebKit::WebEventFactory::createWebKeyboardEvent):
874         (WebKit::WebEventFactory::createWebTouchEvent):
875         * Shared/linux/SeccompFilters/OpenSyscall.cpp:
876         (WebKit::OpenSyscall::createFromOpenatContext):
877         (WebKit::OpenSyscall::createFromCreatContext):
878         (WebKit::OpenSyscallResult::encode):
879         * Shared/mac/ObjCObjectGraph.mm:
880         (WebKit::ObjCObjectGraph::decode):
881         * Shared/mac/RemoteLayerBackingStore.mm:
882         (WebKit::RemoteLayerBackingStore::takeFrontContextPendingFlush):
883         (WebKit::RemoteLayerBackingStore::Buffer::discard):
884         * Shared/mac/RemoteLayerTreeTransaction.h:
885         (WebKit::RemoteLayerTreeTransaction::setCallbackIDs):
886         * Shared/mac/RemoteLayerTreeTransaction.mm:
887         (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
888         (WebKit::RemoteLayerTreeTransaction::decode):
889         (WebKit::RemoteLayerTreeTransaction::setCreatedLayers):
890         (WebKit::RemoteLayerTreeTransaction::setDestroyedLayerIDs):
891         (WebKit::RemoteLayerTreeTransaction::setLayerIDsWithNewlyUnreachableBackingStore):
892         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
893         (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData):
894         * UIProcess/API/APIProcessPoolConfiguration.h:
895         * UIProcess/API/APISessionState.cpp:
896         (API::SessionState::create):
897         (API::SessionState::SessionState):
898         * UIProcess/API/APIUserContentExtension.cpp:
899         (API::UserContentExtension::UserContentExtension):
900         * UIProcess/API/APIUserContentExtension.h:
901         * UIProcess/API/APIUserContentExtensionStore.cpp:
902         (API::compiledToFile):
903         (API::createExtension):
904         (API::UserContentExtensionStore::compileContentExtension):
905         * UIProcess/API/APIUserScript.h:
906         * UIProcess/API/APIWebsiteDataRecord.cpp:
907         (API::WebsiteDataRecord::create):
908         (API::WebsiteDataRecord::WebsiteDataRecord):
909         * UIProcess/API/APIWebsiteDataStore.cpp:
910         (API::WebsiteDataStore::create):
911         (API::WebsiteDataStore::WebsiteDataStore):
912         * UIProcess/API/C/WKApplicationCacheManager.cpp:
913         (WKApplicationCacheManagerGetApplicationCacheOrigins):
914         * UIProcess/API/C/WKKeyValueStorageManager.cpp:
915         (WKKeyValueStorageManagerGetKeyValueStorageOrigins):
916         (WKKeyValueStorageManagerGetStorageDetailsByOrigin):
917         * UIProcess/API/C/WKPage.cpp:
918         (WKPageCopySessionState):
919         (WKPageRestoreFromSessionState):
920         (WKPageSetPageContextMenuClient):
921         (WKPageSetPageFindMatchesClient):
922         (WKPageSetPageLoaderClient):
923         (WebKit::RunJavaScriptAlertResultListener::create):
924         (WebKit::RunJavaScriptAlertResultListener::RunJavaScriptAlertResultListener):
925         (WebKit::RunJavaScriptConfirmResultListener::create):
926         (WebKit::RunJavaScriptConfirmResultListener::RunJavaScriptConfirmResultListener):
927         (WebKit::RunJavaScriptPromptResultListener::create):
928         (WebKit::RunJavaScriptPromptResultListener::RunJavaScriptPromptResultListener):
929         (WKPageSetPageUIClient):
930         (WKPageSetPageNavigationClient):
931         (WKPageCopyRelatedPages):
932         * UIProcess/API/C/WKResourceCacheManager.cpp:
933         (WKResourceCacheManagerGetCacheOrigins):
934         * UIProcess/API/C/WKSessionStateRef.cpp:
935         (WKSessionStateCreateFromData):
936         * UIProcess/API/C/mac/WKContextPrivateMac.mm:
937         (WKContextGetInfoForInstalledPlugIns):
938         * UIProcess/API/C/mac/WKPagePrivateMac.mm:
939         (-[WKObservablePageState initWithPage:]):
940         * UIProcess/API/Cocoa/WKBrowsingContextGroup.mm:
941         (createWKArray):
942         * UIProcess/API/Cocoa/WKWebView.mm:
943         (-[WKWebView initWithFrame:configuration:]):
944         (-[WKWebView _takeViewSnapshot]):
945         (-[WKWebView _restoreFromSessionStateData:]):
946         (-[WKWebView _setInputDelegate:]):
947         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
948         (LazyInitialized::set):
949         * UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
950         (-[WKWebsiteDataStore fetchDataRecordsOfTypes:completionHandler:]):
951         * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm:
952         (-[_WKProcessPoolConfiguration setCachePartitionedURLSchemes:]):
953         * UIProcess/API/Cocoa/_WKSessionState.mm:
954         (-[_WKSessionState _initWithSessionState:]):
955         * UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm:
956         (-[_WKUserContentExtensionStore compileContentExtensionForIdentifier:encodedContentExtension:completionHandler:]):
957         * UIProcess/API/efl/ewk_database_manager.cpp:
958         (EwkDatabaseManager::getDatabaseOrigins):
959         * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
960         (webkitContextMenuItemToWebContextMenuItemGtk):
961         * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
962         (webkit_file_chooser_request_select_files):
963         * UIProcess/API/gtk/WebKitNotificationProvider.cpp:
964         (WebKitNotificationProvider::notificationCloseCallback):
965         * UIProcess/API/gtk/WebKitWebContext.cpp:
966         (webkit_web_context_prefetch_dns):
967         (webkitWebContextCreatePageForWebView):
968         * UIProcess/API/gtk/WebKitWebView.cpp:
969         (webkit_web_view_get_snapshot):
970         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
971         (webkitWebViewBaseTouchEvent):
972         (webkitWebViewBaseCreateWebPage):
973         * UIProcess/API/gtk/WebKitWebsiteDataManager.cpp:
974         (webkitWebsiteDataManagerCreate):
975         (webkitWebsiteDataManagerGetDataStore):
976         * UIProcess/API/mac/WKView.mm:
977         (-[WKView initWithFrame:processPool:configuration:webView:]):
978         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
979         (-[WKView initWithFrame:configurationRef:]):
980         * UIProcess/Cocoa/NavigationState.mm:
981         (WebKit::tryAppLink):
982         (WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction):
983         (WebKit::NavigationState::NavigationClient::decidePolicyForNavigationResponse):
984         * UIProcess/Cocoa/WebViewImpl.mm:
985         (WebKit::WebViewImpl::WebViewImpl):
986         (WebKit::WebViewImpl::takeViewSnapshot):
987         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
988         (WebKit::CoordinatedLayerTreeHostProxy::dispatchUpdate):
989         * UIProcess/Databases/DatabaseProcessProxy.cpp:
990         (WebKit::DatabaseProcessProxy::fetchWebsiteData):
991         (WebKit::DatabaseProcessProxy::deleteWebsiteData):
992         (WebKit::DatabaseProcessProxy::deleteWebsiteDataForOrigins):
993         * UIProcess/GenericCallback.h:
994         (WebKit::CallbackMap::put):
995         * UIProcess/InspectorServer/WebSocketServer.cpp:
996         (WebKit::WebSocketServer::didAcceptConnection):
997         * UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp:
998         (WebKit::connectionCallback):
999         * UIProcess/Network/NetworkProcessProxy.cpp:
1000         (WebKit::NetworkProcessProxy::fetchWebsiteData):
1001         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
1002         (WebKit::WebNotificationManagerProxy::providerDidCloseNotifications):
1003         * UIProcess/Notifications/WebNotificationProvider.cpp:
1004         (WebKit::WebNotificationProvider::clearNotifications):
1005         * UIProcess/PageLoadState.cpp:
1006         (WebKit::PageLoadState::Transaction::Transaction):
1007         * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
1008         (WebKit::PlugInAutoStartProvider::autoStartOriginsTableCopy):
1009         * UIProcess/Plugins/PluginProcessManager.cpp:
1010         (WebKit::PluginProcessManager::pluginProcessToken):
1011         (WebKit::PluginProcessManager::fetchWebsiteData):
1012         (WebKit::PluginProcessManager::deleteWebsiteData):
1013         (WebKit::PluginProcessManager::deleteWebsiteDataForHostNames):
1014         * UIProcess/Plugins/PluginProcessProxy.cpp:
1015         (WebKit::PluginProcessProxy::fetchWebsiteData):
1016         (WebKit::PluginProcessProxy::deleteWebsiteData):
1017         (WebKit::PluginProcessProxy::deleteWebsiteDataForHostNames):
1018         * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp:
1019         (WebKit::RemoteScrollingCoordinatorProxy::updateScrollingTree):
1020         * UIProcess/StatisticsRequest.cpp:
1021         (WebKit::StatisticsRequest::completedRequest):
1022         * UIProcess/Storage/LocalStorageDatabase.cpp:
1023         (WebKit::LocalStorageDatabase::create):
1024         (WebKit::LocalStorageDatabase::LocalStorageDatabase):
1025         * UIProcess/Storage/StorageManager.cpp:
1026         (WebKit::StorageManager::TransientLocalStorageNamespace::getOrCreateStorageArea):
1027         (WebKit::StorageManager::StorageArea::create):
1028         (WebKit::StorageManager::StorageArea::StorageArea):
1029         (WebKit::StorageManager::LocalStorageNamespace::getOrCreateStorageArea):
1030         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
1031         (WebKit::StorageManager::getSessionStorageOrigins):
1032         (WebKit::StorageManager::getLocalStorageOrigins):
1033         (WebKit::StorageManager::getLocalStorageOriginDetails):
1034         (WebKit::StorageManager::createTransientLocalStorageMap):
1035         (WebKit::StorageManager::createSessionStorageMap):
1036         * UIProcess/UserContent/WebScriptMessageHandler.cpp:
1037         (WebKit::WebScriptMessageHandler::create):
1038         (WebKit::WebScriptMessageHandler::WebScriptMessageHandler):
1039         * UIProcess/UserContent/WebUserContentControllerProxy.cpp:
1040         (WebKit::WebUserContentControllerProxy::addUserStyleSheet):
1041         * UIProcess/ViewGestureController.cpp:
1042         (WebKit::ViewGestureController::SnapshotRemovalTracker::start):
1043         (WebKit::ViewGestureController::SnapshotRemovalTracker::fireRemovalCallbackImmediately):
1044         * UIProcess/WebBackForwardList.cpp:
1045         (WebKit::WebBackForwardList::addItem):
1046         (WebKit::WebBackForwardList::backListAsAPIArrayWithLimit):
1047         (WebKit::WebBackForwardList::forwardListAsAPIArrayWithLimit):
1048         (WebKit::WebBackForwardList::removeAllItems):
1049         (WebKit::WebBackForwardList::clear):
1050         (WebKit::WebBackForwardList::restoreFromState):
1051         * UIProcess/WebCookieManagerProxy.cpp:
1052         (WebKit::WebCookieManagerProxy::getHostnamesWithCookies):
1053         (WebKit::WebCookieManagerProxy::getHTTPCookieAcceptPolicy):
1054         * UIProcess/WebFormClient.cpp:
1055         (WebKit::WebFormClient::willSubmitForm):
1056         * UIProcess/WebFrameListenerProxy.h:
1057         (WebKit::WebFrameListenerProxy::setNavigation):
1058         * UIProcess/WebFrameProxy.h:
1059         (WebKit::WebFrameProxy::contentFilterDidBlockLoad):
1060         * UIProcess/WebGrammarDetail.cpp:
1061         (WebKit::WebGrammarDetail::guesses):
1062         * UIProcess/WebInspectorProxy.cpp:
1063         (WebKit::WebInspectorProxy::createInspectorPage):
1064         * UIProcess/WebMediaCacheManagerProxy.cpp:
1065         (WebKit::WebMediaCacheManagerProxy::getHostnamesWithMediaCache):
1066         * UIProcess/WebPageProxy.cpp:
1067         (WebKit::ExceededDatabaseQuotaRecords::add):
1068         (WebKit::WebPageProxy::create):
1069         (WebKit::WebPageProxy::WebPageProxy):
1070         (WebKit::WebPageProxy::setHistoryClient):
1071         (WebKit::WebPageProxy::setNavigationClient):
1072         (WebKit::WebPageProxy::setLoaderClient):
1073         (WebKit::WebPageProxy::setPolicyClient):
1074         (WebKit::WebPageProxy::setFormClient):
1075         (WebKit::WebPageProxy::setUIClient):
1076         (WebKit::WebPageProxy::setFindClient):
1077         (WebKit::WebPageProxy::setFindMatchesClient):
1078         (WebKit::WebPageProxy::setDiagnosticLoggingClient):
1079         (WebKit::WebPageProxy::setContextMenuClient):
1080         (WebKit::WebPageProxy::reattachToWebProcessForReload):
1081         (WebKit::WebPageProxy::reattachToWebProcessWithItem):
1082         (WebKit::WebPageProxy::loadRequest):
1083         (WebKit::WebPageProxy::loadFile):
1084         (WebKit::WebPageProxy::loadData):
1085         (WebKit::WebPageProxy::loadHTMLString):
1086         (WebKit::WebPageProxy::reload):
1087         (WebKit::WebPageProxy::didChangeBackForwardList):
1088         (WebKit::WebPageProxy::setInitialFocus):
1089         (WebKit::WebPageProxy::validateCommand):
1090         (WebKit::WebPageProxy::handleWheelEvent):
1091         (WebKit::WebPageProxy::processNextQueuedWheelEvent):
1092         (WebKit::WebPageProxy::restoreFromSessionState):
1093         (WebKit::WebPageProxy::runJavaScriptInMainFrame):
1094         (WebKit::WebPageProxy::getRenderTreeExternalRepresentation):
1095         (WebKit::WebPageProxy::getSourceForFrame):
1096         (WebKit::WebPageProxy::getContentsAsString):
1097         (WebKit::WebPageProxy::getBytecodeProfile):
1098         (WebKit::WebPageProxy::getContentsAsMHTMLData):
1099         (WebKit::WebPageProxy::getSelectionOrContentsAsString):
1100         (WebKit::WebPageProxy::getSelectionAsWebArchiveData):
1101         (WebKit::WebPageProxy::getMainResourceDataOfFrame):
1102         (WebKit::WebPageProxy::getResourceDataFromFrame):
1103         (WebKit::WebPageProxy::getWebArchiveOfFrame):
1104         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
1105         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
1106         (WebKit::WebPageProxy::decidePolicyForResponse):
1107         (WebKit::WebPageProxy::sendMessage):
1108         (WebKit::WebPageProxy::exceededDatabaseQuota):
1109         (WebKit::WebPageProxy::getMarkedRangeAsync):
1110         (WebKit::WebPageProxy::getSelectedRangeAsync):
1111         (WebKit::WebPageProxy::characterIndexForPointAsync):
1112         (WebKit::WebPageProxy::firstRectForCharacterRangeAsync):
1113         (WebKit::WebPageProxy::takeSnapshot):
1114         * UIProcess/WebProcessPool.cpp:
1115         (WebKit::WebProcessPool::setHistoryClient):
1116         (WebKit::WebProcessPool::setDownloadClient):
1117         (WebKit::WebProcessPool::createWebPage):
1118         (WebKit::WebProcessPool::getStatistics):
1119         (WebKit::WebProcessPool::pluginInfoStoreDidLoadPlugins):
1120         * UIProcess/WebProcessProxy.cpp:
1121         (WebKit::WebProcessProxy::createWebPage):
1122         (WebKit::WebProcessProxy::addBackForwardItem):
1123         (WebKit::WebProcessProxy::fetchWebsiteData):
1124         * UIProcess/WebsiteData/WebsiteDataRecord.cpp:
1125         (WebKit::WebsiteDataRecord::add):
1126         * UIProcess/WebsiteData/WebsiteDataStore.cpp:
1127         (WebKit::WebsiteDataStore::create):
1128         (WebKit::WebsiteDataStore::WebsiteDataStore):
1129         (WebKit::WebsiteDataStore::fetchData):
1130         (WebKit::WebsiteDataStore::removeData):
1131         (WebKit::WebsiteDataStore::mediaKeyOrigins):
1132         * UIProcess/efl/InputMethodContextEfl.cpp:
1133         (WebKit::InputMethodContextEfl::InputMethodContextEfl):
1134         * UIProcess/efl/InputMethodContextEfl.h:
1135         (WebKit::InputMethodContextEfl::create):
1136         * UIProcess/efl/WebContextMenuProxyEfl.cpp:
1137         (WebKit::WebContextMenuProxyEfl::showContextMenu):
1138         * UIProcess/efl/WebUIPopupMenuClient.cpp:
1139         (WebUIPopupMenuClient::showPopupMenu):
1140         * UIProcess/gtk/InputMethodFilter.cpp:
1141         (WebKit::InputMethodFilter::filterKeyEvent):
1142         * UIProcess/gtk/KeyBindingTranslator.cpp:
1143         (WebKit::KeyBindingTranslator::commandsForKeyEvent):
1144         * UIProcess/gtk/RedirectedXCompositeWindow.cpp:
1145         (WebKit::XDamageNotifier::add):
1146         (WebKit::RedirectedXCompositeWindow::RedirectedXCompositeWindow):
1147         (WebKit::RedirectedXCompositeWindow::surface):
1148         * UIProcess/ios/WKActionSheetAssistant.mm:
1149         (-[WKActionSheetAssistant showImageSheet]):
1150         (-[WKActionSheetAssistant showLinkSheet]):
1151         * UIProcess/ios/WKContentView.mm:
1152         (-[WKContentView _commonInitializationWithProcessPool:configuration:]):
1153         (-[WKContentView initWithFrame:processPool:configuration:webView:]):
1154         * UIProcess/ios/WKContentViewInteraction.mm:
1155         (-[WKContentView actionSheetAssistant:decideActionsForElement:defaultActions:]):
1156         * UIProcess/ios/WKGeolocationProviderIOS.mm:
1157         (-[WKGeolocationProviderIOS geolocationAuthorizationGranted]):
1158         (-[WKGeolocationProviderIOS geolocationAuthorizationDenied]):
1159         * UIProcess/ios/WKPDFView.mm:
1160         (-[WKPDFView actionSheetAssistant:decideActionsForElement:defaultActions:]):
1161         * UIProcess/ios/WebPageProxyIOS.mm:
1162         (WebKit::WebPageProxy::selectWithGesture):
1163         (WebKit::WebPageProxy::updateSelectionWithTouches):
1164         (WebKit::WebPageProxy::requestAutocorrectionData):
1165         (WebKit::WebPageProxy::applyAutocorrection):
1166         (WebKit::WebPageProxy::executeEditCommand):
1167         (WebKit::WebPageProxy::selectTextWithGranularityAtPoint):
1168         (WebKit::WebPageProxy::selectPositionAtBoundaryWithDirection):
1169         (WebKit::WebPageProxy::moveSelectionAtBoundaryWithDirection):
1170         (WebKit::WebPageProxy::selectPositionAtPoint):
1171         (WebKit::WebPageProxy::beginSelectionInDirection):
1172         (WebKit::WebPageProxy::updateSelectionWithExtentPoint):
1173         (WebKit::WebPageProxy::updateSelectionWithExtentPointAndBoundary):
1174         (WebKit::WebPageProxy::requestDictationContext):
1175         (WebKit::WebPageProxy::requestAutocorrectionContext):
1176         (WebKit::WebPageProxy::getLookupContextAtPoint):
1177         (WebKit::WebPageProxy::selectWithTwoTouches):
1178         (WebKit::WebPageProxy::moveSelectionByOffset):
1179         (WebKit::WebPageProxy::focusNextAssistedNode):
1180         * UIProcess/ios/WebVideoFullscreenManagerProxy.h:
1181         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
1182         (WebKit::WebVideoFullscreenManagerProxy::createModelAndInterface):
1183         * UIProcess/ios/forms/WKFileUploadPanel.mm:
1184         (-[WKFileUploadPanel _chooseFiles:displayString:iconImage:]):
1185         * UIProcess/mac/LegacySessionStateCoding.cpp:
1186         (WebKit::HistoryEntryDataEncoder::finishEncoding):
1187         (WebKit::decodeFormData):
1188         (WebKit::decodeBackForwardTreeNode):
1189         (WebKit::decodeSessionHistoryEntries):
1190         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
1191         (WebKit::RemoteLayerTreeDrawingAreaProxy::dispatchAfterEnsuringDrawing):
1192         * UIProcess/mac/ViewGestureController.h:
1193         (WebKit::ViewGestureController::setCustomSwipeViews):
1194         * UIProcess/mac/ViewGestureControllerMac.mm:
1195         (WebKit::ViewGestureController::PendingSwipeTracker::PendingSwipeTracker):
1196         * UIProcess/mac/ViewSnapshotStore.mm:
1197         (WebKit::ViewSnapshot::create):
1198         (WebKit::ViewSnapshot::ViewSnapshot):
1199         (WebKit::ViewSnapshot::setSurface):
1200         * UIProcess/mac/WebPageProxyMac.mm:
1201         (WebKit::WebPageProxy::attributedSubstringForCharacterRangeAsync):
1202         (WebKit::WebPageProxy::fontAtSelection):
1203         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1204         (contextMenuItems):
1205         (WKBundlePageCopyOriginsWithApplicationCache):
1206         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
1207         (WKBundlePageOverlayCreate):
1208         * WebProcess/InjectedBundle/API/efl/ewk_extension.cpp:
1209         (EwkExtension::didCreatePage):
1210         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
1211         (webkitFrameGetOrCreate):
1212         (didInitiateLoadForResource):
1213         (willSendRequestForFrame):
1214         (didReceiveResponseForResource):
1215         (didReceiveContentLengthForResource):
1216         (didFinishLoadForResource):
1217         (didFailLoadForResource):
1218         (webkitWebPageDidReceiveMessage):
1219         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
1220         (-[WKWebProcessPlugInBrowserContextController _setFormDelegate:]):
1221         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1222         (WebKit::InjectedBundle::addUserScript):
1223         (WebKit::InjectedBundle::addUserStyleSheet):
1224         * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
1225         (WebKit::InjectedBundleBackForwardListItem::children):
1226         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
1227         (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
1228         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
1229         (WebKit::InjectedBundlePageFormClient::willSendSubmitEvent):
1230         (WebKit::InjectedBundlePageFormClient::willSubmitForm):
1231         (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
1232         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
1233         (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
1234         * WebProcess/Network/WebResourceLoader.cpp:
1235         (WebKit::WebResourceLoader::willSendRequest):
1236         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
1237         (WebKit::NPN_PostURL):
1238         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1239         (WebKit::NetscapePlugin::scheduleTimer):
1240         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
1241         (WebKit::convertStringToKeyCodes):
1242         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
1243         (WebKit::PDFPlugin::PDFPlugin):
1244         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1245         (-[WKPDFHUDAnimationDelegate initWithAnimationCompletionHandler:]):
1246         * WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.mm:
1247         (WebKit::PDFPluginChoiceAnnotation::createAnnotationElement):
1248         * WebProcess/Storage/StorageAreaMap.cpp:
1249         (WebKit::StorageAreaMap::create):
1250         (WebKit::StorageAreaMap::StorageAreaMap):
1251         * WebProcess/Storage/StorageNamespaceImpl.cpp:
1252         (WebKit::StorageNamespaceImpl::storageArea):
1253         * WebProcess/UserContent/WebUserContentController.cpp:
1254         (WebKit::WebUserContentController::addUserContentExtensions):
1255         * WebProcess/WebCoreSupport/SessionStateConversion.cpp:
1256         (WebKit::toHTTPBody):
1257         (WebKit::toFrameState):
1258         (WebKit::applyFrameState):
1259         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1260         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1261         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1262         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1263         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
1264         (WebKit::WebFrameLoaderClient::contentFilterDidBlockLoad):
1265         * WebProcess/WebCoreSupport/WebPasteboardOverrides.cpp:
1266         (WebKit::WebPasteboardOverrides::addOverride):
1267         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
1268         (WebKit::WebEditorClient::executePendingEditorCommands):
1269         * WebProcess/WebPage/FindController.cpp:
1270         (WebKit::FindController::findStringMatches):
1271         * WebProcess/WebPage/ViewUpdateDispatcher.cpp:
1272         (WebKit::ViewUpdateDispatcher::dispatchVisibleContentRectUpdate):
1273         * WebProcess/WebPage/WebFrame.cpp:
1274         (WebKit::WebFrame::createSubframe):
1275         (WebKit::WebFrame::create):
1276         (WebKit::WebFrame::WebFrame):
1277         (WebKit::WebFrame::didReceivePolicyDecision):
1278         (WebKit::WebFrame::childFrames):
1279         (WebKit::WebFrame::createSelectionSnapshot):
1280         * WebProcess/WebPage/WebPage.cpp:
1281         (WebKit::WebPage::setInjectedBundleContextMenuClient):
1282         (WebKit::WebPage::setInjectedBundleFormClient):
1283         (WebKit::WebPage::setInjectedBundleUIClient):
1284         (WebKit::WebPage::trackedRepaintRects):
1285         (WebKit::WebPage::createDocumentLoader):
1286         * WebProcess/WebPage/WebPageGroupProxy.cpp:
1287         (WebKit::WebPageGroupProxy::addUserContentExtension):
1288         * WebProcess/WebPage/WebPageOverlay.cpp:
1289         (WebKit::WebPageOverlay::create):
1290         (WebKit::WebPageOverlay::WebPageOverlay):
1291         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
1292         (WebKit::LayerTreeHostGtk::RenderFrameScheduler::RenderFrameScheduler):
1293         * WebProcess/WebPage/ios/WebPageIOS.mm:
1294         (WebKit::WebPage::computePagesForPrintingAndStartDrawingToPDF):
1295         * WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm:
1296         (WebKit::PlatformCAAnimationRemote::setTimingFunction):
1297         (WebKit::PlatformCAAnimationRemote::setValues):
1298         (WebKit::PlatformCAAnimationRemote::setTimingFunctions):
1299         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1300         (WebKit::RemoteLayerTreeContext::layerWasCreated):
1301         (WebKit::RemoteLayerTreeContext::buildTransaction):
1302         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
1303         (WebKit::RemoteLayerTreeDrawingArea::flushLayers):
1304         (WebKit::RemoteLayerTreeDrawingArea::BackingStoreFlusher::create):
1305         (WebKit::RemoteLayerTreeDrawingArea::BackingStoreFlusher::BackingStoreFlusher):
1306         (WebKit::RemoteLayerTreeDrawingArea::BackingStoreFlusher::flush):
1307         * WebProcess/WebProcess.cpp:
1308         (WebKit::WebProcess::initializeWebProcess):
1309         (WebKit::WebProcess::transformObjectsToHandles):
1310         * WebProcess/cocoa/WebProcessCocoa.mm:
1311         (WebKit::WebProcess::platformInitializeWebProcess):
1312         * WebProcess/ios/WebVideoFullscreenManager.mm:
1313         (WebKit::WebVideoFullscreenInterfaceContext::setLayerHostingContext):
1314         (WebKit::WebVideoFullscreenManager::createModelAndInterface):
1315         (WebKit::WebVideoFullscreenManager::setSeekableRanges):
1316         * WebProcess/soup/WebKitSoupRequestInputStream.cpp:
1317         (webkitSoupRequestInputStreamDidFailWithError):
1318
1319 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
1320
1321         Fix the iOS and EFL builds, after an over-eager commit-queue commit.
1322
1323         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1324         (WebKit::WebFrameLoaderClient::restoreViewState):
1325         * WebProcess/WebPage/efl/WebPageEfl.cpp:
1326         (WebKit::WebPage::restorePageState):
1327
1328 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
1329
1330         Fix naming in HistoryItem to refer to scrollPositions
1331         https://bugs.webkit.org/show_bug.cgi?id=152646
1332
1333         Reviewed by Zalan Bujtas.
1334         
1335         HistoryItem stores a scrollPosition, so call it that.
1336         
1337         No behavior change.
1338
1339         * Shared/SessionState.cpp:
1340         (WebKit::FrameState::encode):
1341         (WebKit::FrameState::decode):
1342         * Shared/SessionState.h:
1343         * UIProcess/mac/LegacySessionStateCoding.cpp:
1344         (WebKit::encodeFrameStateNode):
1345         (WebKit::decodeBackForwardTreeNode):
1346         * WebProcess/WebCoreSupport/SessionStateConversion.cpp:
1347         (WebKit::toFrameState):
1348         (WebKit::applyFrameState):
1349
1350 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
1351
1352         Fix reload and programmatic scrolling in RTL documents
1353         https://bugs.webkit.org/show_bug.cgi?id=152639
1354
1355         Reviewed by Zalan Bujtas.
1356
1357         Reloading a left-scrolled RTL document would cause the content to appear
1358         at an odd offset, and programmatic sideways scrolls in RTL documents also
1359         jumped to the wrong location.
1360         
1361         Fix by resolving offset/position confusion in ScrollableArea::scrollPositionChanged()
1362         and the scrolling tree.
1363         
1364         ScrollableArea::scrollPositionChanged() was erroneously passing a scrollPosition
1365         to setScrollOffset(). 
1366         
1367         ScrollingTreeFrameScrollingNode* were confused about offsets and positions. It
1368         turns out that the layer position is just -scrollPosition, but minimumScrollPosition()
1369         and maximumScrollPosition() need fixing to return positions, not offsets.
1370         
1371         ScrollingTreeFrameScrollingNode::viewToContentsOffset() was also doing incorrect
1372         math with scrollOrigin, which was detected by a failing test.
1373         
1374         Add more logging to the Scrolling channel.
1375
1376         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.h:
1377         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
1378         (WebKit::PDFPlugin::setScrollOffset):
1379
1380 2016-01-01  Michael Catanzaro  <mcatanzaro@igalia.com>
1381
1382         [SOUP] REGRESSION(r192761): Broke resource URIs for applications that use g_resource_load in a web extension
1383         https://bugs.webkit.org/show_bug.cgi?id=152634
1384
1385         Reviewed by Carlos Garcia Campos.
1386
1387         Load GResource URIs locally, not in the network process. Applications expect calling
1388         g_resource_load in a web extension to make it possible to load resource URIs, but that
1389         doesn't work now that the network process is in use. Loading them locally solves this.
1390
1391         * WebProcess/Network/WebLoaderStrategy.cpp:
1392         (WebKit::WebLoaderStrategy::scheduleLoad):
1393
1394 2016-01-01  Jeff Miller  <jeffm@apple.com>
1395
1396         Update user-visible copyright strings to include 2016
1397         https://bugs.webkit.org/show_bug.cgi?id=152531
1398
1399         Reviewed by Alexey Proskuryakov.
1400
1401         * DatabaseProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1402         * DatabaseProcess/EntryPoint/mac/XPCService/DatabaseService.Development/Info.plist:
1403         * DatabaseProcess/EntryPoint/mac/XPCService/DatabaseService/Info.plist:
1404         * Info.plist:
1405         * NetworkProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1406         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info-OSX.plist:
1407         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info-iOS.plist:
1408         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX-10.9-10.10.plist:
1409         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX.plist:
1410         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-iOS.plist:
1411         * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1412         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64-10.9-10.10.Info.plist:
1413         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist:
1414         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
1415         * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1416         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-OSX.plist:
1417         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-iOS.plist:
1418         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX-10.9-10.10.plist:
1419         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist:
1420         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-iOS.plist:
1421
1422 2015-12-31  Simon Fraser  <simon.fraser@apple.com>
1423
1424         Rename documentScrollOffsetRelativeTo* functions
1425         https://bugs.webkit.org/show_bug.cgi?id=152632
1426
1427         Reviewed by Zalan Bujtas.
1428
1429         ScrollView::documentScrollOffsetRelativeTo* functions return scroll positions,
1430         not offsets, so rename them and fix their return types, and fix callers. Make
1431         their code more similar.
1432
1433         * WebProcess/WebPage/WebPage.cpp:
1434         (WebKit::WebPage::determinePrimarySnapshottedPlugIn):
1435         (WebKit::WebPage::plugInIntersectsSearchRect):
1436
1437 2015-12-31  Simon Fraser  <simon.fraser@apple.com>
1438
1439         [iOS WK2] Fix incorrect scrollPosition handling
1440         https://bugs.webkit.org/show_bug.cgi?id=152630
1441
1442         Reviewed by Zalan Bujtas.
1443         
1444         WebPage::updateVisibleContentRects() was setting the ScrollView's scroll position
1445         to a scrollOffset, which was counteracted by ScrollView::unobscuredContentRect()
1446         adding the scrollOrigin to the scrollPosition, which resulted in the correct
1447         rects, but an incorrect scrollPosition. Fix.
1448
1449         * WebProcess/WebPage/ios/WebPageIOS.mm:
1450         (WebKit::WebPage::updateVisibleContentRects):
1451
1452 2015-12-31  Michael Catanzaro  <mcatanzaro@igalia.com>
1453
1454         Unreviewed, fix a log message
1455
1456         * WebProcess/Network/WebResourceLoader.cpp:
1457         (WebKit::WebResourceLoader::didReceiveResponse):
1458
1459 2015-12-31  David Kilzer  <ddkilzer@apple.com>
1460
1461         Stop using USE(CFNETWORK) path on iOS
1462         https://bugs.webkit.org/show_bug.cgi?id=142540
1463
1464         Step 1/2: Do everything but turn off USE(CFNETWORK) internally.
1465
1466         Original patch by Antti Koivisto <antti@apple.com> on 2015-03-10
1467         Reviewed by Daniel Bates.
1468
1469         * NetworkProcess/Downloads/ios/DownloadIOS.mm: This is now the
1470         USE(CFNETWORK) && !USE(NETWORK_SESSION) code path.
1471         * NetworkProcess/Downloads/mac/DownloadMac.mm: This is now the
1472         !USE(CFNETWORK) && !USE(NETWORK_SESSION) code path.  Make use of
1473         NSURLDownloadSPI.h.  Ignore a deprecated delcaration warning now
1474         that we're using actual header declarations internally.
1475         * NetworkProcess/NetworkProcess.cpp:
1476         (WebKit::NetworkProcess::initializeNetworkProcess): Update for
1477         iOS to use NSURLConnection loader.
1478
1479 2015-12-31  Andy Estes  <aestes@apple.com>
1480
1481         Fix warnings uncovered by migrating to WTF_MOVE
1482         https://bugs.webkit.org/show_bug.cgi?id=152601
1483
1484         Reviewed by Daniel Bates.
1485
1486         * UIProcess/API/APIUIClient.h:
1487         (API::UIClient::actionsForElement): Moving a return value passed to the function by value is redundant, since it
1488         will be implicitly moved in this case.
1489         * UIProcess/Cocoa/UIDelegate.mm:
1490         (WebKit::UIDelegate::UIClient::actionsForElement): Ditto.
1491
1492 2015-12-30  Simon Fraser  <simon.fraser@apple.com>
1493
1494         Add explicit conversions between scrollOffset and scrollPostion, and use them in a few places
1495         https://bugs.webkit.org/show_bug.cgi?id=152594
1496
1497         Reviewed by Sam Weinig.
1498
1499         Add functions to ScrollableArea to convert between scrollPosition and scrollOffset,
1500         and use them in places where code did the math with scrollOrigin.
1501
1502         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
1503         (WebKit::RemoteLayerTreeDrawingArea::updateScrolledExposedRect):
1504         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1505         (WebKit::TiledCoreAnimationDrawingArea::updateScrolledExposedRect):
1506
1507 2015-12-30  Zan Dobersek  <zdobersek@igalia.com>
1508
1509         [TexMap] Clean up TextureMapperAnimation, TextureMapperAnimations
1510         https://bugs.webkit.org/show_bug.cgi?id=152112
1511
1512         Reviewed by Darin Adler.
1513
1514         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
1515         (IPC::ArgumentCoder<TextureMapperAnimation>::decode):
1516
1517 2015-12-29  Simon Fraser  <simon.fraser@apple.com>
1518
1519         Remove ScrollView::scrollOffset() in preparation for scrollOffset vs. scrollPosition clarification
1520         https://bugs.webkit.org/show_bug.cgi?id=152589
1521
1522         Reviewed by Sam Weinig.
1523
1524         Current code uses scrollOffset vs. scrollPosition interchangeably, and confusingly.
1525         Longer term, I plan to make "scrollPosition" be the value that is relative to the 
1526         contents, i.e. affected by scrollOrigin, and "scrollOffset" be the zero-based value
1527         that's used to set scrollbar values.
1528         
1529         To prepare for this, remove ScrollView::scrollOffset(), which is just the
1530         scrollPosition as an IntSize.
1531         
1532         Add some typedefs in ScrollableArea, which will slowly propagate through the
1533         code as position vs. offset is clarified.
1534
1535         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
1536         (WebKit::InjectedBundleRangeHandle::renderedImage):
1537         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.h:
1538         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
1539         (WebKit::PDFPlugin::scrollPosition):
1540         (WebKit::PDFPlugin::minimumScrollPosition):
1541         (WebKit::PDFPlugin::maximumScrollPosition):
1542         * WebProcess/WebPage/WebFrame.cpp:
1543         (WebKit::WebFrame::scrollOffset):
1544         * WebProcess/WebPage/WebPage.cpp:
1545         (WebKit::WebPage::scrollMainFrameIfNotAtMaxScrollPosition):
1546         (WebKit::WebPage::updateMainFrameScrollOffsetPinning):
1547
1548 2015-12-25  Andy Estes  <aestes@apple.com>
1549
1550         Stop moving local objects in return statements
1551         https://bugs.webkit.org/show_bug.cgi?id=152557
1552
1553         Reviewed by Brady Eidson.
1554
1555         Calling std::move() on a local object in a return statement prevents the compiler from applying the return value optimization.
1556
1557         Clang can warn about these mistakes with -Wpessimizing-move, although only when std::move() is called directly.
1558         I found these issues by temporarily replacing WTF::move with std::move and recompiling.
1559
1560         * UIProcess/WebPageProxy.cpp:
1561         (WebKit::ExceededDatabaseQuotaRecords::createRecord):
1562
1563 2015-12-26  Joonghun Park  <jh718.park@samsung.com>
1564
1565         [WK2][EFL] Use eina_file_path_join at platformDefaultIconDatabasePath in WebProcessPoolEfl
1566         https://bugs.webkit.org/show_bug.cgi?id=152565
1567
1568         Reviewed by Gyuyoung Kim.
1569
1570         Use eina_file_path_join and EINA_PATH_SEP_S at platformDefaultIconDatabasePath
1571         instead of operator+ and separator "/" respectively
1572         to concatenate paths.
1573
1574         * UIProcess/API/efl/APIWebsiteDataStoreEfl.cpp:
1575         * UIProcess/efl/WebProcessPoolEfl.cpp:
1576         (WebKit::WebProcessPool::platformDefaultIconDatabasePath):
1577
1578 2015-12-25  David Kilzer  <ddkilzer@apple.com>
1579
1580         ResourceError should store failingURL as URL instead of String to avoid reparsing and to address FIXME comments in ResourceErrorCF.cpp and ResourceErrorMac.mm
1581         <http://webkit.org/b/146391>
1582
1583         Reviewed by Antti Koivisto.
1584
1585         * NetworkProcess/Downloads/efl/DownloadSoupErrorsEfl.cpp:
1586         (WebKit::platformDownloadNetworkError):
1587         * NetworkProcess/Downloads/gtk/DownloadSoupErrorsGtk.cpp:
1588         (WebKit::platformDownloadNetworkError):
1589         * NetworkProcess/Downloads/soup/DownloadSoup.cpp:
1590         (WebKit::DownloadClient::didReceiveResponse):
1591         * NetworkProcess/Downloads/soup/DownloadSoupErrors.h:
1592         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
1593         (IPC::ArgumentCoder<ResourceError>::encodePlatformData):
1594         (IPC::ArgumentCoder<ResourceError>::decodePlatformData):
1595         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
1596         (LoaderClient::didFailProvisionalLoadWithErrorForFrame):
1597         (LoaderClient::didFailLoadWithErrorForFrame):
1598         * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
1599         (webkit_uri_scheme_request_finish_error):
1600         * WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp:
1601         (WebKit::internalError):
1602         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
1603         (WebKit::internalError):
1604         - Update for type change of 'failingURL' argument to
1605           ResourceError().
1606
1607 2015-12-23  Simon Fraser  <simon.fraser@apple.com>
1608
1609         Use "constrainedBetween" in more places
1610         https://bugs.webkit.org/show_bug.cgi?id=152543
1611
1612         Reviewed by Zalan Bujtas.
1613
1614         Replace code that contrains points via shrunkTo/expandedTo() with calls
1615         to constrainedBetween(), and implement constrainedBetween() on IntPoint,
1616         FloatPoint and LayoutPoint.
1617
1618         Convert some functions that return points to more modern syntax.
1619
1620         * UIProcess/API/Cocoa/WKWebView.mm:
1621         (constrainContentOffset):
1622
1623 2015-12-22  Hunseop Jeong  <hs85.jeong@samsung.com>
1624
1625         [EFL] ewk_application_cache_manager test failed after r193812
1626         https://bugs.webkit.org/show_bug.cgi?id=152498
1627
1628         Reviewed by Gyuyoung Kim.
1629
1630         Need to enable the offline_web_application_cache for the ewk_application_cache_manager test.
1631
1632         * UIProcess/API/efl/tests/test_ewk2_application_cache_manager.cpp:
1633         (TEST_F):
1634
1635 2015-12-22  Andy Estes  <aestes@apple.com>
1636
1637         [CF] Replace CFNetwork-related WebKitSystemInterface calls with SPI
1638         https://bugs.webkit.org/show_bug.cgi?id=152463
1639
1640         Reviewed by Alexey Proskuryakov.
1641
1642         Replaced WebkitSystemInterface calls that wrapped CFNetwork SPI with direct calls to SPI that is now forward
1643         declared in CFNetworkSPI.h.
1644
1645         * NetworkProcess/cocoa/NetworkProcessCocoa.mm:
1646         (WebKit::initializeNetworkSettings):
1647         * NetworkProcess/mac/NetworkProcessMac.mm:
1648         (WebKit::overrideSystemProxies):
1649         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1650         (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
1651         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1652         (InitWebCoreSystemInterface):
1653
1654 2015-12-22  Brent Fulgham  <bfulgham@apple.com>
1655
1656         Allow JavaScript to iterate over plugins for local SecurityOrigins
1657         https://bugs.webkit.org/show_bug.cgi?id=152489
1658
1659         Reviewed by Alexey Proskuryakov.
1660
1661         The 'getWebVisiblePluginInfo' is filtering plugins, even when we want to list
1662         all plugins. To avoid this, we check the Document's SecurityOrigin. If no such
1663         origin exists, we construct a SecurityOrigin from the URL.
1664         
1665         If the relevant SecurityOrigin satsifies 'isLocal', we show all plugins.
1666
1667         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1668         (WebKit::WebPlatformStrategies::getWebVisiblePluginInfo):
1669
1670 2015-12-21  Hunseop Jeong  <hs85.jeong@samsung.com>
1671
1672         [EFL] test_ewk2_context failed after r192808
1673         https://bugs.webkit.org/show_bug.cgi?id=151846
1674
1675         Reviewed by Gyuyoung Kim.
1676
1677         As we can make the single WebProcess behavior by setting the miximum number
1678         of WebProcess to 1 after r192808, I remove the ewk_context_process_model_{set|get}
1679         apis and add the ewk_context_web_process_count_limit_{set|get} apis and tests.
1680
1681         * UIProcess/API/efl/ewk_context.cpp:
1682         (EwkContext::EwkContext):
1683         (EwkContext::setProcessCountLimit):
1684         (EwkContext::processCountLimit):
1685         (ewk_context_web_process_count_limit_set):
1686         (ewk_context_web_process_count_limit_get):
1687         (EwkContext::setProcessModel): Deleted.
1688         (EwkContext::processModel): Deleted.
1689         (ewk_context_process_model_set): Deleted.
1690         (ewk_context_process_model_get): Deleted.
1691         * UIProcess/API/efl/ewk_context.h:
1692         * UIProcess/API/efl/ewk_context_private.h:
1693         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
1694         (EWK2UnitTest::EWK2UnitTestBase::SetUp):
1695         * UIProcess/API/efl/tests/test_ewk2_context.cpp:
1696         (TEST_F): Changed the ewk_context_{web|network}_process_model tests to
1697         ewk_context_{web|network}_process_count_limit tests.
1698
1699 2015-12-21  Joonghun Park  <jh718.park@samsung.com>
1700
1701         [WK2][EFL] Use cacheDirectoryFileSystemRepresentation and websiteDataDirectoryFileSystemRepresentation
1702         to refactor APIWebsiteDataStoreEfl
1703         https://bugs.webkit.org/show_bug.cgi?id=152475
1704
1705         Reviewed by Gyuyoung Kim.
1706
1707         Use cacheDirectoryFileSystemRepresentation and websiteDataDirectoryFileSystemRepresentation
1708         instead of to use efreet_cache_home_get
1709         and efreet_data_home_get directly.
1710         And also use EINA_PATH_SEP_S instead of "/" as directory separator,
1711         and WebCore::pathByAppendingComponent instead of operator+.
1712
1713         * UIProcess/API/efl/APIWebsiteDataStoreEfl.cpp:
1714         (API::WebsiteDataStore::defaultApplicationCacheDirectory):
1715         (API::WebsiteDataStore::defaultNetworkCacheDirectory):
1716         (API::WebsiteDataStore::defaultIndexedDBDatabaseDirectory):
1717         (API::WebsiteDataStore::defaultLocalStorageDirectory):
1718         (API::WebsiteDataStore::defaultMediaKeysStorageDirectory):
1719         (API::WebsiteDataStore::defaultWebSQLDatabaseDirectory):
1720         (API::WebsiteDataStore::cacheDirectoryFileSystemRepresentation):
1721         (API::WebsiteDataStore::websiteDataDirectoryFileSystemRepresentation):
1722
1723 2015-12-21  Antti Koivisto  <antti@apple.com>
1724
1725         Factor NetworkResourceLoader code for storing a cache entry into a function
1726         https://bugs.webkit.org/show_bug.cgi?id=152467
1727
1728         Reviewed by Andreas Kling.
1729
1730         * NetworkProcess/NetworkResourceLoader.cpp:
1731         (WebKit::NetworkResourceLoader::didFinishLoading):
1732
1733             Having m_cacheEntryForValidation already implies canUseCache() so remove the test from this path.
1734             Move storing to the end of the function so we don't delay DidFinishResourceLoad message on it.
1735
1736         (WebKit::NetworkResourceLoader::sendBufferMaybeAborting):
1737         (WebKit::NetworkResourceLoader::tryStoreAsCacheEntry):
1738
1739             Factor to a function.
1740             Remove m_response.isHTTP() test as it is covered by NetworkCache::store().
1741             Remove !isPrivateSession test as it is covered by NetworkResourceLoader::canUseCache().
1742
1743         (WebKit::NetworkResourceLoader::didRetrieveCacheEntry):
1744         * NetworkProcess/NetworkResourceLoader.h:
1745
1746 2015-12-21  Antti Koivisto  <antti@apple.com>
1747
1748         Limit cached redirect chain length
1749         https://bugs.webkit.org/show_bug.cgi?id=152477
1750
1751         Reviewed by Andreas Kling.
1752
1753         Networking layer prevents cycles and limits the redirect chain length so creating cache cycles is difficult.
1754         For robustness the network cache should still limit the maximum redirect chain length.
1755
1756         This patch adds a limit of five redirects both when storing and retrieving cache entries.
1757
1758         * NetworkProcess/NetworkResourceLoader.cpp:
1759         (WebKit::NetworkResourceLoader::canUseCache):
1760         (WebKit::NetworkResourceLoader::canUseCachedRedirect):
1761         (WebKit::NetworkResourceLoader::willSendRedirectedRequest):
1762         (WebKit::NetworkResourceLoader::continueWillSendRequest):
1763         (WebKit::NetworkResourceLoader::dispatchWillSendRequestForCacheEntry):
1764         * NetworkProcess/NetworkResourceLoader.h:
1765
1766 2015-12-21  Dan Bernstein  <mitz@apple.com>
1767
1768         Different and incorrect flags are passed to sendSync when accessibility is enabled, SpinRunLoopWhileWaitingForReply
1769         https://bugs.webkit.org/show_bug.cgi?id=126021
1770
1771         Reviewed by Darin Adler.
1772
1773         Get rid of SpinRunLoopWhileWaitingForReply because it’s not used anymore.
1774
1775         * Platform/IPC/Connection.cpp:
1776         (IPC::Connection::waitForSyncReply): Removed the SpinRunLoopWhileWaitingForReply branch.
1777
1778         * Platform/IPC/Connection.h: Removed SpinRunLoopWhileWaitingForReply.
1779
1780         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1781         (WebKit::WebChromeClient::runBeforeUnloadConfirmPanel): Don’t check
1782           WebPage::synchronousMessagesShouldSpinRunLoop() and don’t specify
1783           SpinRunLoopWhileWaitingForReply.
1784         (WebKit::WebChromeClient::runJavaScriptAlert): Ditto.
1785         (WebKit::WebChromeClient::runJavaScriptConfirm): Ditto.
1786         (WebKit::WebChromeClient::runJavaScriptPrompt): Ditto.
1787         (WebKit::WebChromeClient::print): Ditto.
1788         (WebKit::WebChromeClient::exceededDatabaseQuota): Ditto.
1789         (WebKit::WebChromeClient::reachedApplicationCacheOriginQuota): Ditto.
1790
1791         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1792         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse): Ditto.
1793
1794         * WebProcess/WebPage/WebPage.cpp:
1795         (WebKit::WebPage::synchronousMessagesShouldSpinRunLoop): Deleted.
1796         * WebProcess/WebPage/WebPage.h:
1797
1798 2015-12-20  Joonghun Park  <jh718.park@samsung.com>
1799
1800         [WK2][EFL] Use WebsiteDataStore instead of WebDatabaseManager which has been deleted in r194295
1801         https://bugs.webkit.org/show_bug.cgi?id=152460
1802
1803         Reviewed by Gyuyoung Kim.
1804
1805         Use WebsiteDataStore to support EFL WebDatabase API and to fix build break.
1806
1807         * PlatformEfl.cmake:
1808         * UIProcess/API/APIWebsiteDataStore.cpp:
1809         * UIProcess/API/efl/APIWebsiteDataStoreEfl.cpp: Copied from Source/WebKit2/UIProcess/API/APIWebsiteDataStore.cpp.
1810         (API::WebsiteDataStore::defaultApplicationCacheDirectory):
1811         (API::WebsiteDataStore::defaultNetworkCacheDirectory):
1812         (API::WebsiteDataStore::defaultIndexedDBDatabaseDirectory):
1813         (API::WebsiteDataStore::defaultLocalStorageDirectory):
1814         (API::WebsiteDataStore::defaultMediaKeysStorageDirectory):
1815         (API::WebsiteDataStore::defaultWebSQLDatabaseDirectory):
1816         (API::WebsiteDataStore::cacheDirectoryFileSystemRepresentation):
1817         (API::WebsiteDataStore::websiteDataDirectoryFileSystemRepresentation):
1818         (API::WebsiteDataStore::defaultDataStoreConfiguration):
1819         * UIProcess/API/efl/ewk_context.cpp:
1820         (EwkContext::EwkContext):
1821         * UIProcess/API/efl/ewk_database_manager.cpp:
1822         (EwkDatabaseManager::EwkDatabaseManager):
1823         (EwkDatabaseManager::getDatabaseOrigins):
1824         * UIProcess/API/efl/ewk_database_manager_private.h:
1825         * UIProcess/efl/WebProcessPoolEfl.cpp:
1826         (WebKit::WebProcessPool::legacyPlatformDefaultApplicationCacheDirectory):
1827         (WebKit::WebProcessPool::legacyPlatformDefaultWebSQLDatabaseDirectory):
1828         (WebKit::WebProcessPool::legacyPlatformDefaultIndexedDBDatabaseDirectory):
1829         (WebKit::WebProcessPool::legacyPlatformDefaultLocalStorageDirectory):
1830         (WebKit::WebProcessPool::legacyPlatformDefaultMediaKeysStorageDirectory):
1831         (WebKit::WebProcessPool::legacyPlatformDefaultNetworkCacheDirectory):
1832
1833 2015-12-20  Dan Bernstein  <mitz@apple.com>
1834
1835         Remove unused setToolbarHeight
1836         https://bugs.webkit.org/show_bug.cgi?id=152466
1837
1838         Reviewed by Darin Adler.
1839
1840         * UIProcess/WebInspectorProxy.cpp:
1841         (WebKit::WebInspectorProxy::platformSetToolbarHeight): Deleted.
1842         * UIProcess/WebInspectorProxy.h:
1843         (WebKit::WebInspectorProxy::setToolbarHeight): Deleted.
1844         * UIProcess/WebInspectorProxy.messages.in:
1845         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1846         (WebKit::WebInspectorProxy::platformSetToolbarHeight): Deleted.
1847         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
1848         (WebKit::WebInspectorProxy::platformSetToolbarHeight): Deleted.
1849         * UIProcess/mac/WebInspectorProxyMac.mm:
1850         (WebKit::WebInspectorProxy::platformSetToolbarHeight): Deleted.
1851         * WebProcess/WebPage/WebInspectorUI.cpp:
1852         (WebKit::WebInspectorUI::setToolbarHeight): Deleted.
1853         * WebProcess/WebPage/WebInspectorUI.h:
1854
1855 2015-12-19  Dan Bernstein  <mitz@apple.com>
1856
1857         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
1858         https://bugs.webkit.org/show_bug.cgi?id=152462
1859
1860         Reviewed by Alexey Proskuryakov.
1861
1862         - Removed build setting definitions for OS X 10.9 and earlier, and simplified defintions
1863           that became uniform across all OS X versions as a result:
1864
1865         * Configurations/BaseTarget.xcconfig:
1866         * Configurations/BaseXPCService.xcconfig:
1867         * Configurations/DebugRelease.xcconfig:
1868         * Configurations/FeatureDefines.xcconfig:
1869         * Configurations/Version.xcconfig:
1870         * Configurations/WebKit.xcconfig:
1871
1872         - Removed the definition of BUNDLE_LOCALIZATION_KEY:
1873
1874         * Configurations/WebContentService.Development.xcconfig:
1875         * Configurations/WebContentService.xcconfig:
1876
1877         - Added CFBundleFollowParentLocalization set to true:
1878
1879         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-OSX.plist:
1880         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-iOS.plist:
1881         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX-10.9-10.10.plist:
1882         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist:
1883         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-iOS.plist:
1884
1885         * WebKit2.xcodeproj/project.pbxproj: Removed the “Add CFBundle Localization Info.plist Key”
1886           script build phases from the Web Content Service targets.
1887
1888         - Simplified expressions involving __MAC_OS_X_VERSION_MIN_REQUIRED and removed code that was
1889           never getting compiled:
1890
1891         * DatabaseProcess/mac/com.apple.WebKit.Databases.sb.in:
1892         * NetworkProcess/cocoa/NetworkProcessCocoa.mm:
1893         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
1894         * Platform/IPC/mac/ConnectionMac.mm:
1895         * Platform/IPC/mac/ImportanceAssertion.h:
1896         * Platform/mac/MenuUtilities.h:
1897         * Platform/mac/MenuUtilities.mm:
1898         * Platform/mac/StringUtilities.h:
1899         * Platform/mac/StringUtilities.mm:
1900         * Shared/API/Cocoa/WKFoundation.h:
1901         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
1902         * UIProcess/API/Cocoa/WKViewPrivate.h:
1903         * UIProcess/API/Cocoa/WKWebView.mm:
1904         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
1905         * UIProcess/API/mac/WKView.mm:
1906         * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
1907         * UIProcess/Cocoa/WebViewImpl.h:
1908         * UIProcess/Cocoa/WebViewImpl.mm:
1909         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1910         * UIProcess/mac/PageClientImpl.mm:
1911         * UIProcess/mac/WKImmediateActionController.h:
1912         * UIProcess/mac/WKImmediateActionController.mm:
1913         * UIProcess/mac/WebInspectorProxyMac.mm:
1914         * WebProcess/WebPage/FindController.cpp:
1915         * WebProcess/WebPage/WebPage.cpp:
1916         * WebProcess/com.apple.WebProcess.sb.in:
1917         * config.h:
1918
1919 2015-12-18  Antti Koivisto  <antti@apple.com>
1920
1921         Cache redirects as separate entries
1922         https://bugs.webkit.org/show_bug.cgi?id=152424
1923
1924         Reviewed by Alex Christensen.
1925
1926         We are currently caching redirect chains. This has correctness issues and can be inefficient in cases
1927         where multiple URLs redirect to the same destination.
1928
1929         After this patch we write a cache entry for each redirect individually.
1930
1931         * NetworkProcess/NetworkLoad.cpp:
1932         (WebKit::NetworkLoad::sharedWillSendRedirectedRequest):
1933         * NetworkProcess/NetworkLoad.h:
1934         (WebKit::NetworkLoad::currentRequest):
1935         (WebKit::NetworkLoad::clearCurrentRequest):
1936         * NetworkProcess/NetworkLoadClient.h:
1937
1938             Add original request as a parameter for willSendRedirectedRequest.
1939
1940         * NetworkProcess/NetworkResourceLoader.cpp:
1941         (WebKit::NetworkResourceLoader::~NetworkResourceLoader):
1942         (WebKit::NetworkResourceLoader::canUseCache):
1943
1944             Factor to a function.
1945
1946         (WebKit::NetworkResourceLoader::isSynchronous):
1947         (WebKit::NetworkResourceLoader::start):
1948         (WebKit::NetworkResourceLoader::retrieveCacheEntry):
1949
1950             Factor to a function.
1951             Call dispatchWillSendRequestForCacheEntry for cached redirects.
1952
1953         (WebKit::NetworkResourceLoader::startNetworkLoad):
1954
1955             Make this take request as argument instead of always loading originalRequest().
1956
1957         (WebKit::NetworkResourceLoader::abort):
1958         (WebKit::NetworkResourceLoader::didFinishLoading):
1959
1960             Remove redirect chain code.
1961             Store cache entry for current request instead of the original request.
1962
1963         (WebKit::NetworkResourceLoader::didFailLoading):
1964         (WebKit::NetworkResourceLoader::willSendRedirectedRequest):
1965
1966             Write cache entry for redirect.
1967
1968         (WebKit::NetworkResourceLoader::continueWillSendRequest):
1969
1970             If we are playing back cached redirect continue with another cache lookup.
1971
1972         (WebKit::NetworkResourceLoader::didRetrieveCacheEntry):
1973
1974             No need to synthesize fake willSendRequest anymore.
1975
1976         (WebKit::NetworkResourceLoader::validateCacheEntry):
1977         (WebKit::NetworkResourceLoader::dispatchWillSendRequestForCacheEntry):
1978
1979             Route via web process willSendRequest so cached redirects looks exactly like network ones.
1980
1981         (WebKit::NetworkResourceLoader::messageSenderConnection):
1982         * NetworkProcess/NetworkResourceLoader.h:
1983         * NetworkProcess/cache/NetworkCache.cpp:
1984         (WebKit::NetworkCache::makeUseDecision):
1985
1986             Ignore validation headers for cached redirects.
1987
1988         (WebKit::NetworkCache::makeRetrieveDecision):
1989         (WebKit::NetworkCache::makeStoreDecision):
1990         (WebKit::NetworkCache::Cache::retrieve):
1991         (WebKit::NetworkCache::Cache::store):
1992
1993             Rename originalRequest -> request since it is not really the original request anymore in all cases.
1994
1995         (WebKit::NetworkCache::Cache::storeRedirect):
1996
1997             Stored redirects include the network layer generated ResourceRequest instead of body data.
1998
1999         (WebKit::NetworkCache::Cache::update):
2000         * NetworkProcess/cache/NetworkCache.h:
2001         * NetworkProcess/cache/NetworkCacheEntry.cpp:
2002         (WebKit::NetworkCache::Entry::Entry):
2003
2004             New constructor for making redirect entries.
2005
2006         (WebKit::NetworkCache::Entry::encodeAsStorageRecord):
2007         (WebKit::NetworkCache::Entry::decodeStorageRecord):
2008
2009             Encoding support.
2010
2011         * NetworkProcess/cache/NetworkCacheEntry.h:
2012         (WebKit::NetworkCache::Entry::varyingRequestHeaders):
2013         (WebKit::NetworkCache::Entry::redirectRequest):
2014         * NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp:
2015         (WebKit::NetworkCache::SpeculativeLoad::~SpeculativeLoad):
2016         (WebKit::NetworkCache::SpeculativeLoad::willSendRedirectedRequest):
2017         * NetworkProcess/cache/NetworkCacheSpeculativeLoad.h:
2018         * NetworkProcess/cache/NetworkCacheStatistics.cpp:
2019         (WebKit::NetworkCache::cachedEntryReuseFailureToDiagnosticKey):
2020
2021 2015-12-18  Michael Catanzaro  <mcatanzaro@igalia.com>
2022
2023         Avoid triggering clang's -Wundefined-bool-conversion
2024         https://bugs.webkit.org/show_bug.cgi?id=152408
2025
2026         Reviewed by Mark Lam.
2027
2028         Use ASSERT_THIS_GC_OBJECT_INHERITS where needed.
2029
2030         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2031         (WebKit::JSNPObject::callMethod):
2032         (WebKit::JSNPObject::callObject):
2033         (WebKit::JSNPObject::callConstructor):
2034         (WebKit::JSNPObject::deleteProperty):
2035
2036 2015-12-15  Anders Carlsson  <andersca@apple.com>
2037
2038         Get rid of WebDatabaseManager, it's been replaced by WebsiteDataStore
2039         https://bugs.webkit.org/show_bug.cgi?id=152318
2040
2041         Reviewed by Tim Horton.
2042
2043         Build fixes by Ossy.
2044
2045         * DerivedSources.make:
2046         * Shared/API/APIObject.h:
2047         * Shared/API/c/WKBase.h:
2048         * UIProcess/API/C/WKAPICast.h:
2049         * UIProcess/API/C/WKContext.cpp:
2050         (WKContextGetDatabaseManager): Deleted.
2051         * UIProcess/API/C/WKContext.h:
2052         * UIProcess/API/C/WKDatabaseManager.cpp: Removed.
2053         (WKDatabaseManagerGetTypeID): Deleted.
2054         (WKDatabaseManagerGetOriginKey): Deleted.
2055         (WKDatabaseManagerGetOriginQuotaKey): Deleted.
2056         (WKDatabaseManagerGetOriginUsageKey): Deleted.
2057         (WKDatabaseManagerGetDatabaseDetailsKey): Deleted.
2058         (WKDatabaseManagerGetDatabaseDetailsNameKey): Deleted.
2059         (WKDatabaseManagerGetDatabaseDetailsDisplayNameKey): Deleted.
2060         (WKDatabaseManagerGetDatabaseDetailsExpectedUsageKey): Deleted.
2061         (WKDatabaseManagerGetDatabaseDetailsCurrentUsageKey): Deleted.
2062         (WKDatabaseManagerGetDatabaseDetailsCreationTimeKey): Deleted.
2063         (WKDatabaseManagerGetDatabaseDetailsModificationTimeKey): Deleted.
2064         (WKDatabaseManagerSetClient): Deleted.
2065         (WKDatabaseManagerGetDatabasesByOrigin): Deleted.
2066         (WKDatabaseManagerGetDatabaseOrigins): Deleted.
2067         (WKDatabaseManagerDeleteDatabasesWithNameForOrigin): Deleted.
2068         (WKDatabaseManagerDeleteDatabasesForOrigin): Deleted.
2069         (WKDatabaseManagerDeleteAllDatabases): Deleted.
2070         (WKDatabaseManagerSetQuotaForOrigin): Deleted.
2071         * UIProcess/API/C/WKDatabaseManager.h: Removed.
2072         * UIProcess/WebDatabaseManagerProxy.cpp: Removed.
2073         (WebKit::WebDatabaseManagerProxy::supplementName): Deleted.
2074         (WebKit::WebDatabaseManagerProxy::originKey): Deleted.
2075         (WebKit::WebDatabaseManagerProxy::originQuotaKey): Deleted.
2076         (WebKit::WebDatabaseManagerProxy::originUsageKey): Deleted.
2077         (WebKit::WebDatabaseManagerProxy::databaseDetailsKey): Deleted.
2078         (WebKit::WebDatabaseManagerProxy::databaseDetailsNameKey): Deleted.
2079         (WebKit::WebDatabaseManagerProxy::databaseDetailsDisplayNameKey): Deleted.
2080         (WebKit::WebDatabaseManagerProxy::databaseDetailsExpectedUsageKey): Deleted.
2081         (WebKit::WebDatabaseManagerProxy::databaseDetailsCurrentUsageKey): Deleted.
2082         (WebKit::WebDatabaseManagerProxy::databaseDetailsCreationTimeKey): Deleted.
2083         (WebKit::WebDatabaseManagerProxy::databaseDetailsModificationTimeKey): Deleted.
2084         (WebKit::WebDatabaseManagerProxy::create): Deleted.
2085         (WebKit::WebDatabaseManagerProxy::WebDatabaseManagerProxy): Deleted.
2086         (WebKit::WebDatabaseManagerProxy::~WebDatabaseManagerProxy): Deleted.
2087         (WebKit::WebDatabaseManagerProxy::initializeClient): Deleted.
2088         (WebKit::WebDatabaseManagerProxy::processPoolDestroyed): Deleted.
2089         (WebKit::WebDatabaseManagerProxy::processDidClose): Deleted.
2090         (WebKit::WebDatabaseManagerProxy::shouldTerminate): Deleted.
2091         (WebKit::WebDatabaseManagerProxy::refWebContextSupplement): Deleted.
2092         (WebKit::WebDatabaseManagerProxy::derefWebContextSupplement): Deleted.
2093         (WebKit::WebDatabaseManagerProxy::getDatabasesByOrigin): Deleted.
2094         (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin): Deleted.
2095         (WebKit::WebDatabaseManagerProxy::getDatabaseOrigins): Deleted.
2096         (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins): Deleted.
2097         (WebKit::WebDatabaseManagerProxy::deleteDatabaseWithNameForOrigin): Deleted.
2098         (WebKit::WebDatabaseManagerProxy::deleteDatabasesForOrigin): Deleted.
2099         (WebKit::WebDatabaseManagerProxy::deleteAllDatabases): Deleted.
2100         (WebKit::WebDatabaseManagerProxy::setQuotaForOrigin): Deleted.
2101         (WebKit::WebDatabaseManagerProxy::didModifyOrigin): Deleted.
2102         (WebKit::WebDatabaseManagerProxy::didModifyDatabase): Deleted.
2103         * UIProcess/WebDatabaseManagerProxy.h: Removed.
2104         * UIProcess/WebDatabaseManagerProxy.messages.in: Removed.
2105         * UIProcess/WebDatabaseManagerProxyClient.cpp: Removed.
2106         (WebKit::WebDatabaseManagerProxyClient::didModifyOrigin): Deleted.
2107         (WebKit::WebDatabaseManagerProxyClient::didModifyDatabase): Deleted.
2108         * UIProcess/WebDatabaseManagerProxyClient.h: Removed.
2109         * UIProcess/WebProcessPool.cpp:
2110         * WebKit2.xcodeproj/project.pbxproj:
2111         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2112         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp: Removed.
2113         (WebKit::WebDatabaseManager::supplementName): Deleted.
2114         (WebKit::WebDatabaseManager::WebDatabaseManager): Deleted.
2115         (WebKit::WebDatabaseManager::initialize): Deleted.
2116         (WebKit::WebDatabaseManager::getDatabasesByOrigin): Deleted.
2117         (WebKit::WebDatabaseManager::getDatabaseOrigins): Deleted.
2118         (WebKit::WebDatabaseManager::deleteDatabaseWithNameForOrigin): Deleted.
2119         (WebKit::WebDatabaseManager::deleteDatabasesForOrigin): Deleted.
2120         (WebKit::WebDatabaseManager::deleteAllDatabases): Deleted.
2121         (WebKit::WebDatabaseManager::closeAllDatabases): Deleted.
2122         (WebKit::WebDatabaseManager::setQuotaForOrigin): Deleted.
2123         (WebKit::WebDatabaseManager::dispatchDidModifyOrigin): Deleted.
2124         (WebKit::WebDatabaseManager::dispatchDidModifyDatabase): Deleted.
2125         * WebProcess/WebCoreSupport/WebDatabaseManager.h: Removed.
2126         * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in: Removed.
2127         * WebProcess/WebCoreSupport/ios/WebDatabaseManagerIOS.mm: Removed.
2128         (WebKit::WebDatabaseManager::dispatchDidAddNewOrigin): Deleted.
2129         (WebKit::WebDatabaseManager::dispatchDidDeleteDatabase): Deleted.
2130         (WebKit::WebDatabaseManager::dispatchDidDeleteDatabaseOrigin): Deleted.
2131         * WebProcess/WebProcess.cpp:
2132         (WebKit::WebProcess::processWillSuspendImminently):
2133         (WebKit::m_webSQLiteDatabaseTracker): Deleted.
2134
2135 2015-12-18  Michael Catanzaro  <mcatanzaro@igalia.com>
2136
2137         [GTK] Unreviewed, fix GtkDoc after r193620
2138
2139         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml:
2140
2141 2015-12-18  Dan Bernstein  <mitz@apple.com>
2142
2143         WebPage::didCompleteUserMediaPermissionCheck and WebPage::didReceiveUserMediaPermissionDecision are exported
2144         https://bugs.webkit.org/show_bug.cgi?id=152429
2145
2146         Reviewed by Tim Horton.
2147
2148         * WebProcess/WebPage/WebPage.h: Removed WK_EXPORT specifiers from these two declarations.
2149
2150 2015-12-18  Alex Christensen  <achristensen@webkit.org>
2151
2152         Move networking code from Shared to NetworkProcess
2153         https://bugs.webkit.org/show_bug.cgi?id=152421
2154
2155         Reviewed by Antti Koivisto.
2156
2157         Since recently removing the non-NetworkProcess configurations, this code is no longer shared with the WebProcess.
2158
2159         * CMakeLists.txt:
2160         * DerivedSources.make:
2161         * NetworkProcess/CustomProtocols: Copied from Source/WebKit2/Shared/Network/CustomProtocols.
2162         * NetworkProcess/Downloads: Copied from Source/WebKit2/Shared/Downloads.
2163         * NetworkProcess/Downloads/Download.cpp: Copied from Source/WebKit2/Shared/Downloads/Download.cpp.
2164         * NetworkProcess/Downloads/Download.h: Copied from Source/WebKit2/Shared/Downloads/Download.h.
2165         * NetworkProcess/Downloads/DownloadID.h: Copied from Source/WebKit2/Shared/Downloads/DownloadID.h.
2166         * NetworkProcess/Downloads/DownloadManager.cpp: Copied from Source/WebKit2/Shared/Downloads/DownloadManager.cpp.
2167         * NetworkProcess/Downloads/DownloadManager.h: Copied from Source/WebKit2/Shared/Downloads/DownloadManager.h.
2168         * NetworkProcess/NetworkProcessCreationParameters.cpp: Copied from Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.cpp.
2169         * NetworkProcess/NetworkProcessCreationParameters.h: Copied from Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.h.
2170         * NetworkProcess/NetworkProcessSupplement.h: Copied from Source/WebKit2/Shared/Network/NetworkProcessSupplement.h.
2171         * NetworkProcess/NetworkResourceLoadParameters.cpp: Copied from Source/WebKit2/Shared/Network/NetworkResourceLoadParameters.cpp.
2172         * NetworkProcess/NetworkResourceLoadParameters.h: Copied from Source/WebKit2/Shared/Network/NetworkResourceLoadParameters.h.
2173         * PlatformEfl.cmake:
2174         * PlatformGTK.cmake:
2175         * PlatformMac.cmake:
2176         * Shared/Downloads: Removed.
2177         * Shared/Downloads/Download.cpp: Removed.
2178         * Shared/Downloads/Download.h: Removed.
2179         * Shared/Downloads/DownloadAuthenticationClient.cpp: Removed.
2180         * Shared/Downloads/DownloadAuthenticationClient.h: Removed.
2181         * Shared/Downloads/DownloadID.h: Removed.
2182         * Shared/Downloads/DownloadManager.cpp: Removed.
2183         * Shared/Downloads/DownloadManager.h: Removed.
2184         * Shared/Downloads/cocoa: Removed.
2185         * Shared/Downloads/cocoa/DownloadCocoa.mm: Removed.
2186         * Shared/Downloads/efl: Removed.
2187         * Shared/Downloads/efl/DownloadSoupErrorsEfl.cpp: Removed.
2188         * Shared/Downloads/gtk: Removed.
2189         * Shared/Downloads/gtk/DownloadSoupErrorsGtk.cpp: Removed.
2190         * Shared/Downloads/ios: Removed.
2191         * Shared/Downloads/ios/DownloadIOS.mm: Removed.
2192         * Shared/Downloads/mac: Removed.
2193         * Shared/Downloads/mac/DownloadMac.mm: Removed.
2194         * Shared/Downloads/soup: Removed.
2195         * Shared/Downloads/soup/DownloadSoup.cpp: Removed.
2196         * Shared/Downloads/soup/DownloadSoupErrors.h: Removed.
2197         * Shared/Network: Removed.
2198         * Shared/Network/CustomProtocols: Removed.
2199         * Shared/Network/CustomProtocols/Cocoa: Removed.
2200         * Shared/Network/CustomProtocols/Cocoa/CustomProtocolManagerCocoa.mm: Removed.
2201         * Shared/Network/CustomProtocols/CustomProtocolManager.h: Removed.
2202         * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in: Removed.
2203         * Shared/Network/CustomProtocols/soup: Removed.
2204         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.cpp: Removed.
2205         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.h: Removed.
2206         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp: Removed.
2207         * Shared/Network/NetworkProcessCreationParameters.cpp: Removed.
2208         * Shared/Network/NetworkProcessCreationParameters.h: Removed.
2209         * Shared/Network/NetworkProcessSupplement.h: Removed.
2210         * Shared/Network/NetworkResourceLoadParameters.cpp: Removed.
2211         * Shared/Network/NetworkResourceLoadParameters.h: Removed.
2212         * WebKit2.xcodeproj/project.pbxproj:
2213
2214 2015-12-18  Michael Catanzaro  <mcatanzaro@igalia.com>
2215
2216         LayerTreeHostGtk triggers -Wunused-private-field
2217         https://bugs.webkit.org/show_bug.cgi?id=152410
2218
2219         Reviewed by Carlos Garcia Campos.
2220
2221         Remove the unused member variable.
2222
2223         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
2224
2225 2015-12-18  Alex Christensen  <achristensen@webkit.org>
2226
2227         Add types for DownloadID and TaskIdentifier
2228         https://bugs.webkit.org/show_bug.cgi?id=152401
2229
2230         Reviewed by Brady Eidson.
2231
2232         DownloadID and TaskIdentifier used to both be just uint64_t's.
2233         It is confusing to distinguish between them, so now they both have names.
2234         We need a HashMap<TaskIdentifier, DownloadID> instead of a HashMap<uint64_t, uint64_t>.
2235
2236         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
2237         (WebKit::storageSession):
2238         (WebKit::NetworkConnectionToWebProcess::startDownload):
2239         (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
2240         * NetworkProcess/NetworkConnectionToWebProcess.h:
2241         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
2242         * NetworkProcess/NetworkProcess.cpp:
2243         (WebKit::NetworkProcess::deleteWebsiteDataForOrigins):
2244         (WebKit::NetworkProcess::downloadRequest):
2245         (WebKit::NetworkProcess::resumeDownload):
2246         (WebKit::NetworkProcess::cancelDownload):
2247         (WebKit::NetworkProcess::getNetworkProcessStatistics):
2248         (WebKit::NetworkProcess::logDiagnosticMessage):
2249         (WebKit::NetworkProcess::logDiagnosticMessageWithResult):
2250         (WebKit::NetworkProcess::logDiagnosticMessageWithValue):
2251         * NetworkProcess/NetworkProcess.h:
2252         * NetworkProcess/NetworkProcess.messages.in:
2253         * NetworkProcess/NetworkSession.h:
2254         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
2255         (WebKit::NetworkSession::createDataTaskWithRequest):
2256         (WebKit::NetworkSession::dataTaskForIdentifier):
2257         (WebKit::NetworkDataTask::resume):
2258         (WebKit::NetworkDataTask::taskIdentifier): Deleted.
2259         * Shared/Downloads/Download.cpp:
2260         (WebKit::Download::Download):
2261         (WebKit::Download::messageSenderDestinationID):
2262         * Shared/Downloads/Download.h:
2263         (WebKit::Download::downloadID):
2264         * Shared/Downloads/DownloadID.h: Added.
2265         (WebKit::DownloadID::DownloadID):
2266         (WebKit::DownloadID::operator==):
2267         (WebKit::DownloadID::downloadID):
2268         (IPC::ArgumentCoder<WebKit::DownloadID>::encode):
2269         (IPC::ArgumentCoder<WebKit::DownloadID>::decode):
2270         (WTF::DownloadIDHash::hash):
2271         (WTF::DownloadIDHash::equal):
2272         (WTF::HashTraits<WebKit::DownloadID>::emptyValue):
2273         (WTF::HashTraits<WebKit::DownloadID>::constructDeletedValue):
2274         (WTF::HashTraits<WebKit::DownloadID>::isDeletedValue):
2275         * Shared/Downloads/DownloadManager.cpp:
2276         (WebKit::DownloadManager::DownloadManager):
2277         (WebKit::DownloadManager::startDownload):
2278         (WebKit::DownloadManager::convertHandleToDownload):
2279         (WebKit::DownloadManager::resumeDownload):
2280         (WebKit::DownloadManager::cancelDownload):
2281         * Shared/Downloads/DownloadManager.h:
2282         (WebKit::DownloadManager::isDownloading):
2283         * UIProcess/API/C/WKDownload.cpp:
2284         (WKDownloadGetID):
2285         (WKDownloadCopyRequest):
2286         * UIProcess/Downloads/DownloadProxy.h:
2287         (WebKit::DownloadProxy::downloadID):
2288         (WebKit::DownloadProxy::request):
2289         (WebKit::DownloadProxy::resumeData):
2290         * UIProcess/Downloads/DownloadProxyMap.cpp:
2291         (WebKit::DownloadProxyMap::createDownloadProxy):
2292         (WebKit::DownloadProxyMap::downloadFinished):
2293         (WebKit::DownloadProxyMap::processDidClose):
2294         * UIProcess/Downloads/DownloadProxyMap.h:
2295         * UIProcess/WebPageProxy.cpp:
2296         (WebKit::WebPageProxy::receivedPolicyDecision):
2297         (WebKit::WebPageProxy::frameDidBecomeFrameSet):
2298         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
2299         (WebKit::WebPageProxy::decidePolicyForResponse):
2300         (WebKit::WebPageProxy::decidePolicyForResponseSync):
2301         * UIProcess/WebPageProxy.h:
2302         * UIProcess/WebPageProxy.messages.in:
2303         * WebKit2.xcodeproj/project.pbxproj:
2304         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2305         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2306         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2307         * WebProcess/WebPage/WebFrame.cpp:
2308         (WebKit::WebFrame::invalidatePolicyListener):
2309         (WebKit::WebFrame::didReceivePolicyDecision):
2310         (WebKit::WebFrame::startDownload):
2311         (WebKit::WebFrame::convertMainResourceLoadToDownload):
2312         * WebProcess/WebPage/WebFrame.h:
2313         * WebProcess/WebPage/WebPage.cpp:
2314         (WebKit::WebPage::setSessionID):
2315         (WebKit::WebPage::didReceivePolicyDecision):
2316         * WebProcess/WebPage/WebPage.h:
2317         * WebProcess/WebPage/WebPage.messages.in:
2318
2319 2015-12-17  Dan Bernstein  <mitz@apple.com>
2320
2321         Fixed a typo from r194022.
2322
2323         * Configurations/WebKit.xcconfig: Changed PlugInProcessShim.dylib to PluginProcessShim.dylib.
2324
2325 2015-12-17  Commit Queue  <commit-queue@webkit.org>
2326
2327         Unreviewed, rolling out r194250 and r194254.
2328         https://bugs.webkit.org/show_bug.cgi?id=152414
2329
2330         broke api tests (Requested by alexchristensen on #webkit).
2331
2332         Reverted changesets:
2333
2334         "Add types for DownloadID and TaskIdentifier"
2335         https://bugs.webkit.org/show_bug.cgi?id=152401
2336         http://trac.webkit.org/changeset/194250
2337
2338         "Build fix after r194250"
2339         http://trac.webkit.org/changeset/194254
2340
2341 2015-12-17  Alex Christensen  <achristensen@webkit.org>
2342
2343         Build fix after r194250
2344
2345         * WebKit2.xcodeproj/project.pbxproj:
2346         Change target membership from all to WebKit.
2347
2348 2015-12-17  Alex Christensen  <achristensen@webkit.org>
2349
2350         Add types for DownloadID and TaskIdentifier
2351         https://bugs.webkit.org/show_bug.cgi?id=152401
2352
2353         Reviewed by Brady Eidson.
2354
2355         DownloadID and TaskIdentifier used to both be just uint64_t's.
2356         It is confusing to distinguish between them, so now they both have names.
2357         We need a HashMap<TaskIdentifier, DownloadID> instead of a HashMap<uint64_t, uint64_t>.
2358
2359         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
2360         (WebKit::storageSession):
2361         (WebKit::NetworkConnectionToWebProcess::startDownload):
2362         (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
2363         * NetworkProcess/NetworkConnectionToWebProcess.h:
2364         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
2365         * NetworkProcess/NetworkProcess.cpp:
2366         (WebKit::NetworkProcess::deleteWebsiteDataForOrigins):
2367         (WebKit::NetworkProcess::downloadRequest):
2368         (WebKit::NetworkProcess::resumeDownload):
2369         (WebKit::NetworkProcess::cancelDownload):
2370         (WebKit::NetworkProcess::getNetworkProcessStatistics):
2371         (WebKit::NetworkProcess::logDiagnosticMessage):
2372         (WebKit::NetworkProcess::logDiagnosticMessageWithResult):
2373         (WebKit::NetworkProcess::logDiagnosticMessageWithValue):
2374         * NetworkProcess/NetworkProcess.h:
2375         * NetworkProcess/NetworkProcess.messages.in:
2376         * NetworkProcess/NetworkSession.h:
2377         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
2378         (WebKit::NetworkSession::createDataTaskWithRequest):
2379         (WebKit::NetworkSession::dataTaskForIdentifier):
2380         (WebKit::NetworkDataTask::resume):
2381         (WebKit::NetworkDataTask::taskIdentifier): Deleted.
2382         * Shared/Downloads/Download.cpp:
2383         (WebKit::Download::Download):
2384         (WebKit::Download::messageSenderDestinationID):
2385         * Shared/Downloads/Download.h:
2386         (WebKit::Download::downloadID):
2387         * Shared/Downloads/DownloadID.h: Added.
2388         (WebKit::DownloadID::DownloadID):
2389         (WebKit::DownloadID::operator==):
2390         (WebKit::DownloadID::downloadID):
2391         (IPC::ArgumentCoder<WebKit::DownloadID>::encode):
2392         (IPC::ArgumentCoder<WebKit::DownloadID>::decode):
2393         (WTF::DownloadIDHash::hash):
2394         (WTF::DownloadIDHash::equal):
2395         (WTF::HashTraits<WebKit::DownloadID>::emptyValue):
2396         (WTF::HashTraits<WebKit::DownloadID>::constructDeletedValue):
2397         (WTF::HashTraits<WebKit::DownloadID>::isDeletedValue):
2398         * Shared/Downloads/DownloadManager.cpp:
2399         (WebKit::DownloadManager::DownloadManager):
2400         (WebKit::DownloadManager::startDownload):
2401         (WebKit::DownloadManager::convertHandleToDownload):
2402         (WebKit::DownloadManager::resumeDownload):
2403         (WebKit::DownloadManager::cancelDownload):
2404         * Shared/Downloads/DownloadManager.h:
2405         (WebKit::DownloadManager::isDownloading):
2406         * UIProcess/API/C/WKDownload.cpp:
2407         (WKDownloadGetID):
2408         (WKDownloadCopyRequest):
2409         * UIProcess/Downloads/DownloadProxy.h:
2410         (WebKit::DownloadProxy::downloadID):
2411         (WebKit::DownloadProxy::request):
2412         (WebKit::DownloadProxy::resumeData):
2413         * UIProcess/Downloads/DownloadProxyMap.cpp:
2414         (WebKit::DownloadProxyMap::createDownloadProxy):
2415         (WebKit::DownloadProxyMap::downloadFinished):
2416         (WebKit::DownloadProxyMap::processDidClose):
2417         * UIProcess/Downloads/DownloadProxyMap.h:
2418         * UIProcess/WebPageProxy.cpp:
2419         (WebKit::WebPageProxy::receivedPolicyDecision):
2420         (WebKit::WebPageProxy::frameDidBecomeFrameSet):
2421         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
2422         (WebKit::WebPageProxy::decidePolicyForResponse):
2423         (WebKit::WebPageProxy::decidePolicyForResponseSync):
2424         * UIProcess/WebPageProxy.h:
2425         * UIProcess/WebPageProxy.messages.in:
2426         * WebKit2.xcodeproj/project.pbxproj:
2427         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2428         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2429         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2430         * WebProcess/WebPage/WebFrame.cpp:
2431         (WebKit::WebFrame::invalidatePolicyListener):
2432         (WebKit::WebFrame::didReceivePolicyDecision):
2433         (WebKit::WebFrame::startDownload):
2434         (WebKit::WebFrame::convertMainResourceLoadToDownload):
2435         * WebProcess/WebPage/WebFrame.h:
2436         * WebProcess/WebPage/WebPage.cpp:
2437         (WebKit::WebPage::setSessionID):
2438         (WebKit::WebPage::didReceivePolicyDecision):
2439         * WebProcess/WebPage/WebPage.h:
2440         * WebProcess/WebPage/WebPage.messages.in:
2441
2442 2015-12-17  Simon Fraser  <simon.fraser@apple.com>
2443
2444         Disable viewport "shrink to fit" outside of multitasking mode
2445         https://bugs.webkit.org/show_bug.cgi?id=152403
2446         rdar://problem/23818102
2447
2448         Reviewed by Tim Horton.
2449         
2450         Plumb through a value that indicates whether the WKWebView is in split screen,
2451         and use it to conditionally enable shrink-to-fit mode only in split screen.
2452         
2453         * Shared/VisibleContentRectUpdateInfo.cpp: Added m_allowShrinkToFit, and sort
2454         the member variables, and encoding order, to optimize packing, with some initializers.
2455         (WebKit::VisibleContentRectUpdateInfo::encode):
2456         (WebKit::VisibleContentRectUpdateInfo::decode):
2457         * Shared/VisibleContentRectUpdateInfo.h:
2458         (WebKit::VisibleContentRectUpdateInfo::VisibleContentRectUpdateInfo):
2459         (WebKit::VisibleContentRectUpdateInfo::allowShrinkToFit):
2460         (WebKit::operator==):
2461         * UIProcess/API/Cocoa/WKWebView.mm: Add _allowsViewportShrinkToFit member variable,
2462         with getter and setter.
2463         (-[WKWebView _updateVisibleContentRects]): Unwrap the line.
2464         (-[WKWebView _setAllowsViewportShrinkToFit:]):
2465         (-[WKWebView _allowsViewportShrinkToFit]):
2466         * UIProcess/API/Cocoa/WKWebViewPrivate.h: _allowsViewportShrinkToFit SPI.
2467         * UIProcess/WebPageProxy.h: Pass allowShrinkToFit through.
2468         * UIProcess/ios/WKContentView.mm: Ditto.
2469         (-[WKContentView didUpdateVisibleRect:unobscuredRect:unobscuredRectInScrollViewCoordinates:scale:minimumScale:inStableState:isChangingObscuredInsetsInteractively:]):
2470         * UIProcess/ios/WebPageProxyIOS.mm:
2471         (WebKit::WebPageProxy::updateVisibleContentRects): Padd allowShrinkToFit to the web process via the VisibleContentRectUpdateInfo.
2472         * WebProcess/WebPage/WebPage.cpp:
2473         (WebKit::WebPage::updatePreferences): Store m_ignoreViewportScalingConstraints in a member variable since we can't
2474         get back to the prefs later.
2475         * WebProcess/WebPage/WebPage.h:
2476         * WebProcess/WebPage/ios/WebPageIOS.mm:
2477         (WebKit::WebPage::updateVisibleContentRects): This is the behavior change: call setCanIgnoreScalingConstraints()
2478         on the viewport configuration, consulting the pref (via m_ignoreViewportScalingConstraints) and the new
2479         visibleContentRectUpdateInfo.allowShrinkToFit().
2480
2481 2015-12-16  Simon Fraser  <simon.fraser@apple.com>
2482
2483         ViewportConfiguration functions should return a bool to say if anything changed
2484         https://bugs.webkit.org/show_bug.cgi?id=152353
2485
2486         Reviewed by Tim Horton.
2487
2488         Rather than callers all checking whether setting ViewportConfiguration values
2489         changes state, have its functions return a bool if the values change.
2490
2491         * WebProcess/WebPage/WebPage.cpp:
2492         (WebKit::WebPage::mainFrameDidLayout):
2493         (WebKit::WebPage::didCommitLoad):
2494         * WebProcess/WebPage/ios/WebPageIOS.mm:
2495         (WebKit::WebPage::viewportPropertiesDidChange):
2496         (WebKit::WebPage::setViewportConfigurationMinimumLayoutSize):
2497
2498 2015-12-16  Alex Christensen  <achristensen@webkit.org>
2499
2500         Progress towards implementing downloads with NetworkSession
2501         https://bugs.webkit.org/show_bug.cgi?id=152371
2502
2503         Reviewed by Darin Adler.
2504
2505         * NetworkProcess/NetworkProcess.cpp:
2506         (WebKit::NetworkProcess::downloadRequest):
2507         (WebKit::NetworkProcess::resumeDownload):
2508         (WebKit::NetworkProcess::cancelDownload):
2509         * NetworkProcess/NetworkProcess.h:
2510         * NetworkProcess/NetworkProcess.messages.in:
2511         * Shared/Authentication/AuthenticationManager.cpp:
2512         (WebKit::AuthenticationManager::didReceiveAuthenticationChallenge):
2513         * Shared/Authentication/AuthenticationManager.h:
2514         * Shared/Downloads/Download.cpp:
2515         (WebKit::Download::Download):
2516         (WebKit::Download::didReceiveAuthenticationChallenge):
2517         * Shared/Downloads/Download.h:
2518         * Shared/Downloads/DownloadManager.cpp:
2519         (WebKit::DownloadManager::startDownload):
2520         (WebKit::DownloadManager::convertHandleToDownload):
2521         (WebKit::DownloadManager::resumeDownload):
2522         (WebKit::DownloadManager::cancelDownload):
2523         (WebKit::DownloadManager::downloadFinished):
2524         (WebKit::DownloadManager::didCreateDownload):
2525         * Shared/Downloads/DownloadManager.h:
2526         * Shared/Downloads/cocoa: Added.
2527         * Shared/Downloads/cocoa/DownloadCocoa.mm: Added.
2528         (WebKit::Download::start):
2529         (WebKit::Download::resume):
2530         (WebKit::Download::cancel):
2531         (WebKit::Download::platformInvalidate):
2532         * Shared/Downloads/ios/DownloadIOS.mm:
2533         * Shared/Downloads/mac/DownloadMac.mm:
2534         (WebKit::Download::start):
2535         (WebKit::Download::startWithHandle):
2536         (WebKit::Download::resume):
2537         * UIProcess/WebProcessPool.cpp:
2538         (WebKit::WebProcessPool::resumeDownload):
2539         * UIProcess/WebProcessPool.h:
2540         * WebKit2.xcodeproj/project.pbxproj:
2541
2542 2015-12-16  Simon Fraser  <simon.fraser@apple.com>
2543
2544         ViewportConfiguration functions should return a bool to say if anything changed
2545         https://bugs.webkit.org/show_bug.cgi?id=152353
2546
2547         Reviewed by Tim Horton.
2548
2549         Rather than callers all checking whether setting ViewportConfiguration values
2550         changes state, have its functions return a bool if the values change.
2551
2552         * WebProcess/WebPage/WebPage.cpp:
2553         (WebKit::WebPage::mainFrameDidLayout):
2554         (WebKit::WebPage::didCommitLoad):
2555         * WebProcess/WebPage/ios/WebPageIOS.mm:
2556         (WebKit::WebPage::viewportPropertiesDidChange):
2557         (WebKit::WebPage::setViewportConfigurationMinimumLayoutSize):
2558
2559 2015-12-16  Tim Horton  <timothy_horton@apple.com>
2560
2561         REGRESSION (r191299): Zoom gestures are enabled even if allowsMagnification=NO
2562         https://bugs.webkit.org/show_bug.cgi?id=152373
2563         <rdar://problem/23931998>
2564
2565         Reviewed by Simon Fraser.
2566
2567         * UIProcess/Cocoa/WebViewImpl.mm:
2568         (WebKit::WebViewImpl::gestureEventWasNotHandledByWebCoreFromViewOnly):
2569         Don't pass the event on to ViewGestureController if we shouldn't handle it,
2570         just like we would have done in magnifyWithEvent before.
2571
2572 2015-12-16  Tim Horton  <timothy_horton@apple.com>
2573
2574         REGRESSION (r194125): Crashes in touchesEndedWithEvent on occasion when interacting with the page
2575         https://bugs.webkit.org/show_bug.cgi?id=152366
2576         <rdar://problem/23929672>
2577
2578         Reviewed by Beth Dakin.
2579
2580         * UIProcess/Cocoa/WebViewImpl.mm:
2581         (WebKit::WebViewImpl::touchesEndedWithEvent):
2582         (WebKit::WebViewImpl::touchesCancelledWithEvent):
2583         NSTouch identifiers aren't pointer-comparable. We need to use isEqual to
2584         compare them and find the ones to remove.
2585
2586 2015-12-16  Simon Fraser  <simon.fraser@apple.com>
2587
2588         Simplify isOverlayScrollbar() logic
2589         https://bugs.webkit.org/show_bug.cgi?id=152357
2590
2591         Reviewed by Beth Dakin.
2592
2593         Replace code that checks for isOverlayScrollbar() explicitly with calls to new
2594         occupiedWidth()/occupiedHeight() functions on Scrollbar, which do the overlay
2595         scrollbar check internally.
2596         
2597         Add ScrollableArea::scrollbarIntrusion() which returns an IntSize with the occupiedWidth
2598         and occupiedHeight of any scrollbars, and use it in a few places.
2599
2600         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
2601         (WebKit::PDFPlugin::updateScrollbars):
2602         (WebKit::PDFPlugin::maximumScrollPosition):
2603
2604 2015-12-16  Alex Christensen  <achristensen@webkit.org>
2605
2606         Build fix when using NETWORK_SESSION after r193972.
2607
2608         Rubber-stamped by Joseph Pecoraro.
2609
2610         Renamed NetworkSessionDelegate to WKNetworkSessionDelegate to conform to the 
2611         newly-enforced style rule in check-for-inappropriate-objc-class-names.
2612
2613         * NetworkProcess/NetworkSession.h:
2614         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
2615         (toNSURLSessionAuthChallengeDisposition):
2616         (-[WKNetworkSessionDelegate initWithNetworkSession:]):
2617         (WebKit::NetworkSession::NetworkSession):
2618         (-[NetworkSessionDelegate initWithNetworkSession:]): Deleted.
2619
2620 2015-12-16  Alex Christensen  <achristensen@webkit.org>
2621
2622         Implement Web Timing when using NETWORK_SESSION
2623         https://bugs.webkit.org/show_bug.cgi?id=152285
2624
2625         Reviewed by Darin Adler.
2626
2627         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
2628         (-[NetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
2629         (WebKit::NetworkSession::NetworkSession):
2630         Use functions moved to ResourceLoadTiming.h.  setCollectsTimingData is for Mavericks, _timingDataOptions is post-Mavericks.
2631
2632 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2633
2634         [Fetch API] Add fetch API compile time flag
2635         https://bugs.webkit.org/show_bug.cgi?id=152254
2636
2637         Reviewed by Darin Adler.
2638
2639         * Configurations/FeatureDefines.xcconfig:
2640
2641 2015-12-15  Tim Horton  <timothy_horton@apple.com>
2642
2643         [Mac] Gesture Events should not have negative scale
2644         https://bugs.webkit.org/show_bug.cgi?id=151065
2645         <rdar://problem/23474123>
2646
2647         Reviewed by Anders Carlsson.
2648
2649         * Shared/NativeWebGestureEvent.h:
2650         * Shared/mac/NativeWebGestureEventMac.mm:
2651         (WebKit::distanceForTouches):
2652         (WebKit::NativeWebGestureEvent::NativeWebGestureEvent):
2653         Compute the distance between the two oldest touches, and use that as
2654         the scale (really the gesture diameter) on the event, instead of
2655         passing through AppKit's magnification (which is computed differently).
2656         This matches the documented behavior of the existing gesture events on iOS.
2657
2658         * UIProcess/API/Cocoa/WKWebView.mm:
2659         (-[WKWebView touchesBeganWithEvent:]):
2660         (-[WKWebView touchesMovedWithEvent:]):
2661         (-[WKWebView touchesEndedWithEvent:]):
2662         (-[WKWebView touchesCancelledWithEvent:]):
2663         * UIProcess/API/mac/WKView.mm:
2664         (-[WKView touchesBeganWithEvent:]):
2665         (-[WKView touchesMovedWithEvent:]):
2666         (-[WKView touchesEndedWithEvent:]):
2667         (-[WKView touchesCancelledWithEvent:]):
2668         Plumb touch events through to WebViewImpl.
2669
2670         * UIProcess/Cocoa/WebViewImpl.h:
2671         * UIProcess/Cocoa/WebViewImpl.mm:
2672         (WebKit::WebViewImpl::WebViewImpl):
2673         (WebKit::WebViewImpl::magnifyWithEvent):
2674         (WebKit::WebViewImpl::touchesOrderedByAge):
2675         (WebKit::WebViewImpl::touchesBeganWithEvent):
2676         (WebKit::WebViewImpl::touchesMovedWithEvent):
2677         (WebKit::WebViewImpl::touchesEndedWithEvent):
2678         (WebKit::WebViewImpl::touchesCancelledWithEvent):
2679         (WebKit::WebViewImpl::rotateWithEvent):
2680         Keep track of the most recent incoming touches, by identifier, in age order.
2681         Pass them through to NativeWebGestureEvent so it can determine the gesture diameter.
2682
2683 2015-12-15  Anders Carlsson  <andersca@apple.com>
2684
2685         Call DatabaseManager directly from WKBundle.cpp
2686         https://bugs.webkit.org/show_bug.cgi?id=152317
2687
2688         Reviewed by Tim Horton.
2689
2690         This is in preparation for getting rid of some old database manager code.
2691
2692         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
2693         (WKBundleClearAllDatabases):
2694         (WKBundleSetDatabaseQuota):
2695         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2696         (WebKit::InjectedBundle::clearAllDatabases): Deleted.
2697         (WebKit::InjectedBundle::setDatabaseQuota): Deleted.
2698         * WebProcess/InjectedBundle/InjectedBundle.h:
2699
2700 2015-12-15  Daniel Bates  <dabates@apple.com>
2701
2702         Guard code that uses class LayerTreeHost with USE(COORDINATED_GRAPHICS) or USE(TEXTURE_MAPPER)
2703         https://bugs.webkit.org/show_bug.cgi?id=152265
2704
2705         Reviewed by Tim Horton.
2706
2707         We neither make use of LayerTreeHost on Mac nor on iOS. We should guard code that makes
2708         use of this class as applicable. This also fixes the iOS Simulator build when using
2709         Apple Internal software.
2710
2711         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Guard code that used LayerTreeHost.
2712         * WebProcess/WebPage/LayerTreeHost.cpp: Guard contents of file with USE(COORDINATED_GRAPHICS) || USE(TEXTURE_MAPPER).
2713         * WebProcess/WebPage/LayerTreeHost.h: Ditto.
2714         * WebProcess/WebPage/WebPage.cpp:
2715         (WebKit::WebPage::scalePage): Ditto.
2716         (WebKit::WebPage::setDeviceScaleFactor): Ditto.
2717         * WebProcess/WebPage/WebPage.h: Substitute header LayerTreeContext.h for LayerTreeHost.h since we make use
2718         of the enum class LayerHostingMode.
2719         * WebProcess/WebPage/ios/WebPageIOS.mm:
2720         (WebKit::WebPage::updateVisibleContentRects): Remove unnecessary code; DrawingArea::layerTreeHost() always
2721         returns nullptr on iOS.
2722
2723 2015-12-15  Zan Dobersek  <zdobersek@igalia.com>
2724
2725         [TexMap] Operate with a reference to the TextureMapper wherever possible
2726         https://bugs.webkit.org/show_bug.cgi?id=152118
2727
2728         Reviewed by Martin Robinson.
2729
2730         Replace pointers to the TextureMapper object with references.
2731
2732         * Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp:
2733         (WebKit::CoordinatedBackingStoreTile::swapBuffers):
2734         (WebKit::CoordinatedBackingStore::paintTilesToTextureMapper):
2735         (WebKit::CoordinatedBackingStore::paintToTextureMapper):
2736         (WebKit::CoordinatedBackingStore::drawBorder):
2737         (WebKit::CoordinatedBackingStore::drawRepaintCounter):
2738         (WebKit::CoordinatedBackingStore::commitTileOperations):
2739         * Shared/CoordinatedGraphics/CoordinatedBackingStore.h:
2740         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
2741         (WebKit::CoordinatedGraphicsScene::paintToCurrentGLContext):
2742         (WebKit::CoordinatedGraphicsScene::paintToGraphicsContext):
2743         (WebKit::CoordinatedGraphicsScene::commitPendingBackingStoreOperations):
2744
2745 2015-12-14  YongGeol Jung  <yg48.jung@samsung.com>
2746
2747         [Coordinated Graphics] CSS transition effect is not shown when transformed with "%" unit.
2748         https://bugs.webkit.org/show_bug.cgi?id=152278
2749
2750         Reviewed by Darin Adler.
2751
2752         boxSize is encoded as FloatSize type but decoded as IntSize type.
2753         So boxSize gets invalid value after decoding.
2754         Due to this layer goes to out of screen during animation.
2755
2756         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2757         (IPC::ArgumentCoder<TextureMapperAnimation>::decode):
2758
2759 2015-12-14  Dan Bernstein  <mitz@apple.com>
2760
2761         <rdar://problem/23886216> REGRESSION (r194022): Production builds of PluginProcess crash on launch when not installed in /System
2762         https://bugs.webkit.org/show_bug.cgi?id=152291
2763
2764         Reviewed by Darin Adler.
2765
2766         * Configurations/PluginProcess.xcconfig: Added a FIXME.
2767         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
2768         (WebKit::addDYLDEnvironmentAdditions): Set DYLD_LIBRARY_PATH to point to where the shims
2769         are. This is needed because starting in El Capitan, the processes’ main executables link
2770         directly against the shims, so the dynamic linker needs to be able to find them in the
2771         non-/System location. Also added a FIXME about not having to set DYLD_INSERT_LIBRARIES when
2772         the main executables link the them directly.
2773
2774 2015-12-14  Simon Fraser  <simon.fraser@apple.com>
2775
2776         Dump some more data in the RemoteLayerTreeTransaction
2777         https://bugs.webkit.org/show_bug.cgi?id=152283
2778
2779         Reviewed by Dean Jackson.
2780         
2781         Dump some scale factors, viewport meta tag width and render tree size.
2782
2783         * Shared/mac/RemoteLayerTreeTransaction.mm:
2784         (WebKit::RemoteLayerTreeTransaction::description):
2785
2786 2015-12-14  Tim Horton  <timothy_horton@apple.com>
2787
2788         Frequent crash under -[WKPDFView web_setMinimumSize:]_block_invoke
2789         https://bugs.webkit.org/show_bug.cgi?id=152266
2790         <rdar://problem/22092676>
2791
2792         Reviewed by Simon Fraser.
2793
2794         * UIProcess/ios/WKPDFView.mm:
2795         (-[WKPDFView web_setMinimumSize:]):
2796         We weren't retaining the UIScrollView, but depending on it surviving
2797         into this block's invocation.
2798
2799         We don't need to do this asynchronously anymore because the referenced
2800         bug is fixed, so make it happen synchronously. This also fixes the crash
2801         because there's no opportunity for the scroll view to be released.
2802
2803 2015-12-14  Tim Horton  <timothy_horton@apple.com>
2804
2805         TiledCoreAnimationDrawingAreaProxy::createFenceForGeometryUpdate() sets fence port on context twice
2806         https://bugs.webkit.org/show_bug.cgi?id=152239
2807         <rdar://problem/22893289>
2808
2809         Reviewed by Darin Adler.
2810
2811         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
2812         (WebKit::TiledCoreAnimationDrawingAreaProxy::createFenceForGeometryUpdate):
2813         No need to setFencePort; createFencePort also installs it on the creating context.
2814
2815 2015-12-12  Alex Christensen  <achristensen@webkit.org>
2816
2817         Use existing code for redirects when using NETWORK_SESSION
2818         https://bugs.webkit.org/show_bug.cgi?id=152207
2819         rdar://problem/23860624
2820
2821         Reviewed by Darin Adler.
2822         
2823         This fixes http/tests/cookies/set-cookie-on-redirect.html when using NETWORK_SESSION.
2824
2825         * NetworkProcess/NetworkLoad.cpp:
2826         (WebKit::NetworkLoad::continueWillSendRequest):
2827         (WebKit::NetworkLoad::convertTaskToDownload):
2828         (WebKit::NetworkLoad::willPerformHTTPRedirection):
2829         (WebKit::NetworkLoad::didReceiveChallenge):
2830         * NetworkProcess/NetworkLoad.h:
2831         * NetworkProcess/NetworkSession.h:
2832
2833 2015-12-13  Tim Horton  <timothy_horton@apple.com>
2834
2835         Adopt CGIOSurfaceContextCreateImageReference to avoid unnecessary readback
2836         https://bugs.webkit.org/show_bug.cgi?id=150988
2837         <rdar://problem/18993594>
2838
2839         Reviewed by Darin Adler.
2840
2841         * WebProcess/WebPage/WebFrame.cpp:
2842         (WebKit::WebFrame::createSelectionSnapshot):
2843         Adopt sinkIntoImage and drawConsumingImageBuffer in a few places.
2844
2845 2015-12-13  Dan Bernstein  <mitz@apple.com>
2846
2847         Another fix after r194018.
2848
2849         * Configurations/BaseTarget.xcconfig:
2850         * Configurations/BaseXPCService.xcconfig:
2851
2852 2015-12-13  Dan Bernstein  <mitz@apple.com>
2853
2854         [Mac] Shims used by XPC services are installed inside legacy process bundles
2855         https://bugs.webkit.org/show_bug.cgi?id=152233
2856
2857         Reviewed by Sam Weinig.
2858
2859         Have the shim dylibs installed in the framework’s Frameworks directory instead.
2860
2861         * Configurations/BaseLegacyProcess.xcconfig: Simplified now that EXCLUDED_SHIM_FILE_NAME is
2862           no longer defined, because shims aren’t copied into legacy processes.
2863
2864         * Configurations/NetworkProcess.xcconfig: Removed definition of EXCLUDED_SHIM_FILE_NAME.
2865         * Configurations/PluginProcess.xcconfig: Ditto.
2866         * Configurations/WebContentProcess.xcconfig: Ditto.
2867
2868         * Configurations/Shim.xcconfig: Install the shims when building for OS X. Added definitions
2869           of INSTALL_PATH and DYLIB_INSTALL_NAME_BASE which are now common to all shims.
2870
2871         * Configurations/PluginProcessShim.xcconfig: Removed definitions of INSTALL_PATH and
2872           DYLIB_INSTALL_NAME_BASE from here, now that they are defined for all shims in
2873           Shim.xcconfig.
2874         * Configurations/SecItemShim.xcconfig: Ditto.
2875         * Configurations/WebProcessShim.xcconfig:
2876
2877         * Configurations/WebKit.xcconfig: Added the shims to EXCLUDED_SOURCE_FILE_NAMES for iOS.
2878
2879         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX-10.9-10.10.plist: Changed
2880           the value of DYLD_INSERT_LIBRARIES to point to the shim’s new location.
2881         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64-10.9-10.10.Info.plist: Ditto.
2882         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX-10.9-10.10.plist: Ditto.
2883
2884         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
2885         (WebKit::computeProcessShimPath): Changed to return the new paths, which are all inside the
2886           framework’s Frameworks directory.
2887
2888         * WebKit2.xcodeproj/project.pbxproj:
2889         - Removed references to WRAPPER_NAME from the “Copy XPC services for engineering builds”
2890           build phase in the All target, becase WRAPPER_NAME is empty in an aggregate target.
2891         - Removed the PlugInProcess target’s dependency on the PluginProcessShim target and its
2892           Copy Plug-in Process Shim build phase.
2893         - Removed the NetworkProcess target’s dependency on the SecItemShim target and its Copy
2894           Sec Item Shim build phase.
2895         - Removed the WebProcess target’s dependency on the WebProcessShim target and its Copy
2896           WebProcessShim build phase.
2897         - Made the WebKit target depend on the shim targets, and added to it a Copy Shims build
2898           phase that copies the shims into the framework’s Frameworks directory.
2899
2900 2015-12-13  Dan Bernstein  <mitz@apple.com>
2901
2902         Build fix.
2903
2904         * Configurations/PluginProcess.xcconfig:
2905
2906 2015-12-13  Dan Bernstein  <mitz@apple.com>
2907
2908         [Mac] Shims aren’t inserted properly on Yosemite when building with the El Capitan SDK
2909         https://bugs.webkit.org/show_bug.cgi?id=152229
2910
2911         Reviewed by Darin Adler.
2912
2913         * Configurations/BaseTarget.xcconfig: Defined WK_LINK_SHIM on OS X to YES or NO based on the
2914           target version.
2915         * Configurations/BaseXPCService.xcconfig: Define WK_XPC_SERVICE_INFOPLIST_SUFFIX to
2916           "-10.9-10.10" when targeting those OS X versions.
2917         * Configurations/NetworkService.xcconfig: Use WK_XPC_SERVICE_INFOPLIST_SUFFIX in the
2918           definition of INFOPLIST_FILE. Use WK_LINK_SHIM in the definition of OTHER_LDFLAGS.
2919         * Configurations/PluginProcess.xcconfig: Use WK_LINK_SHIM in the definition of
2920           LDFLAGS_SHIM_Production for OS X.
2921         * Configurations/PluginService.32.xcconfig: Use WK_XPC_SERVICE_INFOPLIST_SUFFIX in the
2922           definition of INFOPLIST_FILE. Use WK_LINK_SHIM in the definition of OTHER_LDFLAGS.
2923         * Configurations/PluginService.64.xcconfig: Ditto.
2924         * Configurations/WebContentService.xcconfig: Ditto.
2925
2926 2015-12-12  Katlyn Graff  <kgraff@apple.com>
2927
2928         Safari background tabs should be fully suspended where possible.
2929         https://bugs.webkit.org/show_bug.cgi?id=150515
2930
2931         Reviewed by Ryosuke Niwa.
2932
2933         Added a runtime flag enabling tab suspension, default off.
2934
2935         * Shared/WebProcessCreationParameters.cpp:
2936         (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
2937         (WebKit::WebProcessCreationParameters::encode):
2938         (WebKit::WebProcessCreationParameters::decode):
2939         * Shared/WebProcessCreationParameters.h:
2940         * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
2941         (WebKit::registerUserDefaultsIfNeeded):
2942         (WebKit::WebProcessPool::platformInitializeWebProcess):
2943         * WebProcess/cocoa/WebProcessCocoa.mm:
2944         (WebKit::WebProcess::platformInitializeWebProcess):
2945
2946 2015-12-11  Eric Carlson  <eric.carlson@apple.com>
2947
2948         [MediaStream] Add a setting to allow the mock media capture devices to be enabled and disabled
2949         https://bugs.webkit.org/show_bug.cgi?id=152197
2950
2951         Reviewed by Dean Jackson.
2952
2953         * Shared/WebPreferencesDefinitions.h:
2954         * UIProcess/API/C/WKPreferences.cpp:
2955         (WKPreferencesSetMockCaptureDevicesEnabled):
2956         (WKPreferencesGetMockCaptureDevicesEnabled):
2957         * UIProcess/API/C/WKPreferencesRefPrivate.h:
2958         * UIProcess/API/Cocoa/WKPreferences.mm:
2959         (-[WKPreferences _mockCaptureDevicesEnabled]):
2960         (-[WKPreferences _setMockCaptureDevicesEnabled:]):
2961         * WebProcess/WebPage/WebPage.cpp:
2962         (WebKit::WebPage::updatePreferences):
2963
2964 2015-12-11  Joseph Pecoraro  <pecoraro@apple.com>
2965
2966         check-for-inappropriate-objc-class-names should check all class names, not just externally visible ones
2967         https://bugs.webkit.org/show_bug.cgi?id=152156
2968
2969         Reviewed by Dan Bernstein.
2970
2971         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
2972         (WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID):
2973         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
2974         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
2975         (WebKit::RemoteLayerTreeDrawingAreaProxy::RemoteLayerTreeDrawingAreaProxy):
2976         Rename internal classes with "_WK" prefix.
2977
2978 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
2979
2980         [MediaStream] Expose media capture devices persistent permissions to WebCore
2981         https://bugs.webkit.org/show_bug.cgi?id=152087
2982
2983         Reviewed by Chris Dumez.
2984
2985         * CMakeLists.txt: Add UserMediaPermissionCheckProxy.cpp and WKUserMediaPermissionCheck.cpp.
2986
2987         * Shared/API/APIObject.h: Define UserMediaPermissionCheck.
2988
2989         * Shared/API/c/WKBase.h: Add WKUserMediaPermissionCheckRef typedef.
2990
2991         * UIProcess/API/APIUIClient.h:
2992         (API::UIClient::checkUserMediaPermissionForOrigin): New.
2993
2994         * UIProcess/API/C/WKAPICast.h: Add WKUserMediaPermissionCheckRef/UserMediaPermissionCheckProxy mapping.
2995
2996         * UIProcess/API/C/WKPage.cpp:
2997         (WKPageSetPageUIClient): Implement checkUserMediaPermissionForOrigin.
2998
2999         * UIProcess/API/C/WKPageUIClient.h: Add WKCheckUserMediaPermissionCallback typedef and add
3000           checkUserMediaPermissionForOrigin to WKPageUIClientV6.
3001
3002         * UIProcess/API/C/WKUserMediaPermissionCheck.cpp: Added.
3003         (WKUserMediaPermissionCheckGetTypeID):
3004         (WKUserMediaPermissionCheckSetHasPermission):
3005
3006         * UIProcess/API/C/WKUserMediaPermissionCheck.h: Added.
3007
3008         * UIProcess/UserMediaPermissionCheckProxy.cpp: Added.
3009         (WebKit::UserMediaPermissionCheckProxy::UserMediaPermissionCheckProxy):
3010         (WebKit::UserMediaPermissionCheckProxy::setHasPermission):
3011         (WebKit::UserMediaPermissionCheckProxy::invalidate):
3012         * UIProcess/UserMediaPermissionCheckProxy.h: Added.
3013         (WebKit::UserMediaPermissionCheckProxy::create):
3014         * UIProcess/UserMediaPermissionRequestManagerProxy.cpp:
3015         (WebKit::UserMediaPermissionRequestManagerProxy::invalidateRequests):
3016         (WebKit::UserMediaPermissionRequestManagerProxy::createRequest):
3017         (WebKit::UserMediaPermissionRequestManagerProxy::didReceiveUserMediaPermissionDecision):
3018         (WebKit::UserMediaPermissionRequestManagerProxy::createUserMediaPermissionCheck):
3019         (WebKit::UserMediaPermissionRequestManagerProxy::didCompleteUserMediaPermissionCheck):
3020         * UIProcess/UserMediaPermissionRequestManagerProxy.h:
3021         * UIProcess/WebPageProxy.cpp:
3022         (WebKit::WebPageProxy::requestUserMediaPermissionForFrame):
3023         (WebKit::WebPageProxy::checkUserMediaPermissionForFrame):
3024         (WebKit::WebPageProxy::requestNotificationPermission):
3025         * UIProcess/WebPageProxy.h:
3026         * UIProcess/WebPageProxy.messages.in:
3027
3028         * WebKit2.xcodeproj/project.pbxproj: Add UserMediaPermissionCheckProxy.*, and WKUserMediaPermissionCheck.*.
3029
3030         * WebProcess/MediaStream/UserMediaPermissionRequestManager.cpp:
3031         (WebKit::UserMediaPermissionRequestManager::startUserMediaRequest): Renamed from startRequest.
3032         (WebKit::UserMediaPermissionRequestManager::cancelUserMediaRequest): Renamed from cancelRequest.
3033         (WebKit::UserMediaPermissionRequestManager::didReceiveUserMediaPermissionDecision): m_requestToIDMap ->
3034           m_userMediaRequestToIDMap.remove.
3035         (WebKit::UserMediaPermissionRequestManager::startUserMediaPermissionCheck): New, start the request.
3036         (WebKit::UserMediaPermissionRequestManager::cancelUserMediaPermissionCheck): New, cancel
3037           the request.
3038         (WebKit::UserMediaPermissionRequestManager::didCompleteUserMediaPermissionCheck): New, 
3039           all the request completion method.
3040         (WebKit::UserMediaPermissionRequestManager::startRequest): Deleted.
3041         (WebKit::UserMediaPermissionRequestManager::cancelRequest): Deleted.
3042         * WebProcess/MediaStream/UserMediaPermissionRequestManager.h:
3043
3044         * WebProcess/WebCoreSupport/WebUserMediaClient.cpp:
3045         (WebKit::WebUserMediaClient::requestUserMediaAccess): startRequest -> startUserMediaRequest.
3046         (WebKit::WebUserMediaClient::cancelUserMediaAccessRequest): cancelRequest -> cancelUserMediaRequest.
3047         (WebKit::WebUserMediaClient::checkUserMediaPermission): New.
3048         (WebKit::WebUserMediaClient::cancelUserMediaPermissionCheck): New.
3049         * WebProcess/WebCoreSupport/WebUserMediaClient.h:
3050
3051         * WebProcess/WebPage/WebPage.cpp:
3052         (WebKit::WebPage::didCompleteUserMediaPermissionCheck): New.
3053         * WebProcess/WebPage/WebPage.h:
3054         * WebProcess/WebPage/WebPage.messages.in: Add DidCompleteUserMediaPermissionCheck.
3055
3056 2015-12-10  Joseph Pecoraro  <pecoraro@apple.com>
3057
3058         Remote Inspector: Verify the identity of the other side of XPC connections
3059         https://bugs.webkit.org/show_bug.cgi?id=152153
3060
3061         Reviewed by Brian Burg.
3062
3063         * Shared/mac/SandboxUtilities.mm:
3064         * UIProcess/ApplicationStateTracker.mm:
3065         Use new header.
3066
3067 2015-12-10  Alex Christensen  <achristensen@webkit.org>
3068
3069         REGRESSION (r192796) WKBundlePageResourceLoadClient should be able to setHTTPBody in willSendRequestForFrame
3070         https://bugs.webkit.org/show_bug.cgi?id=152022
3071         rdar://problem/23763584
3072
3073         Reviewed by Darin Adler.
3074
3075         * Shared/API/c/WKURLRequest.cpp:
3076         (WKURLRequestCopyHTTPMethod):
3077         (WKURLRequestCopyWithHTTPBody):
3078         (WKURLRequestSetDefaultTimeoutInterval):
3079         * Shared/API/c/WKURLRequest.h:
3080         Make WKURLRequestCopyWithHTTPBody SPI for testing.
3081         * Shared/API/c/mac/WKURLRequestNS.mm:
3082         (WKURLRequestCreateWithNSURLRequest):
3083         Crash if someone tries to use an NSURLRequest with HTTPBodyStream, which will not work with the network process.
3084         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
3085         (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
3086         Use an HTTP body if the client's willSendRequestForFrame returned one.
3087         This is the functional change of this patch.
3088
3089 2015-12-10  Zan Dobersek  <zdobersek@igalia.com>
3090
3091         [CoordinatedGraphics] Reserve capacity for the children vector in CoordinatedGraphicsScene::setLayerChildrenIfNeeded()
3092         https://bugs.webkit.org/show_bug.cgi?id=152117
3093
3094         Reviewed by Martin Robinson.
3095
3096         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
3097         (WebKit::CoordinatedGraphicsScene::setLayerChildrenIfNeeded): Reserve the capacity
3098         for the new Vector that will contain the same number of items as the Vector
3099         on the CoordinatedGraphicsLayerState object.
3100
3101 2015-12-09  Daniel Bates  <dabates@apple.com>
3102
3103         [iOS] Bail out if the page proxy is invalid when WebPageProxy::processWillBecome{Foreground, Suspended}() are called
3104         https://bugs.webkit.org/show_bug.cgi?id=151877
3105
3106         Reviewed by Darin Adler.
3107
3108         We cannot assume that a WebPageProxy is in a valid state when WebPageProxy::processWillBecome{Foreground, Suspended}()
3109         are called because these callbacks may occur after the web process crashed and before a
3110         WebPageProxy attaches to a new web process (and hence is considered in a valid state).
3111
3112         * UIProcess/WebPageProxy.cpp:
3113         (WebKit::WebPageProxy::processWillBecomeSuspended): Early return if the page proxy is invalid.
3114         (WebKit::WebPageProxy::processWillBecomeForeground): Ditto.
3115
3116 2015-12-09  Commit Queue  <commit-queue@webkit.org>
3117
3118         Unreviewed, rolling out r193864.
3119         https://bugs.webkit.org/show_bug.cgi?id=152100
3120
3121         caused all inspector tests to assert in WK2 Debug (Requested
3122         by brrian on #webkit).
3123
3124         Reverted changeset:
3125
3126         "Web Inspector: reproducible debug ASSERT when inspecting the
3127         inspector (WK2)"
3128         https://bugs.webkit.org/show_bug.cgi?id=152080
3129         http://trac.webkit.org/changeset/193864
3130
3131 2015-12-09  Brian Burg  <bburg@apple.com>
3132
3133         Web Inspector: reproducible debug ASSERT when inspecting the inspector (WK2)
3134         https://bugs.webkit.org/show_bug.cgi?id=152080
3135
3136         Reviewed by Timothy Hatcher.
3137
3138         We hit an assert underneath ChildProcessProxy::addMessageReceiver because
3139         we tried to connect the inspector page and inspected page more than once.
3140         This relationship is already set up in the constructor of WebProcessProxy.
3141
3142         * UIProcess/WebInspectorProxy.cpp:
3143         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
3144
3145 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3146
3147         [EFL] Need to change expectation result in ewk_settings_offline_web_application_cache_enabled API test
3148         https://bugs.webkit.org/show_bug.cgi?id=152063
3149
3150         Reviewed by Csaba Osztrogonác.
3151
3152         Expect false initial value of ewk_settings_offline_web_application_cache_enabled_get()
3153         because r193812 didn't enable it by default.
3154
3155         * UIProcess/API/efl/tests/test_ewk2_settings.cpp:
3156         (TEST_F):
3157
3158 2015-12-09  Gwang Yoon Hwang  <yoon@igalia.com>
3159
3160         [ThreadedCompositor] Add support for HiDPI
3161         https://bugs.webkit.org/show_bug.cgi?id=152071
3162
3163         Reviewed by Carlos Garcia Campos.
3164
3165         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
3166         (WebKit::ThreadedCompositor::setDeviceScaleFactor): Added to receive the
3167         device scale factor from the layer tree host.
3168         (WebKit::ThreadedCompositor::renderLayerTree):
3169         Apply device scale factor before rendering the page.
3170         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h:
3171         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
3172         (WebKit::ThreadedCoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
3173         Send a updated device scale factor to the compositing thread.
3174
3175 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
3176
3177         [CoordinatedGraphics] Remove unnecessary guards in CoordinatedDrawingArea
3178         https://bugs.webkit.org/show_bug.cgi?id=152068
3179
3180         Reviewed by Gyuyoung Kim.
3181
3182         CoordinatedDrawingArea is only for UI side compositor of CoordinatedGraphics.
3183         So, COORDINATED_GRAPHICS_MULTIPROCESS guards are not necessary.
3184         This patch also removes COORDINATED_GRAPHICS_MULTIPROCESS guards from DrawingAreaImpl
3185         because of same reason.
3186
3187         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
3188         (WebKit::CoordinatedDrawingAreaProxy::CoordinatedDrawingAreaProxy): Deleted.
3189         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
3190         (WebKit::CoordinatedDrawingArea::CoordinatedDrawingArea): Deleted.
3191         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
3192         * WebProcess/WebPage/DrawingAreaImpl.h:
3193
3194 2015-12-09  Mario Sanchez Prada  <mario@endlessm.com>
3195
3196         [GTK] Crash in WebProcess when loading large content with custom URI schemes
3197         https://bugs.webkit.org/show_bug.cgi?id=144262
3198
3199         Reviewed by Carlos Garcia Campos.
3200
3201         Properly handle scenarios where errors happen after reading the first
3202         chunk of data coming from the GInputStream provided by the application.
3203
3204         * UIProcess/API/gtk/WebKitWebContextPrivate.h:
3205         * UIProcess/API/gtk/WebKitWebContext.cpp:
3206         (webkitWebContextIsLoadingCustomProtocol): New, checks whether a load
3207         is still in progress, after the startLoading method has been called.
3208         * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
3209         (webkitURISchemeRequestReadCallback): Early return if the stream has been
3210         cancelled on finish_error, so that we make sure we don't keep on reading
3211         the GInputStream after that point.
3212         (webkit_uri_scheme_request_finish_error): Don't send a didFailWithError
3213         message to the Network process if the load is not longer in progress.
3214         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.cpp:
3215         (WebKit::CustomProtocolManagerImpl::didFailWithError): Handle the case where
3216         an error is notified from the UI process after the first chunk has been read.
3217         (WebKit::CustomProtocolManagerImpl::didReceiveResponse): Handle the case where
3218         data might no longer be available if an error happened even before this point.
3219         * WebProcess/soup/WebKitSoupRequestInputStream.h:
3220         * WebProcess/soup/WebKitSoupRequestInputStream.cpp:
3221         (webkitSoupRequestInputStreamDidFailWithError): Notify the custom GInputStream
3222         that we no longer want to keep reading data in chunks due to a specific error.
3223         (webkitSoupRequestInputStreamReadAsync): Early finish the GTask with a specific
3224         error whenever webkitSoupRequestInputStreamDidFailWithError() has been called.
3225
3226 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
3227
3228         [CoordinatedGraphics][EFL] Fix unhandled web process message when launching MiniBrowser
3229         https://bugs.webkit.org/show_bug.cgi?id=152048
3230
3231         Reviewed by Gyuyoung Kim.
3232
3233         WebPage should be initialized before updating preferences.
3234
3235         * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
3236         (WKViewInitialize): Deleted.
3237         * UIProcess/API/C/CoordinatedGraphics/WKView.h:
3238         * UIProcess/API/efl/EwkView.cpp:
3239         (EwkView::EwkView):
3240         Calls WKViewSetIsActive instead of WKViewInitialize not to change the behavior
3241         of EFL port.
3242         * UIProcess/CoordinatedGraphics/WebView.cpp:
3243         (WebKit::WebView::WebView):
3244         Initialize just before creating WebPage because there is not use case to separate
3245         initializing WebPage from creating in CoordinatedGraphics.
3246         (WebKit::WebView::initialize): Deleted.
3247         * UIProcess/CoordinatedGraphics/WebView.h:
3248
3249 2015-12-09  Carlos Garcia Campos  <cgarcia@igalia.com>
3250
3251         [GTK] Add API to handle beforeunload events
3252         https://bugs.webkit.org/show_bug.cgi?id=139090
3253
3254         Reviewed by Gustavo Noronha Silva.
3255
3256         beforeunload is fired when a page is about to be closed, to ask
3257         the user for confirmation. This happens when reloading a page,
3258         when navigating to another page or when the page is closed by a
3259         user action (a tab or window closed). In the first two cases, the
3260         event is automatically fired by WebCore, but in the case of a user
3261         action we need additional API to ensure the event is fired before
3262         the page is closed. A new script dialog type has been added to
3263         handle beforeunload events and webkit_web_view_try_close() to
3264         allow applications to try to close the page.
3265
3266         * UIProcess/API/gtk/WebKitScriptDialog.cpp:
3267         (webkit_script_dialog_confirm_set_confirmed): BeforeUnloadConfirm
3268         dialogs can also be confirmed.
3269         * UIProcess/API/gtk/WebKitScriptDialog.h: Add
3270         WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM script dialog type.
3271         * UIProcess/API/gtk/WebKitUIClient.cpp: Implement
3272         canRunBeforeUnloadConfirmPanel() and runBeforeUnloadConfirmPanel().
3273         * UIProcess/API/gtk/WebKitWebView.cpp:
3274         (webkitWebViewCreateJavaScriptDialog): Add secondaryText optional
3275         parameter for BeforeUnloadConfirm dialogs. Do not set the default
3276         response if the dialog was created without buttons.
3277         (webkitWebViewScriptDialog): Handle
3278         WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM script dialog type to
3279         create a message dialog for beforeunlos events.
3280         (webkit_web_view_class_init): Update documentation of
3281         WebKitWebView::close and WebKitWebView::script-dialog.
3282         (webkitWebViewRunJavaScriptBeforeUnloadConfirm): Emit WebKitWebView::script-dialog.
3283         (webkit_web_view_try_close): Try to close the page.
3284         * UIProcess/API/gtk/WebKitWebView.h:
3285         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
3286         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbol.
3287
3288 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3289
3290         [EFL] Missing to set ignoreTLSError to NetworkProcess
3291         https://bugs.webkit.org/show_bug.cgi?id=152047
3292
3293         Reviewed by Csaba Osztrogonác.
3294
3295         NetworkProcess has been enabled for all ports since r192796 though, EFL port
3296         didn't send the ignoreTLSError value to NetworkProcess. This has caused failure of EFL API tests
3297         related with ssl feature.
3298
3299         * UIProcess/efl/WebProcessPoolEfl.cpp:
3300         (WebKit::WebProcessPool::setIgnoreTLSErrors):
3301
3302 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3303
3304         [EFL] REGRESSION(r193616): WKPreferences test has been failed since r193616
3305         https://bugs.webkit.org/show_bug.cgi?id=151942
3306
3307         Reviewed by Darin Adler.
3308
3309         As wkpreference settings were moved from EwkView to WKPreferenceEfl, the offline-web-application-cache feature
3310         is enabled by default when running API test. It seems this option should be enabled by MiniBrowser.
3311
3312         * UIProcess/efl/WebPreferencesEfl.cpp:
3313         (WebKit::WebPreferences::platformInitializeStore): Remove to enable web application cache feature here.
3314
3315 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
3316
3317         [CoordinatedGraphics] layerTreeHost always exist in CoordinatedDrawingArea
3318         https://bugs.webkit.org/show_bug.cgi?id=151987
3319
3320         Reviewed by Darin Adler.
3321
3322         CoordinatedGraphics using UI side compositor always forces accelerated compositing.
3323         This patch cleans up dead code for layerTreeHost which always exists.
3324
3325         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
3326         (WebKit::CoordinatedDrawingAreaProxy::paint): Deleted.
3327         (WebKit::CoordinatedDrawingAreaProxy::setBackingStoreIsDiscardable): Deleted.
3328         (WebKit::CoordinatedDrawingAreaProxy::update): Deleted.
3329         (WebKit::CoordinatedDrawingAreaProxy::didUpdateBackingStoreState): Deleted.
3330         (WebKit::CoordinatedDrawingAreaProxy::exitAcceleratedCompositingMode): Deleted.
3331         (WebKit::CoordinatedDrawingAreaProxy::incorporateUpdate): Deleted.
3332         (WebKit::CoordinatedDrawingAreaProxy::enterAcceleratedCompositingMode): Deleted.
3333         (WebKit::CoordinatedDrawingAreaProxy::discardBackingStoreSoon): Deleted.
3334         (WebKit::CoordinatedDrawingAreaProxy::discardBackingStore): Deleted.
3335         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
3336         (WebKit::CoordinatedDrawingAreaProxy::setBackingStoreIsDiscardable):
3337         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
3338         (WebKit::CoordinatedDrawingArea::CoordinatedDrawingArea): Deleted.
3339         (WebKit::CoordinatedDrawingArea::layerHostDidFlushLayers): Deleted.
3340         (WebKit::CoordinatedDrawingArea::scheduleCompositingLayerFlush): Deleted.
3341         (WebKit::CoordinatedDrawingArea::didUpdate): Deleted.
3342         (WebKit::CoordinatedDrawingArea::enterAcceleratedCompositingMode): Deleted.
3343         (WebKit::CoordinatedDrawingArea::scheduleDisplay): Deleted.
3344         (WebKit::CoordinatedDrawingArea::displayTimerFired): Deleted.
3345         (WebKit::CoordinatedDrawingArea::display): Deleted.
3346         (WebKit::shouldPaintBoundsRect): Deleted.
3347         (WebKit::CoordinatedDrawingArea::attachViewOverlayGraphicsLayer): Deleted.
3348         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
3349
3350 2015-12-08  Alex Christensen  <achristensen@webkit.org>
3351
3352         Progress towards implementing downloads with NetworkSession
3353         https://bugs.webkit.org/show_bug.cgi?id=151883
3354
3355         Reviewed by Brady Eidson.
3356
3357         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3358         (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
3359         * NetworkProcess/NetworkLoad.cpp:
3360         (WebKit::NetworkLoad::~NetworkLoad):
3361         (WebKit::NetworkLoad::continueDidReceiveResponse):
3362         (WebKit::NetworkLoad::convertTaskToDownload):
3363         (WebKit::NetworkLoad::willPerformHTTPRedirection):
3364         (WebKit::NetworkLoad::didReceiveChallenge):
3365         (WebKit::NetworkLoad::didReceiveResponse):
3366         (WebKit::NetworkLoad::didReceiveData):
3367         (WebKit::NetworkLoad::didCompleteWithError):
3368         (WebKit::NetworkLoad::didBecomeDownload):
3369         (WebKit::NetworkLoad::didReceiveResponseAsync):
3370         (WebKit::NetworkLoad::continueCanAuthenticateAgainstProtectionSpace):
3371         * NetworkProcess/NetworkLoad.h:
3372         * NetworkProcess/NetworkLoadClient.h:
3373         * NetworkProcess/NetworkResourceLoader.cpp:
3374         (WebKit::NetworkResourceLoader::cleanup):
3375         (WebKit::NetworkResourceLoader::didConvertToDownload):
3376         (WebKit::NetworkResourceLoader::abort):
3377         (WebKit::NetworkResourceLoader::didConvertHandleToDownload): Deleted.
3378         * NetworkProcess/NetworkResourceLoader.h:
3379         * NetworkProcess/NetworkSession.h:
3380         (WebKit::NetworkSessionTaskClient::~NetworkSessionTaskClient):
3381         (WebKit::NetworkSession::~NetworkSession): Deleted.
3382         * NetworkProcess/cache/NetworkCacheSpeculativeLoad.h:
3383         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
3384         (-[NetworkSessionDelegate URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:]):
3385         (-[NetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
3386         (WebKit::NetworkSession::NetworkSession):
3387         (WebKit::NetworkSession::~NetworkSession):
3388         (WebKit::NetworkSession::createDataTaskWithRequest):
3389         * Shared/Downloads/Download.h:
3390         * Shared/Downloads/DownloadManager.h:
3391         (WebKit::DownloadManager::isDownloading):
3392         (WebKit::DownloadManager::activeDownloadCount):
3393
3394 2015-12-08  Joseph Pecoraro  <pecoraro@apple.com>
3395
3396         Create a Sandbox SPI header
3397         https://bugs.webkit.org/show_bug.cgi?id=151981
3398
3399         Reviewed by Andy Estes.
3400
3401         * PluginProcess/mac/PluginProcessShim.mm:
3402         * Shared/ios/ChildProcessIOS.mm:
3403         * Shared/mac/ChildProcessMac.mm:
3404         * Shared/mac/SandboxUtilities.mm:
3405
3406 2015-12-08  Eric Carlson  <eric.carlson@apple.com>
3407
3408         [MediaStream] Rename UserMediaClient and UserMediaController methods
3409         https://bugs.webkit.org/show_bug.cgi?id=152001
3410
3411         Reviewed by Brady Eidson.
3412
3413         * WebProcess/WebCoreSupport/WebUserMediaClient.cpp:
3414         (WebKit::WebUserMediaClient::pageDestroyed):
3415         (WebKit::WebUserMediaClient::requestUserMediaAccess):