| 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 30 matching lines...) Expand all Loading... |
| 41 class Resource; | 41 class Resource; |
| 42 class KURL; | 42 class KURL; |
| 43 class ResourceError; | 43 class ResourceError; |
| 44 class ResourceResponse; | 44 class ResourceResponse; |
| 45 class ResourceLoaderHost; | 45 class ResourceLoaderHost; |
| 46 | 46 |
| 47 class ResourceLoader final : public RefCounted<ResourceLoader>, protected WebURL
LoaderClient { | 47 class ResourceLoader final : public RefCounted<ResourceLoader>, protected WebURL
LoaderClient { |
| 48 public: | 48 public: |
| 49 static PassRefPtr<ResourceLoader> create(ResourceLoaderHost*, Resource*, con
st ResourceRequest&, const ResourceLoaderOptions&); | 49 static PassRefPtr<ResourceLoader> create(ResourceLoaderHost*, Resource*, con
st ResourceRequest&, const ResourceLoaderOptions&); |
| 50 virtual ~ResourceLoader(); | 50 virtual ~ResourceLoader(); |
| 51 void trace(Visitor*); | |
| 52 | 51 |
| 53 void start(); | 52 void start(); |
| 54 | 53 |
| 55 void cancel(); | 54 void cancel(); |
| 56 void cancel(const ResourceError&); | 55 void cancel(const ResourceError&); |
| 57 void cancelIfNotFinishing(); | 56 void cancelIfNotFinishing(); |
| 58 | 57 |
| 59 Resource* cachedResource() { return m_resource; } | 58 Resource* cachedResource() { return m_resource; } |
| 60 | 59 |
| 61 void releaseResources(); | 60 void releaseResources(); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Used for sanity checking to make sure we don't experience illegal state | 126 // Used for sanity checking to make sure we don't experience illegal state |
| 128 // transitions. | 127 // transitions. |
| 129 ConnectionState m_connectionState; | 128 ConnectionState m_connectionState; |
| 130 | 129 |
| 131 OwnPtr<RequestCountTracker> m_requestCountTracker; | 130 OwnPtr<RequestCountTracker> m_requestCountTracker; |
| 132 }; | 131 }; |
| 133 | 132 |
| 134 } | 133 } |
| 135 | 134 |
| 136 #endif | 135 #endif |
| OLD | NEW |