| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 61 // A flag showing whether this error is the result of a request being |
| 62 // ignored (e.g. through shouldOverrideUrlLoading). | 62 // ignored (e.g. through shouldOverrideUrlLoading). |
| 63 bool wasIgnoredByHandler; | 63 bool wasIgnoredByHandler; |
| 64 | 64 |
| 65 // A flag showing whether this error is a disk cache miss by requesting to |
| 66 // load only from cache (net::ERR_CACHE_MISS). |
| 67 bool isCacheMiss; |
| 68 |
| 65 // The url that failed to load. | 69 // The url that failed to load. |
| 66 WebURL unreachableURL; | 70 WebURL unreachableURL; |
| 67 | 71 |
| 68 // A description for the error. | 72 // A description for the error. |
| 69 WebString localizedDescription; | 73 WebString localizedDescription; |
| 70 | 74 |
| 71 WebURLError() | 75 WebURLError() |
| 72 : reason(0), | 76 : reason(0), |
| 73 staleCopyInCache(false), | 77 staleCopyInCache(false), |
| 74 isCancellation(false), | 78 isCancellation(false), |
| 75 wasIgnoredByHandler(false) {} | 79 wasIgnoredByHandler(false), |
| 80 isCacheMiss(false) {} |
| 76 | 81 |
| 77 #if INSIDE_BLINK | 82 #if INSIDE_BLINK |
| 78 BLINK_PLATFORM_EXPORT WebURLError(const ResourceError&); | 83 BLINK_PLATFORM_EXPORT WebURLError(const ResourceError&); |
| 79 BLINK_PLATFORM_EXPORT WebURLError& operator=(const ResourceError&); | 84 BLINK_PLATFORM_EXPORT WebURLError& operator=(const ResourceError&); |
| 80 BLINK_PLATFORM_EXPORT operator ResourceError() const; | 85 BLINK_PLATFORM_EXPORT operator ResourceError() const; |
| 81 #endif | 86 #endif |
| 82 }; | 87 }; |
| 83 | 88 |
| 84 } // namespace blink | 89 } // namespace blink |
| 85 | 90 |
| 86 #endif | 91 #endif |
| OLD | NEW |