| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef ResourceError_h | 27 #ifndef ResourceError_h |
| 28 #define ResourceError_h | 28 #define ResourceError_h |
| 29 | 29 |
| 30 // TODO(toyoshim): Move net/base inclusion from header file. | 30 // TODO(toyoshim): Move net/base inclusion from header file. |
| 31 #include <iosfwd> | 31 #include <iosfwd> |
| 32 #include "net/base/net_errors.h" | 32 #include "net/base/net_errors.h" |
| 33 #include "platform/PlatformExport.h" | 33 #include "platform/PlatformExport.h" |
| 34 #include "wtf/Allocator.h" | 34 #include "platform/wtf/Allocator.h" |
| 35 #include "wtf/text/WTFString.h" | 35 #include "platform/wtf/text/WTFString.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 enum class ResourceRequestBlockedReason; | 39 enum class ResourceRequestBlockedReason; |
| 40 | 40 |
| 41 // Used for errors that won't be exposed to clients. | 41 // Used for errors that won't be exposed to clients. |
| 42 PLATFORM_EXPORT extern const char errorDomainBlinkInternal[]; | 42 PLATFORM_EXPORT extern const char errorDomainBlinkInternal[]; |
| 43 | 43 |
| 44 class PLATFORM_EXPORT ResourceError final { | 44 class PLATFORM_EXPORT ResourceError final { |
| 45 DISALLOW_NEW(); | 45 DISALLOW_NEW(); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 inline bool operator!=(const ResourceError& a, const ResourceError& b) { | 151 inline bool operator!=(const ResourceError& a, const ResourceError& b) { |
| 152 return !(a == b); | 152 return !(a == b); |
| 153 } | 153 } |
| 154 | 154 |
| 155 // Pretty printer for gtest. Declared here to avoid ODR violations. | 155 // Pretty printer for gtest. Declared here to avoid ODR violations. |
| 156 std::ostream& operator<<(std::ostream&, const ResourceError&); | 156 std::ostream& operator<<(std::ostream&, const ResourceError&); |
| 157 | 157 |
| 158 } // namespace blink | 158 } // namespace blink |
| 159 | 159 |
| 160 #endif // ResourceError_h | 160 #endif // ResourceError_h |
| OLD | NEW |