1 | /* |
2 | * Copyright (C) 2011 Igalia S.L. |
3 | * Copyright (C) 2008 Luca Bruno <[email protected]> |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Library General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2 of the License, or (at your option) any later version. |
9 | * |
10 | * This library is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * Library General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Library General Public License |
16 | * along with this library; see the file COPYING.LIB. If not, write to |
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 | * Boston, MA 02110-1301, USA. |
19 | */ |
20 | |
21 | #include "config.h" |
22 | #include "WebKitError.h" |
23 | |
24 | #include "APIError.h" |
25 | #include "WebKitPrivate.h" |
26 | |
27 | using namespace WebCore; |
28 | |
29 | /** |
30 | * SECTION: WebKitError |
31 | * @Short_description: Categorized WebKit errors |
32 | * @Title: WebKitError |
33 | * |
34 | * Categorized WebKit errors. |
35 | * |
36 | */ |
37 | |
38 | GQuark webkit_network_error_quark() |
39 | { |
40 | return g_quark_from_static_string(reinterpret_cast<const char*>(API::Error::webKitNetworkErrorDomain().characters8())); |
41 | } |
42 | |
43 | GQuark webkit_policy_error_quark() |
44 | { |
45 | return g_quark_from_static_string(reinterpret_cast<const char*>(API::Error::webKitPolicyErrorDomain().characters8())); |
46 | } |
47 | |
48 | GQuark webkit_plugin_error_quark() |
49 | { |
50 | return g_quark_from_static_string(reinterpret_cast<const char*>(API::Error::webKitPluginErrorDomain().characters8())); |
51 | } |
52 | |
53 | GQuark webkit_download_error_quark() |
54 | { |
55 | return g_quark_from_static_string(reinterpret_cast<const char*>(API::Error::webKitDownloadErrorDomain().characters8())); |
56 | } |
57 | |
58 | #if PLATFORM(GTK) |
59 | GQuark webkit_print_error_quark() |
60 | { |
61 | return g_quark_from_static_string(reinterpret_cast<const char*>(API::Error::webKitPrintErrorDomain().characters8())); |
62 | } |
63 | #endif |
64 | |
65 | GQuark webkit_javascript_error_quark() |
66 | { |
67 | return g_quark_from_static_string("WebKitJavascriptError" ); |
68 | } |
69 | |
70 | GQuark webkit_snapshot_error_quark() |
71 | { |
72 | return g_quark_from_static_string("WebKitSnapshotError" ); |
73 | } |
74 | |
75 | G_DEFINE_QUARK(WebKitUserContentFilterError, webkit_user_content_filter_error) |
76 | |