| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
| 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
| 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 379 |
| 380 m_data->unlock(); | 380 m_data->unlock(); |
| 381 return true; | 381 return true; |
| 382 } | 382 } |
| 383 | 383 |
| 384 bool Resource::hasRightHandleCountApartFromCache(unsigned targetCount) const | 384 bool Resource::hasRightHandleCountApartFromCache(unsigned targetCount) const |
| 385 { | 385 { |
| 386 return m_handleCount == targetCount + (memoryCache()->contains(this) ? 1 : 0
); | 386 return m_handleCount == targetCount + (memoryCache()->contains(this) ? 1 : 0
); |
| 387 } | 387 } |
| 388 | 388 |
| 389 void Resource::responseReceived(const ResourceResponse& response) | 389 void Resource::responseReceived(const ResourceResponse& response, PassOwnPtr<Web
DataConsumerHandle>) |
| 390 { | 390 { |
| 391 setResponse(response); | 391 setResponse(response); |
| 392 m_responseTimestamp = currentTime(); | 392 m_responseTimestamp = currentTime(); |
| 393 String encoding = response.textEncodingName(); | 393 String encoding = response.textEncodingName(); |
| 394 if (!encoding.isNull()) | 394 if (!encoding.isNull()) |
| 395 setEncoding(encoding); | 395 setEncoding(encoding); |
| 396 | 396 |
| 397 if (!m_resourceToRevalidate) | 397 if (!m_resourceToRevalidate) |
| 398 return; | 398 return; |
| 399 if (response.httpStatusCode() == 304) | 399 if (response.httpStatusCode() == 304) |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 return "ImportResource"; | 1007 return "ImportResource"; |
| 1008 case Resource::Media: | 1008 case Resource::Media: |
| 1009 return "Media"; | 1009 return "Media"; |
| 1010 } | 1010 } |
| 1011 ASSERT_NOT_REACHED(); | 1011 ASSERT_NOT_REACHED(); |
| 1012 return "Unknown"; | 1012 return "Unknown"; |
| 1013 } | 1013 } |
| 1014 #endif // !LOG_DISABLED | 1014 #endif // !LOG_DISABLED |
| 1015 | 1015 |
| 1016 } | 1016 } |
| OLD | NEW |