OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
3 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
4 * Copyright (C) 2008 Xan Lopez <xan@gnome.org> | 4 * Copyright (C) 2008 Xan Lopez <xan@gnome.org> |
5 * Copyright (C) 2008, 2010 Collabora Ltd. | 5 * Copyright (C) 2008, 2010 Collabora Ltd. |
6 * Copyright (C) 2009 Holger Hans Peter Freyther | 6 * Copyright (C) 2009 Holger Hans Peter Freyther |
7 * Copyright (C) 2009 Gustavo Noronha Silva <gns@gnome.org> | 7 * Copyright (C) 2009 Gustavo Noronha Silva <gns@gnome.org> |
8 * Copyright (C) 2009 Christian Dywan <christian@imendio.com> | 8 * Copyright (C) 2009 Christian Dywan <christian@imendio.com> |
9 * Copyright (C) 2009, 2010, 2011, 2012 Igalia S.L. | 9 * Copyright (C) 2009, 2010, 2011, 2012 Igalia S.L. |
10 * Copyright (C) 2009 John Kjellberg <john.kjellberg@power.alstom.com> | 10 * Copyright (C) 2009 John Kjellberg <john.kjellberg@power.alstom.com> |
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 else | 1279 else |
1280 sendRequestCallback(G_OBJECT(d->m_soupRequest.get()), asyncResult.ge
t(), this); | 1280 sendRequestCallback(G_OBJECT(d->m_soupRequest.get()), asyncResult.ge
t(), this); |
1281 } | 1281 } |
1282 } | 1282 } |
1283 | 1283 |
1284 bool ResourceHandle::loadsBlocked() | 1284 bool ResourceHandle::loadsBlocked() |
1285 { | 1285 { |
1286 return false; | 1286 return false; |
1287 } | 1287 } |
1288 | 1288 |
| 1289 bool ResourceHandle::willLoadFromCache(ResourceRequest&, Frame*) |
| 1290 { |
| 1291 // Not having this function means that we'll ask the user about re-posting a
form |
| 1292 // even when we go back to a page that's still in the cache. |
| 1293 notImplemented(); |
| 1294 return false; |
| 1295 } |
| 1296 |
1289 void ResourceHandle::loadResourceSynchronously(NetworkingContext* context, const
ResourceRequest& request, StoredCredentials /*storedCredentials*/, ResourceErro
r& error, ResourceResponse& response, Vector<char>& data) | 1297 void ResourceHandle::loadResourceSynchronously(NetworkingContext* context, const
ResourceRequest& request, StoredCredentials /*storedCredentials*/, ResourceErro
r& error, ResourceResponse& response, Vector<char>& data) |
1290 { | 1298 { |
1291 #if ENABLE(BLOB) | 1299 #if ENABLE(BLOB) |
1292 if (request.url().protocolIs("blob")) { | 1300 if (request.url().protocolIs("blob")) { |
1293 blobRegistry().loadResourceSynchronously(request, error, response, data)
; | 1301 blobRegistry().loadResourceSynchronously(request, error, response, data)
; |
1294 return; | 1302 return; |
1295 } | 1303 } |
1296 #endif | 1304 #endif |
1297 | 1305 |
1298 ASSERT(!loadingSynchronousRequest); | 1306 ASSERT(!loadingSynchronousRequest); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1434 return session; | 1442 return session; |
1435 } | 1443 } |
1436 | 1444 |
1437 uint64_t ResourceHandle::getSoupRequestInitiatingPageID(SoupRequest* request) | 1445 uint64_t ResourceHandle::getSoupRequestInitiatingPageID(SoupRequest* request) |
1438 { | 1446 { |
1439 uint64_t* initiatingPageIDPtr = static_cast<uint64_t*>(g_object_get_data(G_O
BJECT(request), gSoupRequestInitiatingPageIDKey)); | 1447 uint64_t* initiatingPageIDPtr = static_cast<uint64_t*>(g_object_get_data(G_O
BJECT(request), gSoupRequestInitiatingPageIDKey)); |
1440 return initiatingPageIDPtr ? *initiatingPageIDPtr : 0; | 1448 return initiatingPageIDPtr ? *initiatingPageIDPtr : 0; |
1441 } | 1449 } |
1442 | 1450 |
1443 } | 1451 } |
OLD | NEW |