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

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

Issue 2695713015: WIP: Reland CompiledScript, prototype compiling in a separate task.
Patch Set: allow compile to fail, disallow restreaming (hack) Created 3 years, 9 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 virtual bool isImage() const { return false; } 198 virtual bool isImage() const { return false; }
199 bool shouldBlockLoadEvent() const; 199 bool shouldBlockLoadEvent() const;
200 bool isLoadEventBlockingResourceType() const; 200 bool isLoadEventBlockingResourceType() const;
201 201
202 // Computes the status of an object after loading. Updates the expire date on 202 // Computes the status of an object after loading. Updates the expire date on
203 // the cache entry file 203 // the cache entry file
204 virtual void finish(double finishTime); 204 virtual void finish(double finishTime);
205 void finish() { finish(0.0); } 205 void finish() { finish(0.0); }
206 206
207 bool passesAccessControlCheck(SecurityOrigin*) const; 207 bool passesAccessControlCheck(const SecurityOrigin*) const;
208 208
209 virtual PassRefPtr<const SharedBuffer> resourceBuffer() const { 209 virtual PassRefPtr<const SharedBuffer> resourceBuffer() const {
210 return m_data; 210 return m_data;
211 } 211 }
212 void setResourceBuffer(PassRefPtr<SharedBuffer>); 212 void setResourceBuffer(PassRefPtr<SharedBuffer>);
213 213
214 virtual bool willFollowRedirect(const ResourceRequest&, 214 virtual bool willFollowRedirect(const ResourceRequest&,
215 const ResourceResponse&); 215 const ResourceResponse&);
216 216
217 // Called when a redirect response was received but a decision has already 217 // Called when a redirect response was received but a decision has already
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 }; 501 };
502 502
503 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 503 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
504 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ 504 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \
505 resource->getType() == Resource::typeName, \ 505 resource->getType() == Resource::typeName, \
506 resource.getType() == Resource::typeName); 506 resource.getType() == Resource::typeName);
507 507
508 } // namespace blink 508 } // namespace blink
509 509
510 #endif 510 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698