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

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

Issue 120513004: Don't expose DocumentWriter to embedding layer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/fetch/Resource.cpp » ('j') | 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 rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 CacheLiveResourcePriorityHigh 90 CacheLiveResourcePriorityHigh
91 }; 91 };
92 92
93 virtual void load(ResourceFetcher*, const ResourceLoaderOptions&); 93 virtual void load(ResourceFetcher*, const ResourceLoaderOptions&);
94 94
95 virtual void setEncoding(const String&) { } 95 virtual void setEncoding(const String&) { }
96 virtual String encoding() const { return String(); } 96 virtual String encoding() const { return String(); }
97 virtual void appendData(const char*, int); 97 virtual void appendData(const char*, int);
98 virtual void error(Resource::Status); 98 virtual void error(Resource::Status);
99 99
100 void setNeedsSynchronousCacheHit(bool needsSynchronousCacheHit) { m_needsSyn chronousCacheHit = needsSynchronousCacheHit; }
101
100 void setResourceError(const ResourceError& error) { m_error = error; } 102 void setResourceError(const ResourceError& error) { m_error = error; }
101 const ResourceError& resourceError() const { return m_error; } 103 const ResourceError& resourceError() const { return m_error; }
102 104
103 void setIdentifier(unsigned long identifier) { m_identifier = identifier; } 105 void setIdentifier(unsigned long identifier) { m_identifier = identifier; }
104 unsigned long identifier() const { return m_identifier; } 106 unsigned long identifier() const { return m_identifier; }
105 107
106 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return false; } 108 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return false; }
107 109
108 ResourceRequest& resourceRequest() { return m_resourceRequest; } 110 ResourceRequest& resourceRequest() { return m_resourceRequest; }
109 const KURL& url() const { return m_resourceRequest.url();} 111 const KURL& url() const { return m_resourceRequest.url();}
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 unsigned m_inCache : 1; 358 unsigned m_inCache : 1;
357 unsigned m_loading : 1; 359 unsigned m_loading : 1;
358 360
359 unsigned m_switchingClientsToRevalidatedResource : 1; 361 unsigned m_switchingClientsToRevalidatedResource : 1;
360 362
361 unsigned m_type : 4; // Type 363 unsigned m_type : 4; // Type
362 unsigned m_status : 3; // Status 364 unsigned m_status : 3; // Status
363 365
364 unsigned m_wasPurged : 1; 366 unsigned m_wasPurged : 1;
365 367
368 unsigned m_needsSynchronousCacheHit : 1;
369
366 #ifndef NDEBUG 370 #ifndef NDEBUG
367 bool m_deleted; 371 bool m_deleted;
368 unsigned m_lruIndex; 372 unsigned m_lruIndex;
369 #endif 373 #endif
370 374
371 Resource* m_nextInAllResourcesList; 375 Resource* m_nextInAllResourcesList;
372 Resource* m_prevInAllResourcesList; 376 Resource* m_prevInAllResourcesList;
373 377
374 Resource* m_nextInLiveResourcesList; 378 Resource* m_nextInLiveResourcesList;
375 Resource* m_prevInLiveResourcesList; 379 Resource* m_prevInLiveResourcesList;
(...skipping 16 matching lines...) Expand all
392 const char* ResourceTypeName(Resource::Type); 396 const char* ResourceTypeName(Resource::Type);
393 #endif 397 #endif
394 398
395 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 399 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
396 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() = = Resource::typeName, resource.type() == Resource::typeName); \ 400 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() = = Resource::typeName, resource.type() == Resource::typeName); \
397 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource >& ptr) { return to##typeName##Resource(ptr.get()); } 401 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource >& ptr) { return to##typeName##Resource(ptr.get()); }
398 402
399 } 403 }
400 404
401 #endif 405 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698