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

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

Issue 2561403003: Use getDataBufferingPolicy() instead of the redundant dataBufferingPolicy(). (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/fetch/RawResource.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 const Vector<RedirectPair>& redirectChain() const { return m_redirectChain; } 376 const Vector<RedirectPair>& redirectChain() const { return m_redirectChain; }
377 377
378 virtual void destroyDecodedDataIfPossible() {} 378 virtual void destroyDecodedDataIfPossible() {}
379 379
380 // Returns the memory dump name used for tracing. See Resource::onMemoryDump. 380 // Returns the memory dump name used for tracing. See Resource::onMemoryDump.
381 String getMemoryDumpName() const; 381 String getMemoryDumpName() const;
382 382
383 const HeapHashCountedSet<WeakMember<ResourceClient>>& clients() const { 383 const HeapHashCountedSet<WeakMember<ResourceClient>>& clients() const {
384 return m_clients; 384 return m_clients;
385 } 385 }
386 DataBufferingPolicy dataBufferingPolicy() const {
387 return m_options.dataBufferingPolicy;
388 }
389 386
390 void setCachePolicyBypassingCache(); 387 void setCachePolicyBypassingCache();
391 void setLoFiStateOff(); 388 void setLoFiStateOff();
392 void clearRangeRequestHeader(); 389 void clearRangeRequestHeader();
393 390
394 SharedBuffer* data() const { return m_data.get(); } 391 SharedBuffer* data() const { return m_data.get(); }
395 void clearData(); 392 void clearData();
396 393
397 class ProhibitAddRemoveClientInScope : public AutoReset<bool> { 394 class ProhibitAddRemoveClientInScope : public AutoReset<bool> {
398 public: 395 public:
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 }; 488 };
492 489
493 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 490 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
494 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ 491 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \
495 resource->getType() == Resource::typeName, \ 492 resource->getType() == Resource::typeName, \
496 resource.getType() == Resource::typeName); 493 resource.getType() == Resource::typeName);
497 494
498 } // namespace blink 495 } // namespace blink
499 496
500 #endif 497 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/RawResource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698