| 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 RefPtr<SharedBuffer> m_data; | 297 RefPtr<SharedBuffer> m_data; |
| 298 | 298 |
| 299 private: | 299 private: |
| 300 class ResourceCallback; | 300 class ResourceCallback; |
| 301 class CachedMetadataHandlerImpl; | 301 class CachedMetadataHandlerImpl; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 unsigned m_type : 4; // Type | 340 unsigned m_type : 4; // Type |
| 341 unsigned m_status : 3; // Status | 341 unsigned m_status : 3; // Status |
| 342 | 342 |
| 343 unsigned m_needsSynchronousCacheHit : 1; | 343 unsigned m_needsSynchronousCacheHit : 1; |
| 344 unsigned m_linkPreload : 1; | 344 unsigned m_linkPreload : 1; |
| 345 bool m_isRevalidating : 1; | 345 bool m_isRevalidating : 1; |
| 346 | 346 |
| 347 // Ordered list of all redirects followed while fetching this resource. | 347 // Ordered list of all redirects followed while fetching this resource. |
| 348 Vector<RedirectPair> m_redirectChain; | 348 Vector<RedirectPair> m_redirectChain; |
| 349 | 349 |
| 350 HashCountedSet<ResourceClient*> m_clients; | 350 HeapHashCountedSet<WeakMember<ResourceClient>> m_clients; |
| 351 HashCountedSet<ResourceClient*> m_clientsAwaitingCallback; | 351 HeapHashCountedSet<WeakMember<ResourceClient>> m_clientsAwaitingCallback; |
| 352 HashCountedSet<ResourceClient*> m_finishedClients; | 352 HeapHashCountedSet<WeakMember<ResourceClient>> m_finishedClients; |
| 353 | 353 |
| 354 ResourceLoaderOptions m_options; | 354 ResourceLoaderOptions m_options; |
| 355 | 355 |
| 356 double m_responseTimestamp; | 356 double m_responseTimestamp; |
| 357 | 357 |
| 358 Timer<Resource> m_cancelTimer; | 358 Timer<Resource> m_cancelTimer; |
| 359 | 359 |
| 360 ResourceRequest m_resourceRequest; | 360 ResourceRequest m_resourceRequest; |
| 361 Member<ResourceLoader> m_loader; | 361 Member<ResourceLoader> m_loader; |
| 362 ResourceResponse m_response; | 362 ResourceResponse m_response; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 373 | 373 |
| 374 Resource::Type m_type; | 374 Resource::Type m_type; |
| 375 }; | 375 }; |
| 376 | 376 |
| 377 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 377 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 378 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType(
) == Resource::typeName, resource.getType() == Resource::typeName); | 378 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType(
) == Resource::typeName, resource.getType() == Resource::typeName); |
| 379 | 379 |
| 380 } // namespace blink | 380 } // namespace blink |
| 381 | 381 |
| 382 #endif | 382 #endif |
| OLD | NEW |