Changeset 127495 in webkit
- Timestamp:
- Sep 4, 2012 1:30:09 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r127485 r127495 1 2012-09-04 Dominik Röttsches <dominik.rottsches@intel.com> 2 3 ResourceErrorBase needs to identify timeouts 4 https://bugs.webkit.org/show_bug.cgi?id=95755 5 6 Reviewed by Alexey Proskuryakov. 7 8 Adding a property to check whether this ResourceError was raised due to a timeout. 9 This is preparatory work for bug 74802. In order to implement XHR2 timeout functionality, 10 I need to identify some layers up whether the original network problem has been a timeout. 11 12 No new tests, no change in behavior yet. 13 14 * platform/network/ResourceErrorBase.cpp: 15 (WebCore::ResourceErrorBase::copy): Copying new member. 16 (WebCore::ResourceErrorBase::compare): Comparing new member. 17 * platform/network/ResourceErrorBase.h: 18 (WebCore::ResourceErrorBase::setIsTimeout): New setter. 19 (WebCore::ResourceErrorBase::isTimeout): New getter. 20 (ResourceErrorBase), 21 (WebCore::ResourceErrorBase::ResourceErrorBase): Adding m_isTimeout member. 22 1 23 2012-09-04 Tommy Widenflycht <tommyw@google.com> 2 24 -
trunk/Source/WebCore/platform/network/ResourceErrorBase.cpp
r98316 r127495 43 43 errorCopy.m_isNull = m_isNull; 44 44 errorCopy.m_isCancellation = m_isCancellation; 45 errorCopy.m_isTimeout = m_isTimeout; 45 46 platformCopy(errorCopy); 46 47 return errorCopy; … … 75 76 return false; 76 77 78 if (a.isTimeout() != b.isTimeout()) 79 return false; 80 77 81 return platformCompare(a, b); 78 82 } -
trunk/Source/WebCore/platform/network/ResourceErrorBase.h
r82137 r127495 50 50 bool isCancellation() const { return m_isCancellation; } 51 51 52 void setIsTimeout(bool isTimeout) { m_isTimeout = isTimeout; } 53 bool isTimeout() const { return m_isTimeout; } 54 52 55 static bool compare(const ResourceError&, const ResourceError&); 53 56 … … 57 60 , m_isNull(true) 58 61 , m_isCancellation(false) 62 , m_isTimeout(false) 59 63 { 60 64 } … … 67 71 , m_isNull(false) 68 72 , m_isCancellation(false) 73 , m_isTimeout(false) 69 74 { 70 75 } … … 87 92 bool m_isNull; 88 93 bool m_isCancellation; 94 bool m_isTimeout; 89 95 }; 90 96
Note: See TracChangeset
for help on using the changeset viewer.