| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 int reason; | 51 int reason; |
| 52 | 52 |
| 53 // A flag showing whether or not "unreachableURL" has a copy in the | 53 // A flag showing whether or not "unreachableURL" has a copy in the |
| 54 // cache that was too stale to return for this request. | 54 // cache that was too stale to return for this request. |
| 55 bool staleCopyInCache; | 55 bool staleCopyInCache; |
| 56 | 56 |
| 57 // A flag showing whether this error should be treated as a cancellation, | 57 // A flag showing whether this error should be treated as a cancellation, |
| 58 // e.g. we do not show console errors for cancellations. | 58 // e.g. we do not show console errors for cancellations. |
| 59 bool isCancellation; | 59 bool isCancellation; |
| 60 | 60 |
| 61 // A flag showing whether this error is the result of a request being |
| 62 // ignored (e.g. through shouldOverrideUrlLoading). |
| 63 bool wasIgnoredByHandler; |
| 64 |
| 61 // The url that failed to load. | 65 // The url that failed to load. |
| 62 WebURL unreachableURL; | 66 WebURL unreachableURL; |
| 63 | 67 |
| 64 // A description for the error. | 68 // A description for the error. |
| 65 WebString localizedDescription; | 69 WebString localizedDescription; |
| 66 | 70 |
| 67 WebURLError() : reason(0), staleCopyInCache(false), isCancellation(false) {
} | 71 WebURLError() : reason(0), staleCopyInCache(false), isCancellation(false), |
| 72 wasIgnoredByHandler(false) { } |
| 68 | 73 |
| 69 #if INSIDE_BLINK | 74 #if INSIDE_BLINK |
| 70 BLINK_PLATFORM_EXPORT WebURLError(const ResourceError&); | 75 BLINK_PLATFORM_EXPORT WebURLError(const ResourceError&); |
| 71 BLINK_PLATFORM_EXPORT WebURLError& operator=(const ResourceError&); | 76 BLINK_PLATFORM_EXPORT WebURLError& operator=(const ResourceError&); |
| 72 BLINK_PLATFORM_EXPORT operator ResourceError() const; | 77 BLINK_PLATFORM_EXPORT operator ResourceError() const; |
| 73 #endif | 78 #endif |
| 74 }; | 79 }; |
| 75 | 80 |
| 76 } // namespace blink | 81 } // namespace blink |
| 77 | 82 |
| 78 #endif | 83 #endif |
| OLD | NEW |