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

Side by Side Diff: sky/engine/core/fetch/Resource.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/fetch/MemoryCache.cpp ('k') | sky/engine/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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 Resource(const ResourceRequest&, Type); 78 Resource(const ResourceRequest&, Type);
79 #if ENABLE(OILPAN) 79 #if ENABLE(OILPAN)
80 virtual ~Resource(); 80 virtual ~Resource();
81 #else 81 #else
82 protected: 82 protected:
83 // Only deleteIfPossible should delete this. 83 // Only deleteIfPossible should delete this.
84 virtual ~Resource(); 84 virtual ~Resource();
85 public: 85 public:
86 #endif 86 #endif
87 virtual void dispose(); 87 virtual void dispose();
88 virtual void trace(Visitor*);
89 static unsigned instanceCount() { return s_instanceCount; } 88 static unsigned instanceCount() { return s_instanceCount; }
90 89
91 virtual void load(ResourceFetcher*, const ResourceLoaderOptions&); 90 virtual void load(ResourceFetcher*, const ResourceLoaderOptions&);
92 91
93 virtual void setEncoding(const String&) { } 92 virtual void setEncoding(const String&) { }
94 virtual String encoding() const { return String(); } 93 virtual String encoding() const { return String(); }
95 virtual void appendData(const char*, int); 94 virtual void appendData(const char*, int);
96 virtual void error(Resource::Status); 95 virtual void error(Resource::Status);
97 96
98 void setNeedsSynchronousCacheHit(bool needsSynchronousCacheHit) { m_needsSyn chronousCacheHit = needsSynchronousCacheHit; } 97 void setNeedsSynchronousCacheHit(bool needsSynchronousCacheHit) { m_needsSyn chronousCacheHit = needsSynchronousCacheHit; }
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 const char* ResourceTypeName(Resource::Type); 349 const char* ResourceTypeName(Resource::Type);
351 #endif 350 #endif
352 351
353 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 352 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
354 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() = = Resource::typeName, resource.type() == Resource::typeName); \ 353 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() = = Resource::typeName, resource.type() == Resource::typeName); \
355 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource >& ptr) { return to##typeName##Resource(ptr.get()); } 354 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource >& ptr) { return to##typeName##Resource(ptr.get()); }
356 355
357 } 356 }
358 357
359 #endif 358 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/fetch/MemoryCache.cpp ('k') | sky/engine/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698