| OLD | NEW |
| 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. |
| 11 | 11 |
| 12 This library is distributed in the hope that it will be useful, | 12 This library is distributed in the hope that it will be useful, |
| 13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 Library General Public License for more details. | 15 Library General Public License for more details. |
| 16 | 16 |
| 17 You should have received a copy of the GNU Library General Public License | 17 You should have received a copy of the GNU Library General Public License |
| 18 along with this library; see the file COPYING.LIB. If not, write to | 18 along with this library; see the file COPYING.LIB. If not, write to |
| 19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 Boston, MA 02110-1301, USA. | 20 Boston, MA 02110-1301, USA. |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 #ifndef Resource_h | 23 #ifndef Resource_h |
| 24 #define Resource_h | 24 #define Resource_h |
| 25 | 25 |
| 26 #include "core/fetch/ResourceLoaderOptions.h" | 26 #include "sky/engine/core/fetch/ResourceLoaderOptions.h" |
| 27 #include "platform/Timer.h" | 27 #include "sky/engine/platform/Timer.h" |
| 28 #include "platform/network/ResourceError.h" | 28 #include "sky/engine/platform/network/ResourceError.h" |
| 29 #include "platform/network/ResourceLoadPriority.h" | 29 #include "sky/engine/platform/network/ResourceLoadPriority.h" |
| 30 #include "platform/network/ResourceRequest.h" | 30 #include "sky/engine/platform/network/ResourceRequest.h" |
| 31 #include "platform/network/ResourceResponse.h" | 31 #include "sky/engine/platform/network/ResourceResponse.h" |
| 32 #include "wtf/HashCountedSet.h" | 32 #include "sky/engine/wtf/HashCountedSet.h" |
| 33 #include "wtf/HashSet.h" | 33 #include "sky/engine/wtf/HashSet.h" |
| 34 #include "wtf/OwnPtr.h" | 34 #include "sky/engine/wtf/OwnPtr.h" |
| 35 #include "wtf/text/WTFString.h" | 35 #include "sky/engine/wtf/text/WTFString.h" |
| 36 | 36 |
| 37 // FIXME(crbug.com/352043): This is temporarily enabled even on RELEASE to diagn
ose a wild crash. | 37 // FIXME(crbug.com/352043): This is temporarily enabled even on RELEASE to diagn
ose a wild crash. |
| 38 #define ENABLE_RESOURCE_IS_DELETED_CHECK | 38 #define ENABLE_RESOURCE_IS_DELETED_CHECK |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 struct FetchInitiatorInfo; | 42 struct FetchInitiatorInfo; |
| 43 class MemoryCache; | 43 class MemoryCache; |
| 44 class ResourceClient; | 44 class ResourceClient; |
| 45 class ResourcePtrBase; | 45 class ResourcePtrBase; |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 const char* ResourceTypeName(Resource::Type); | 349 const char* ResourceTypeName(Resource::Type); |
| 350 #endif | 350 #endif |
| 351 | 351 |
| 352 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 352 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 353 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); \ |
| 354 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()); } |
| 355 | 355 |
| 356 } | 356 } |
| 357 | 357 |
| 358 #endif | 358 #endif |
| OLD | NEW |