diff options
Diffstat (limited to 'Source/WebCore/platform/network/cf/ResourceError.h')
-rw-r--r-- | Source/WebCore/platform/network/cf/ResourceError.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/Source/WebCore/platform/network/cf/ResourceError.h b/Source/WebCore/platform/network/cf/ResourceError.h index aae9a4a..d36903f 100644 --- a/Source/WebCore/platform/network/cf/ResourceError.h +++ b/Source/WebCore/platform/network/cf/ResourceError.h @@ -32,6 +32,7 @@ #if USE(CFNETWORK) #include <CoreFoundation/CFStream.h> #else + #ifdef __OBJC__ @class NSError; #else @@ -54,38 +55,38 @@ public: { } -#if USE(CFNETWORK) - ResourceError(CFStreamError error); - - ResourceError(CFErrorRef error) - : m_dataIsUpToDate(false) - , m_platformError(error) - { - m_isNull = !error; - } + ResourceError(CFErrorRef error); + CFErrorRef cfError() const; operator CFErrorRef() const; + +#if USE(CFNETWORK) +#if PLATFORM(WIN) + ResourceError(const String& domain, int errorCode, const String& failingURL, const String& localizedDescription, CFDataRef certificate); + PCCERT_CONTEXT certificate() const; +#endif + ResourceError(CFStreamError error); + CFStreamError cfStreamError() const; operator CFStreamError() const; #else - ResourceError(NSError* error) - : m_dataIsUpToDate(false) - , m_platformError(error) - { - m_isNull = !error; - } - - operator NSError*() const; + ResourceError(NSError *); + NSError *nsError() const; + operator NSError *() const; #endif private: friend class ResourceErrorBase; void platformLazyInit(); + void platformCopy(ResourceError&) const; static bool platformCompare(const ResourceError& a, const ResourceError& b); bool m_dataIsUpToDate; #if USE(CFNETWORK) mutable RetainPtr<CFErrorRef> m_platformError; +#if PLATFORM(WIN) + RetainPtr<CFDataRef> m_certificate; +#endif #else mutable RetainPtr<NSError> m_platformError; #endif |