Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 2423683002: Add Blink support for showing image placeholders using range requests. (Closed)
Patch Set: Change test data to "const unsigned char" instead of "const char" to fix warnings in windows build Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 373
374 const HeapHashCountedSet<WeakMember<ResourceClient>>& clients() const { 374 const HeapHashCountedSet<WeakMember<ResourceClient>>& clients() const {
375 return m_clients; 375 return m_clients;
376 } 376 }
377 DataBufferingPolicy dataBufferingPolicy() const { 377 DataBufferingPolicy dataBufferingPolicy() const {
378 return m_options.dataBufferingPolicy; 378 return m_options.dataBufferingPolicy;
379 } 379 }
380 380
381 void setCachePolicyBypassingCache(); 381 void setCachePolicyBypassingCache();
382 void setLoFiStateOff(); 382 void setLoFiStateOff();
383 void clearRangeRequestHeader();
383 384
384 SharedBuffer* data() const { return m_data.get(); } 385 SharedBuffer* data() const { return m_data.get(); }
385 void clearData() { m_data.clear(); } 386 void clearData() { m_data.clear(); }
386 387
387 class ProhibitAddRemoveClientInScope : public AutoReset<bool> { 388 class ProhibitAddRemoveClientInScope : public AutoReset<bool> {
388 public: 389 public:
389 ProhibitAddRemoveClientInScope(Resource* resource) 390 ProhibitAddRemoveClientInScope(Resource* resource)
390 : AutoReset(&resource->m_isAddRemoveClientProhibited, true) {} 391 : AutoReset(&resource->m_isAddRemoveClientProhibited, true) {}
391 }; 392 };
392 393
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 }; 482 };
482 483
483 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 484 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
484 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ 485 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \
485 resource->getType() == Resource::typeName, \ 486 resource->getType() == Resource::typeName, \
486 resource.getType() == Resource::typeName); 487 resource.getType() == Resource::typeName);
487 488
488 } // namespace blink 489 } // namespace blink
489 490
490 #endif 491 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp ('k') | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698