| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 class ResourceHandle : public RefCounted<ResourceHandle> | 94 class ResourceHandle : public RefCounted<ResourceHandle> |
| 95 #if PLATFORM(MAC) || USE(CFNETWORK) || USE(CURL) || USE(SOUP) | 95 #if PLATFORM(MAC) || USE(CFNETWORK) || USE(CURL) || USE(SOUP) |
| 96 , public AuthenticationClient | 96 , public AuthenticationClient |
| 97 #endif | 97 #endif |
| 98 { | 98 { |
| 99 public: | 99 public: |
| 100 static PassRefPtr<ResourceHandle> create(NetworkingContext*, const ResourceR
equest&, ResourceHandleClient*, bool defersLoading, bool shouldContentSniff); | 100 static PassRefPtr<ResourceHandle> create(NetworkingContext*, const ResourceR
equest&, ResourceHandleClient*, bool defersLoading, bool shouldContentSniff); |
| 101 static void loadResourceSynchronously(NetworkingContext*, const ResourceRequ
est&, StoredCredentials, ResourceError&, ResourceResponse&, Vector<char>& data); | 101 static void loadResourceSynchronously(NetworkingContext*, const ResourceRequ
est&, StoredCredentials, ResourceError&, ResourceResponse&, Vector<char>& data); |
| 102 | 102 |
| 103 static bool willLoadFromCache(ResourceRequest&, Frame*); |
| 103 static void cacheMetadata(const ResourceResponse&, const Vector<char>&); | 104 static void cacheMetadata(const ResourceResponse&, const Vector<char>&); |
| 104 | 105 |
| 105 virtual ~ResourceHandle(); | 106 virtual ~ResourceHandle(); |
| 106 | 107 |
| 107 #if PLATFORM(MAC) || USE(CFNETWORK) | 108 #if PLATFORM(MAC) || USE(CFNETWORK) |
| 108 void willSendRequest(ResourceRequest&, const ResourceResponse& redirectRespo
nse); | 109 void willSendRequest(ResourceRequest&, const ResourceResponse& redirectRespo
nse); |
| 109 bool shouldUseCredentialStorage(); | 110 bool shouldUseCredentialStorage(); |
| 110 #endif | 111 #endif |
| 111 #if PLATFORM(MAC) || USE(CFNETWORK) || USE(CURL) || USE(SOUP) | 112 #if PLATFORM(MAC) || USE(CFNETWORK) || USE(CURL) || USE(SOUP) |
| 112 void didReceiveAuthenticationChallenge(const AuthenticationChallenge&); | 113 void didReceiveAuthenticationChallenge(const AuthenticationChallenge&); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 void createCFURLConnection(bool shouldUseCredentialStorage, bool shouldRelax
ThirdPartyCookiePolicy, bool shouldContentSniff); | 236 void createCFURLConnection(bool shouldUseCredentialStorage, bool shouldRelax
ThirdPartyCookiePolicy, bool shouldContentSniff); |
| 236 #endif | 237 #endif |
| 237 | 238 |
| 238 friend class ResourceHandleInternal; | 239 friend class ResourceHandleInternal; |
| 239 OwnPtr<ResourceHandleInternal> d; | 240 OwnPtr<ResourceHandleInternal> d; |
| 240 }; | 241 }; |
| 241 | 242 |
| 242 } | 243 } |
| 243 | 244 |
| 244 #endif // ResourceHandle_h | 245 #endif // ResourceHandle_h |
| OLD | NEW |