| 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) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 const Vector<RedirectPair>& redirectChain() const { return m_redirectChain;
} | 281 const Vector<RedirectPair>& redirectChain() const { return m_redirectChain;
} |
| 282 | 282 |
| 283 virtual bool isSafeToUnlock() const { return false; } | 283 virtual bool isSafeToUnlock() const { return false; } |
| 284 virtual void destroyDecodedDataIfPossible() { } | 284 virtual void destroyDecodedDataIfPossible() { } |
| 285 | 285 |
| 286 virtual void markClientsAndObserversFinished(); | 286 virtual void markClientsAndObserversFinished(); |
| 287 | 287 |
| 288 // Returns the memory dump name used for tracing. See Resource::onMemoryDump
. | 288 // Returns the memory dump name used for tracing. See Resource::onMemoryDump
. |
| 289 String getMemoryDumpName() const; | 289 String getMemoryDumpName() const; |
| 290 | 290 |
| 291 const HashCountedSet<ResourceClient*>& clients() const { return m_clients; } | 291 const HeapHashCountedSet<WeakMember<ResourceClient>>& clients() const { retu
rn m_clients; } |
| 292 DataBufferingPolicy dataBufferingPolicy() const { return m_options.dataBuffe
ringPolicy; } | 292 DataBufferingPolicy dataBufferingPolicy() const { return m_options.dataBuffe
ringPolicy; } |
| 293 | 293 |
| 294 void setCachePolicyBypassingCache(); | 294 void setCachePolicyBypassingCache(); |
| 295 void setLoFiStateOff(); | 295 void setLoFiStateOff(); |
| 296 | 296 |
| 297 SharedBuffer* data() const { return m_data.get(); } | 297 SharedBuffer* data() const { return m_data.get(); } |
| 298 void clearData() { m_data.clear(); } | 298 void clearData() { m_data.clear(); } |
| 299 | 299 |
| 300 private: | 300 private: |
| 301 class ResourceCallback; | 301 class ResourceCallback; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 unsigned m_type : 4; // Type | 341 unsigned m_type : 4; // Type |
| 342 unsigned m_status : 3; // Status | 342 unsigned m_status : 3; // Status |
| 343 | 343 |
| 344 unsigned m_needsSynchronousCacheHit : 1; | 344 unsigned m_needsSynchronousCacheHit : 1; |
| 345 unsigned m_linkPreload : 1; | 345 unsigned m_linkPreload : 1; |
| 346 bool m_isRevalidating : 1; | 346 bool m_isRevalidating : 1; |
| 347 | 347 |
| 348 // Ordered list of all redirects followed while fetching this resource. | 348 // Ordered list of all redirects followed while fetching this resource. |
| 349 Vector<RedirectPair> m_redirectChain; | 349 Vector<RedirectPair> m_redirectChain; |
| 350 | 350 |
| 351 HashCountedSet<ResourceClient*> m_clients; | 351 HeapHashCountedSet<WeakMember<ResourceClient>> m_clients; |
| 352 HashCountedSet<ResourceClient*> m_clientsAwaitingCallback; | 352 HeapHashCountedSet<WeakMember<ResourceClient>> m_clientsAwaitingCallback; |
| 353 HashCountedSet<ResourceClient*> m_finishedClients; | 353 HeapHashCountedSet<WeakMember<ResourceClient>> m_finishedClients; |
| 354 | 354 |
| 355 ResourceLoaderOptions m_options; | 355 ResourceLoaderOptions m_options; |
| 356 | 356 |
| 357 double m_responseTimestamp; | 357 double m_responseTimestamp; |
| 358 | 358 |
| 359 Timer<Resource> m_cancelTimer; | 359 Timer<Resource> m_cancelTimer; |
| 360 | 360 |
| 361 ResourceRequest m_resourceRequest; | 361 ResourceRequest m_resourceRequest; |
| 362 Member<ResourceLoader> m_loader; | 362 Member<ResourceLoader> m_loader; |
| 363 ResourceResponse m_response; | 363 ResourceResponse m_response; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 376 | 376 |
| 377 Resource::Type m_type; | 377 Resource::Type m_type; |
| 378 }; | 378 }; |
| 379 | 379 |
| 380 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 380 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 381 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType(
) == Resource::typeName, resource.getType() == Resource::typeName); | 381 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType(
) == Resource::typeName, resource.getType() == Resource::typeName); |
| 382 | 382 |
| 383 } // namespace blink | 383 } // namespace blink |
| 384 | 384 |
| 385 #endif | 385 #endif |
| OLD | NEW |