OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class ResourceError; | 44 class ResourceError; |
45 class ResourceFetcher; | 45 class ResourceFetcher; |
46 class ThreadedDataReceiver; | 46 class ThreadedDataReceiver; |
47 | 47 |
48 class CORE_EXPORT ResourceLoader final : public GarbageCollectedFinalized<Resour
ceLoader>, protected WebURLLoaderClient { | 48 class CORE_EXPORT ResourceLoader final : public GarbageCollectedFinalized<Resour
ceLoader>, protected WebURLLoaderClient { |
49 public: | 49 public: |
50 static ResourceLoader* create(ResourceFetcher*, Resource*, const ResourceReq
uest&, const ResourceLoaderOptions&); | 50 static ResourceLoader* create(ResourceFetcher*, Resource*, const ResourceReq
uest&, const ResourceLoaderOptions&); |
51 ~ResourceLoader() override; | 51 ~ResourceLoader() override; |
52 DECLARE_TRACE(); | 52 DECLARE_TRACE(); |
53 | 53 |
| 54 // Promptly release m_loader. |
| 55 EAGERLY_FINALIZE(); |
| 56 |
54 void start(); | 57 void start(); |
55 void changeToSynchronous(); | 58 void changeToSynchronous(); |
56 | 59 |
57 void cancel(); | 60 void cancel(); |
58 void cancel(const ResourceError&); | 61 void cancel(const ResourceError&); |
59 void cancelIfNotFinishing(); | 62 void cancelIfNotFinishing(); |
60 | 63 |
61 Resource* cachedResource() { return m_resource; } | 64 Resource* cachedResource() { return m_resource; } |
62 const ResourceRequest& originalRequest() const { return m_originalRequest; } | 65 const ResourceRequest& originalRequest() const { return m_originalRequest; } |
63 | 66 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 ResourceLoaderState m_state; | 138 ResourceLoaderState m_state; |
136 | 139 |
137 // Used for sanity checking to make sure we don't experience illegal state | 140 // Used for sanity checking to make sure we don't experience illegal state |
138 // transitions. | 141 // transitions. |
139 ConnectionState m_connectionState; | 142 ConnectionState m_connectionState; |
140 }; | 143 }; |
141 | 144 |
142 } // namespace blink | 145 } // namespace blink |
143 | 146 |
144 #endif | 147 #endif |
OLD | NEW |