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

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

Issue 2855883004: Rename Resource::GetError() to FinishAsError() (Closed)
Patch Set: Rebase 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 kReloadAlways, 99 kReloadAlways,
100 }; 100 };
101 101
102 virtual ~Resource(); 102 virtual ~Resource();
103 103
104 DECLARE_VIRTUAL_TRACE(); 104 DECLARE_VIRTUAL_TRACE();
105 105
106 virtual void SetEncoding(const String&) {} 106 virtual void SetEncoding(const String&) {}
107 virtual String Encoding() const { return String(); } 107 virtual String Encoding() const { return String(); }
108 virtual void AppendData(const char*, size_t); 108 virtual void AppendData(const char*, size_t);
109 virtual void GetError(const ResourceError&); 109 virtual void FinishAsError(const ResourceError&);
110 virtual void SetCORSFailed() {} 110 virtual void SetCORSFailed() {}
111 111
112 void SetNeedsSynchronousCacheHit(bool needs_synchronous_cache_hit) { 112 void SetNeedsSynchronousCacheHit(bool needs_synchronous_cache_hit) {
113 needs_synchronous_cache_hit_ = needs_synchronous_cache_hit; 113 needs_synchronous_cache_hit_ = needs_synchronous_cache_hit;
114 } 114 }
115 115
116 void SetLinkPreload(bool is_link_preload) { link_preload_ = is_link_preload; } 116 void SetLinkPreload(bool is_link_preload) { link_preload_ = is_link_preload; }
117 bool IsLinkPreload() const { return link_preload_; } 117 bool IsLinkPreload() const { return link_preload_; }
118 118
119 void SetPreloadDiscoveryTime(double preload_discovery_time) { 119 void SetPreloadDiscoveryTime(double preload_discovery_time) {
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 }; 499 };
500 500
501 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 501 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
502 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ 502 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \
503 resource->GetType() == Resource::k##typeName, \ 503 resource->GetType() == Resource::k##typeName, \
504 resource.GetType() == Resource::k##typeName); 504 resource.GetType() == Resource::k##typeName);
505 505
506 } // namespace blink 506 } // namespace blink
507 507
508 #endif 508 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698