| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 if (error.isNull()) { | 43 if (error.isNull()) { |
| 44 *this = WebURLError(); | 44 *this = WebURLError(); |
| 45 } else { | 45 } else { |
| 46 domain = error.domain(); | 46 domain = error.domain(); |
| 47 reason = error.errorCode(); | 47 reason = error.errorCode(); |
| 48 unreachableURL = KURL(ParsedURLString, error.failingURL()); | 48 unreachableURL = KURL(ParsedURLString, error.failingURL()); |
| 49 isCancellation = error.isCancellation(); | 49 isCancellation = error.isCancellation(); |
| 50 staleCopyInCache = error.staleCopyInCache(); | 50 staleCopyInCache = error.staleCopyInCache(); |
| 51 localizedDescription = error.localizedDescription(); | 51 localizedDescription = error.localizedDescription(); |
| 52 wasIgnoredByHandler = error.wasIgnoredByHandler(); | 52 wasIgnoredByHandler = error.wasIgnoredByHandler(); |
| 53 isCacheMiss = error.isCacheMiss(); |
| 53 } | 54 } |
| 54 return *this; | 55 return *this; |
| 55 } | 56 } |
| 56 | 57 |
| 57 WebURLError::operator ResourceError() const { | 58 WebURLError::operator ResourceError() const { |
| 58 if (!reason) | 59 if (!reason) |
| 59 return ResourceError(); | 60 return ResourceError(); |
| 60 ResourceError resourceError = ResourceError( | 61 ResourceError resourceError = ResourceError( |
| 61 domain, reason, unreachableURL.string(), localizedDescription); | 62 domain, reason, unreachableURL.string(), localizedDescription); |
| 62 resourceError.setIsCancellation(isCancellation); | 63 resourceError.setIsCancellation(isCancellation); |
| 63 resourceError.setStaleCopyInCache(staleCopyInCache); | 64 resourceError.setStaleCopyInCache(staleCopyInCache); |
| 64 resourceError.setWasIgnoredByHandler(wasIgnoredByHandler); | 65 resourceError.setWasIgnoredByHandler(wasIgnoredByHandler); |
| 66 resourceError.setIsCacheMiss(isCacheMiss); |
| 65 return resourceError; | 67 return resourceError; |
| 66 } | 68 } |
| 67 | 69 |
| 68 } // namespace blink | 70 } // namespace blink |
| OLD | NEW |