1 /* 2 * Copyright (C) 2008 Luca Bruno <lethalman88 (at) gmail.com> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Library General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Library General Public License for more details. 13 * 14 * You should have received a copy of the GNU Library General Public License 15 * along with this library; see the file COPYING.LIB. If not, write to 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef webkiterror_h 21 #define webkiterror_h 22 23 #include <glib.h> 24 25 #include <webkit/webkitdefines.h> 26 27 G_BEGIN_DECLS 28 29 #define WEBKIT_NETWORK_ERROR webkit_network_error_quark () 30 #define WEBKIT_POLICY_ERROR webkit_policy_error_quark () 31 #define WEBKIT_PLUGIN_ERROR webkit_plugin_error_quark () 32 33 typedef enum { 34 WEBKIT_NETWORK_ERROR_FAILED = 399, 35 WEBKIT_NETWORK_ERROR_TRANSPORT = 300, 36 WEBKIT_NETWORK_ERROR_UNKNOWN_PROTOCOL = 301, 37 WEBKIT_NETWORK_ERROR_CANCELLED = 302, 38 WEBKIT_NETWORK_ERROR_FILE_DOES_NOT_EXIST = 303, 39 } WebKitNetworkError; 40 41 /* Sync'd with Mac's WebKit Errors */ 42 typedef enum { 43 WEBKIT_POLICY_ERROR_FAILED = 199, 44 WEBKIT_POLICY_ERROR_CANNOT_SHOW_MIME_TYPE = 100, 45 WEBKIT_POLICY_ERROR_CANNOT_SHOW_URL = 101, 46 WEBKIT_POLICY_ERROR_FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE = 102, 47 WEBKIT_POLICY_ERROR_CANNOT_USE_RESTRICTED_PORT = 103, 48 } WebKitPolicyError; 49 50 typedef enum { 51 WEBKIT_PLUGIN_ERROR_FAILED = 299, 52 WEBKIT_PLUGIN_ERROR_CANNOT_FIND_PLUGIN = 200, 53 WEBKIT_PLUGIN_ERROR_CANNOT_LOAD_PLUGIN = 201, 54 WEBKIT_PLUGIN_ERROR_JAVA_UNAVAILABLE = 202, 55 WEBKIT_PLUGIN_ERROR_CONNECTION_CANCELLED = 203, 56 WEBKIT_PLUGIN_ERROR_WILL_HANDLE_LOAD = 204, 57 } WebKitPluginError; 58 59 60 WEBKIT_API GQuark 61 webkit_network_error_quark (void); 62 63 WEBKIT_API GQuark 64 webkit_policy_error_quark (void); 65 66 WEBKIT_API GQuark 67 webkit_plugin_error_quark (void); 68 69 G_END_DECLS 70 71 #endif 72