| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 class Resource; | 45 class Resource; |
| 46 class KURL; | 46 class KURL; |
| 47 class ResourceError; | 47 class ResourceError; |
| 48 class ResourceResponse; | 48 class ResourceResponse; |
| 49 class ResourceLoaderHost; | 49 class ResourceLoaderHost; |
| 50 | 50 |
| 51 class ResourceLoader FINAL : public RefCountedWillBeGarbageCollectedFinalized<Re
sourceLoader>, protected WebURLLoaderClient { | 51 class ResourceLoader FINAL : public RefCountedWillBeGarbageCollectedFinalized<Re
sourceLoader>, protected WebURLLoaderClient { |
| 52 public: | 52 public: |
| 53 static PassRefPtrWillBeRawPtr<ResourceLoader> create(ResourceLoaderHost*, Re
source*, const ResourceRequest&, const ResourceLoaderOptions&); | 53 static PassRefPtrWillBeRawPtr<ResourceLoader> create(ResourceLoaderHost*, Re
source*, const ResourceRequest&, const ResourceLoaderOptions&); |
| 54 virtual ~ResourceLoader(); | 54 virtual ~ResourceLoader(); |
| 55 void trace(Visitor*); | 55 virtual void trace(Visitor*); |
| 56 | 56 |
| 57 void start(); | 57 void start(); |
| 58 void changeToSynchronous(); | 58 void changeToSynchronous(); |
| 59 | 59 |
| 60 void cancel(); | 60 void cancel(); |
| 61 void cancel(const ResourceError&); | 61 void cancel(const ResourceError&); |
| 62 void cancelIfNotFinishing(); | 62 void cancelIfNotFinishing(); |
| 63 | 63 |
| 64 Resource* cachedResource() { return m_resource; } | 64 Resource* cachedResource() { return m_resource; } |
| 65 const ResourceRequest& originalRequest() const { return m_originalRequest; } | 65 const ResourceRequest& originalRequest() const { return m_originalRequest; } |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // Used for sanity checking to make sure we don't experience illegal state | 146 // Used for sanity checking to make sure we don't experience illegal state |
| 147 // transitions. | 147 // transitions. |
| 148 ConnectionState m_connectionState; | 148 ConnectionState m_connectionState; |
| 149 | 149 |
| 150 OwnPtr<RequestCountTracker> m_requestCountTracker; | 150 OwnPtr<RequestCountTracker> m_requestCountTracker; |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } | 153 } |
| 154 | 154 |
| 155 #endif | 155 #endif |
| OLD | NEW |