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

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

Issue 2873793002: Record Data Savings for Client-Side LoFi (Closed)
Patch Set: fix crash in DRPNetworkDelegate when lofi_ui_service is null. Created 3 years, 7 months 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 virtual void DestroyDecodedDataIfPossible() {} 399 virtual void DestroyDecodedDataIfPossible() {}
400 400
401 // Returns the memory dump name used for tracing. See Resource::onMemoryDump. 401 // Returns the memory dump name used for tracing. See Resource::onMemoryDump.
402 String GetMemoryDumpName() const; 402 String GetMemoryDumpName() const;
403 403
404 const HeapHashCountedSet<WeakMember<ResourceClient>>& Clients() const { 404 const HeapHashCountedSet<WeakMember<ResourceClient>>& Clients() const {
405 return clients_; 405 return clients_;
406 } 406 }
407 407
408 void SetCachePolicyBypassingCache(); 408 void SetCachePolicyBypassingCache();
409 void SetPreviewsStateNoTransform(); 409 void SetPreviewsState(WebURLRequest::PreviewsState);
410 void ClearRangeRequestHeader(); 410 void ClearRangeRequestHeader();
411 411
412 SharedBuffer* Data() const { return data_.Get(); } 412 SharedBuffer* Data() const { return data_.Get(); }
413 void ClearData(); 413 void ClearData();
414 414
415 private: 415 private:
416 class ResourceCallback; 416 class ResourceCallback;
417 class CachedMetadataHandlerImpl; 417 class CachedMetadataHandlerImpl;
418 class ServiceWorkerResponseCachedMetadataHandler; 418 class ServiceWorkerResponseCachedMetadataHandler;
419 419
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 }; 504 };
505 505
506 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 506 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
507 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ 507 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \
508 resource->GetType() == Resource::k##typeName, \ 508 resource->GetType() == Resource::k##typeName, \
509 resource.GetType() == Resource::k##typeName); 509 resource.GetType() == Resource::k##typeName);
510 510
511 } // namespace blink 511 } // namespace blink
512 512
513 #endif 513 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698