| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 static void forceContentSniffing(); | 153 static void forceContentSniffing(); |
| 154 | 154 |
| 155 #if USE(WININET) | 155 #if USE(WININET) |
| 156 void setSynchronousInternetHandle(HINTERNET); | 156 void setSynchronousInternetHandle(HINTERNET); |
| 157 void fileLoadTimer(Timer<ResourceHandle>*); | 157 void fileLoadTimer(Timer<ResourceHandle>*); |
| 158 void onRedirect(); | 158 void onRedirect(); |
| 159 bool onRequestComplete(); | 159 bool onRequestComplete(); |
| 160 static void CALLBACK internetStatusCallback(HINTERNET, DWORD_PTR, DWORD, LPV
OID, DWORD); | 160 static void CALLBACK internetStatusCallback(HINTERNET, DWORD_PTR, DWORD, LPV
OID, DWORD); |
| 161 #endif | 161 #endif |
| 162 | 162 |
| 163 #if PLATFORM(QT) || USE(CURL) || USE(SOUP) || PLATFORM(BLACKBERRY) | 163 #if PLATFORM(QT) || USE(CURL) || USE(SOUP) |
| 164 ResourceHandleInternal* getInternal() { return d.get(); } | 164 ResourceHandleInternal* getInternal() { return d.get(); } |
| 165 #endif | 165 #endif |
| 166 | 166 |
| 167 #if USE(SOUP) | 167 #if USE(SOUP) |
| 168 void continueDidReceiveAuthenticationChallenge(const Credential& credentialF
romPersistentStorage); | 168 void continueDidReceiveAuthenticationChallenge(const Credential& credentialF
romPersistentStorage); |
| 169 void sendPendingRequest(); | 169 void sendPendingRequest(); |
| 170 bool shouldUseCredentialStorage(); | 170 bool shouldUseCredentialStorage(); |
| 171 bool cancelledOrClientless(); | 171 bool cancelledOrClientless(); |
| 172 static SoupSession* defaultSession(); | 172 static SoupSession* defaultSession(); |
| 173 static uint64_t getSoupRequestInitiatingPageID(SoupRequest*); | 173 static uint64_t getSoupRequestInitiatingPageID(SoupRequest*); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 195 // Called in response to ResourceHandleClient::canAuthenticateAgainstProtect
ionSpaceAsync(). | 195 // Called in response to ResourceHandleClient::canAuthenticateAgainstProtect
ionSpaceAsync(). |
| 196 void continueCanAuthenticateAgainstProtectionSpace(bool); | 196 void continueCanAuthenticateAgainstProtectionSpace(bool); |
| 197 #endif | 197 #endif |
| 198 #if PLATFORM(MAC) | 198 #if PLATFORM(MAC) |
| 199 // Called in response to ResourceHandleClient::willCacheResponseAsync(). | 199 // Called in response to ResourceHandleClient::willCacheResponseAsync(). |
| 200 void continueWillCacheResponse(NSCachedURLResponse *); | 200 void continueWillCacheResponse(NSCachedURLResponse *); |
| 201 #endif | 201 #endif |
| 202 | 202 |
| 203 void setDefersLoading(bool); | 203 void setDefersLoading(bool); |
| 204 | 204 |
| 205 #if PLATFORM(BLACKBERRY) | |
| 206 void pauseLoad(bool); // FIXME: How is this different from setDefersLoading(
)? | |
| 207 #endif | |
| 208 | |
| 209 void didChangePriority(ResourceLoadPriority); | 205 void didChangePriority(ResourceLoadPriority); |
| 210 | 206 |
| 211 ResourceRequest& firstRequest(); | 207 ResourceRequest& firstRequest(); |
| 212 const String& lastHTTPMethod() const; | 208 const String& lastHTTPMethod() const; |
| 213 | 209 |
| 214 void fireFailure(Timer<ResourceHandle>*); | 210 void fireFailure(Timer<ResourceHandle>*); |
| 215 | 211 |
| 216 NetworkingContext* context() const; | 212 NetworkingContext* context() const; |
| 217 | 213 |
| 218 using RefCounted<ResourceHandle>::ref; | 214 using RefCounted<ResourceHandle>::ref; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 void createCFURLConnection(bool shouldUseCredentialStorage, bool shouldConte
ntSniff); | 254 void createCFURLConnection(bool shouldUseCredentialStorage, bool shouldConte
ntSniff); |
| 259 #endif | 255 #endif |
| 260 | 256 |
| 261 friend class ResourceHandleInternal; | 257 friend class ResourceHandleInternal; |
| 262 OwnPtr<ResourceHandleInternal> d; | 258 OwnPtr<ResourceHandleInternal> d; |
| 263 }; | 259 }; |
| 264 | 260 |
| 265 } | 261 } |
| 266 | 262 |
| 267 #endif // ResourceHandle_h | 263 #endif // ResourceHandle_h |
| OLD | NEW |