| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_WEB_PUBLIC_WEB_KIT_CONSTANTS_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_KIT_CONSTANTS_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_KIT_CONSTANTS_H_ | 6 #define IOS_WEB_PUBLIC_WEB_KIT_CONSTANTS_H_ |
| 7 | 7 |
| 8 // This header defines missing symbols from WebKit. | 8 // This header defines missing symbols from WebKit. |
| 9 // See WebKitErrors.h on Mac SDK. | 9 // See WebKitErrors.h on Mac SDK. |
| 10 | 10 |
| 11 namespace web { | 11 namespace web { |
| 12 | 12 |
| 13 // Indicates WebKit errors. | 13 // Indicates WebKit errors. |
| 14 extern const char kWebKitErrorDomain[]; | 14 extern const char kWebKitErrorDomain[]; |
| 15 | 15 |
| 16 // MIME type is not supported. | 16 // MIME type is not supported. |
| 17 const long kWebKitErrorCannotShowMimeType = 100; | 17 const long kWebKitErrorCannotShowMimeType = 100; |
| 18 | 18 |
| 19 // Can not change location URL. | 19 // Can not change location URL. |
| 20 const long kWebKitErrorCannotShowUrl = 101; | 20 const long kWebKitErrorCannotShowUrl = 101; |
| 21 | 21 |
| 22 // Frame load was interrupted by a policy change. | 22 // Frame load was interrupted by a policy change. |
| 23 const long kWebKitErrorFrameLoadInterruptedByPolicyChange = 102; | 23 const long kWebKitErrorFrameLoadInterruptedByPolicyChange = 102; |
| 24 | 24 |
| 25 // Undocumented iOS-specific WebKit error. | 25 // Undocumented iOS-specific WebKit error. |
| 26 const long kWebKitErrorUnsafePort = 103; |
| 26 const long kWebKitErrorPlugInLoadFailed = 204; | 27 const long kWebKitErrorPlugInLoadFailed = 204; |
| 27 | 28 |
| 28 } // namespace web | 29 } // namespace web |
| 29 | 30 |
| 30 #endif // IOS_WEB_PUBLIC_WEB_KIT_CONSTANTS_H_ | 31 #endif // IOS_WEB_PUBLIC_WEB_KIT_CONSTANTS_H_ |
| OLD | NEW |