| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Promptly release m_loader. | 54 // Promptly release m_loader. |
| 55 EAGERLY_FINALIZE(); | 55 EAGERLY_FINALIZE(); |
| 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.get(); } |
| 65 const ResourceRequest& originalRequest() const { return m_originalRequest; } | 65 const ResourceRequest& originalRequest() const { return m_originalRequest; } |
| 66 | 66 |
| 67 void setDefersLoading(bool); | 67 void setDefersLoading(bool); |
| 68 bool defersLoading() const { return m_defersLoading; } | 68 bool defersLoading() const { return m_defersLoading; } |
| 69 | 69 |
| 70 void attachThreadedDataReceiver(PassRefPtrWillBeRawPtr<ThreadedDataReceiver>
); | 70 void attachThreadedDataReceiver(PassRefPtrWillBeRawPtr<ThreadedDataReceiver>
); |
| 71 | 71 |
| 72 void releaseResources(); | 72 void releaseResources(); |
| 73 | 73 |
| 74 void didChangePriority(ResourceLoadPriority, int intraPriorityValue); | 74 void didChangePriority(ResourceLoadPriority, int intraPriorityValue); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 enum ConnectionState { | 127 enum ConnectionState { |
| 128 ConnectionStateNew, | 128 ConnectionStateNew, |
| 129 ConnectionStateStarted, | 129 ConnectionStateStarted, |
| 130 ConnectionStateReceivedResponse, | 130 ConnectionStateReceivedResponse, |
| 131 ConnectionStateReceivingData, | 131 ConnectionStateReceivingData, |
| 132 ConnectionStateFinishedLoading, | 132 ConnectionStateFinishedLoading, |
| 133 ConnectionStateCanceled, | 133 ConnectionStateCanceled, |
| 134 ConnectionStateFailed, | 134 ConnectionStateFailed, |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 RawPtrWillBeMember<Resource> m_resource; | 137 RefPtrWillBeMember<Resource> m_resource; |
| 138 ResourceLoaderState m_state; | 138 ResourceLoaderState m_state; |
| 139 | 139 |
| 140 // 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 |
| 141 // transitions. | 141 // transitions. |
| 142 ConnectionState m_connectionState; | 142 ConnectionState m_connectionState; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } // namespace blink | 145 } // namespace blink |
| 146 | 146 |
| 147 #endif | 147 #endif |
| OLD | NEW |