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 | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 rights reserved. | 6 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 357 |
358 const HeapHashCountedSet<WeakMember<ResourceClient>>& clients() const { | 358 const HeapHashCountedSet<WeakMember<ResourceClient>>& clients() const { |
359 return m_clients; | 359 return m_clients; |
360 } | 360 } |
361 DataBufferingPolicy dataBufferingPolicy() const { | 361 DataBufferingPolicy dataBufferingPolicy() const { |
362 return m_options.dataBufferingPolicy; | 362 return m_options.dataBufferingPolicy; |
363 } | 363 } |
364 | 364 |
365 void setCachePolicyBypassingCache(); | 365 void setCachePolicyBypassingCache(); |
366 void setLoFiStateOff(); | 366 void setLoFiStateOff(); |
| 367 void clearRangeRequestHeader(); |
367 | 368 |
368 SharedBuffer* data() const { return m_data.get(); } | 369 SharedBuffer* data() const { return m_data.get(); } |
369 void clearData() { m_data.clear(); } | 370 void clearData() { m_data.clear(); } |
370 | 371 |
371 class ProhibitAddRemoveClientInScope : public AutoReset<bool> { | 372 class ProhibitAddRemoveClientInScope : public AutoReset<bool> { |
372 public: | 373 public: |
373 ProhibitAddRemoveClientInScope(Resource* resource) | 374 ProhibitAddRemoveClientInScope(Resource* resource) |
374 : AutoReset(&resource->m_isAddRemoveClientProhibited, true) {} | 375 : AutoReset(&resource->m_isAddRemoveClientProhibited, true) {} |
375 }; | 376 }; |
376 | 377 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 }; | 466 }; |
466 | 467 |
467 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 468 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
468 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 469 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
469 resource->getType() == Resource::typeName, \ | 470 resource->getType() == Resource::typeName, \ |
470 resource.getType() == Resource::typeName); | 471 resource.getType() == Resource::typeName); |
471 | 472 |
472 } // namespace blink | 473 } // namespace blink |
473 | 474 |
474 #endif | 475 #endif |
OLD | NEW |