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 | 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 |
11 version 2 of the License, or (at your option) any later version. | 11 version 2 of the License, or (at your option) any later version. |
12 | 12 |
13 This library is distributed in the hope that it will be useful, | 13 This library is distributed in the hope that it will be useful, |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 Library General Public License for more details. | 16 Library General Public License for more details. |
17 | 17 |
18 You should have received a copy of the GNU Library General Public License | 18 You should have received a copy of the GNU Library General Public License |
19 along with this library; see the file COPYING.LIB. If not, write to | 19 along with this library; see the file COPYING.LIB. If not, write to |
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 Boston, MA 02110-1301, USA. | 21 Boston, MA 02110-1301, USA. |
22 */ | 22 */ |
23 | 23 |
24 #ifndef Resource_h | 24 #ifndef Resource_h |
25 #define Resource_h | 25 #define Resource_h |
26 | 26 |
| 27 #include <memory> |
27 #include "platform/MemoryCoordinator.h" | 28 #include "platform/MemoryCoordinator.h" |
28 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
29 #include "platform/SharedBuffer.h" | 30 #include "platform/SharedBuffer.h" |
30 #include "platform/Timer.h" | 31 #include "platform/Timer.h" |
31 #include "platform/instrumentation/tracing/web_process_memory_dump.h" | 32 #include "platform/instrumentation/tracing/web_process_memory_dump.h" |
32 #include "platform/loader/fetch/CachedMetadataHandler.h" | 33 #include "platform/loader/fetch/CachedMetadataHandler.h" |
33 #include "platform/loader/fetch/IntegrityMetadata.h" | 34 #include "platform/loader/fetch/IntegrityMetadata.h" |
34 #include "platform/loader/fetch/ResourceLoaderOptions.h" | 35 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
35 #include "platform/loader/fetch/ResourceStatus.h" | 36 #include "platform/loader/fetch/ResourceStatus.h" |
36 #include "platform/network/ResourceError.h" | 37 #include "platform/network/ResourceError.h" |
37 #include "platform/network/ResourceLoadPriority.h" | 38 #include "platform/network/ResourceLoadPriority.h" |
38 #include "platform/network/ResourceRequest.h" | 39 #include "platform/network/ResourceRequest.h" |
39 #include "platform/network/ResourceResponse.h" | 40 #include "platform/network/ResourceResponse.h" |
40 #include "public/platform/WebDataConsumerHandle.h" | 41 #include "public/platform/WebDataConsumerHandle.h" |
41 #include "wtf/Allocator.h" | 42 #include "wtf/Allocator.h" |
42 #include "wtf/AutoReset.h" | 43 #include "wtf/AutoReset.h" |
43 #include "wtf/HashCountedSet.h" | 44 #include "wtf/HashCountedSet.h" |
44 #include "wtf/HashSet.h" | 45 #include "wtf/HashSet.h" |
45 #include "wtf/text/AtomicString.h" | 46 #include "wtf/text/AtomicString.h" |
46 #include "wtf/text/WTFString.h" | 47 #include "wtf/text/WTFString.h" |
47 #include <memory> | |
48 | 48 |
49 namespace blink { | 49 namespace blink { |
50 | 50 |
51 class FetchRequest; | 51 class FetchRequest; |
52 class ResourceClient; | 52 class ResourceClient; |
53 class ResourceFetcher; | 53 class ResourceFetcher; |
54 class ResourceTimingInfo; | 54 class ResourceTimingInfo; |
55 class ResourceLoader; | 55 class ResourceLoader; |
56 class SecurityOrigin; | 56 class SecurityOrigin; |
57 | 57 |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 }; | 502 }; |
503 | 503 |
504 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 504 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
505 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 505 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
506 resource->getType() == Resource::typeName, \ | 506 resource->getType() == Resource::typeName, \ |
507 resource.getType() == Resource::typeName); | 507 resource.getType() == Resource::typeName); |
508 | 508 |
509 } // namespace blink | 509 } // namespace blink |
510 | 510 |
511 #endif | 511 #endif |
OLD | NEW |