Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: src/plugin/PluginErrorCodes.h

Issue 5137721374801920: Issue #1173 - Default behavior for catch-all blocks
Left Patch Set: add arguments for templates, add logging default function Created March 2, 2015, 5:02 p.m.
Right Patch Set: Changed entry point defaults in CPluginClass to match rebase Created March 20, 2015, 9:50 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH
4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation.
8 *
9 * Adblock Plus 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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef _PLUGIN_ERROR_CODES_H_
19 #define _PLUGIN_ERROR_CODES_H_
20
21
22 // Plugin errors
23 #define PLUGIN_ERROR_OS_VERSION 1
24 #define PLUGIN_ERROR_OS_VERSION_REG_OPEN_KEY 1
25 #define PLUGIN_ERROR_OS_VERSION_REG_QUERY_VALUE 2
26
27 #define PLUGIN_ERROR_MAC_ID 2
28 #define PLUGIN_ERROR_MAC_ID_RETRIEVAL 1
29 #define PLUGIN_ERROR_MAC_ID_RETRIEVAL_EX 2
30
31 #define PLUGIN_ERROR_SESSION 3
32 #define PLUGIN_ERROR_SESSION_GET_INTERNET_SESSION 1
33 #define PLUGIN_ERROR_SESSION_CREATE_HTTP_INSTANCE 2
34 #define PLUGIN_ERROR_SESSION_REGISTER_HTTP_NAMESPACE 3
35 #define PLUGIN_ERROR_SESSION_CREATE_HTTPS_INSTANCE 4
36 #define PLUGIN_ERROR_SESSION_REGISTER_HTTPS_NAMESPACE 5
37
38 #define PLUGIN_ERROR_UPDATER 4
39 #define PLUGIN_ERROR_UPDATER_CREATE_PROCESS 1
40 #define PLUGIN_ERROR_UPDATER_DOWNLOAD_FILE 2
41
42 #define PLUGIN_ERROR_THREAD 5
43 #define PLUGIN_ERROR_MAIN_THREAD_CREATE_PROCESS 1
44 #define PLUGIN_ERROR_TAB_THREAD_CREATE_PROCESS 2
45
46 #define PLUGIN_ERROR_GUID 6
47 #define PLUGIN_ERROR_GUID_REG_OPEN_KEY 1
48 #define PLUGIN_ERROR_GUID_REG_GET_SET 2
49
50 #define PLUGIN_ERROR_SYSINFO 7
51 #define PLUGIN_ERROR_SYSINFO_USER_NAME 1
52 #define PLUGIN_ERROR_SYSINFO_COMPUTER_NAME 2
53 #define PLUGIN_ERROR_SYSINFO_BROWSER_LANGUAGE 3
54 #define PLUGIN_ERROR_SYSINFO_TEMP_PATH 4
55 #define PLUGIN_ERROR_SYSINFO_TEMP_FILE 5
56 #define PLUGIN_ERROR_SYSINFO_GET_SPECIAL_FOLDER_LOCAL 6
57 #define PLUGIN_ERROR_SYSINFO_GET_SPECIAL_FOLDER 7
58 #define PLUGIN_ERROR_SYSINFO_GET_SPECIAL_FOLDER_PROGRAM_FILES 8
59 #define PLUGIN_ERROR_SYSINFO_GET_SPECIAL_FOLDER_COMMON_FILES 9
60 #define PLUGIN_ERROR_SYSINFO_GET_SPECIAL_FOLDER_TEMP 10
61
62 #define PLUGIN_ERROR_SETTINGS 8
63 // 1 + 2 reserved
64 #define PLUGIN_ERROR_SETTINGS_CREATE_FOLDER 3
65 #define PLUGIN_ERROR_SETTINGS_FILE_READ 4
66 #define PLUGIN_ERROR_SETTINGS_FILE_WRITE 5
67 #define PLUGIN_ERROR_SETTINGS_FILE_READ_CHECKSUM 6
68 #define PLUGIN_ERROR_SETTINGS_CREATE_MUTEX 7
69 #define PLUGIN_ERROR_SETTINGS_RELEASE_MUTEX 8
70 #define PLUGIN_ERROR_SETTINGS_CREATE_MAPFILE 9
71 #define PLUGIN_ERROR_SETTINGS_RELEASE_MAPFILE 10
72 #define PLUGIN_ERROR_SETTINGS_CREATE_MAPFILE_VIEW 11
73 #define PLUGIN_ERROR_SETTINGS_RELEASE_MAPFILE_VIEW 12
74
75 #define PLUGIN_ERROR_FILTER 9
76 #define PLUGIN_ERROR_FILTER_CREATE_FILE_OPEN 1
77 #define PLUGIN_ERROR_FILTER_DOWNLOAD_FILE 2
78 #define PLUGIN_ERROR_FILTER_READ_FILE 3
79 #define PLUGIN_ERROR_FILTER_MOVE_FILE 4
80 #define PLUGIN_ERROR_FILTER_CREATE_FILE_WRITE 5
81 #define PLUGIN_ERROR_FILTER_CREATE_FILE_CLOSE 6
82 #define PLUGIN_ERROR_FILTER_COPY_FILE 7
83
84 #define PLUGIN_ERROR_NAVIGATION 10
85 #define PLUGIN_ERROR_NAVIGATION_WELCOME 1
86 #define PLUGIN_ERROR_NAVIGATION_INFO 2
87 #define PLUGIN_ERROR_NAVIGATION_ACTIVATE 3
88 #define PLUGIN_ERROR_NAVIGATION_FAQ 4
89 #define PLUGIN_ERROR_NAVIGATION_ABOUT 5
90 #define PLUGIN_ERROR_NAVIGATION_FEEDBACK 6
91 #define PLUGIN_ERROR_NAVIGATION_SETTINGS 7
92 #define PLUGIN_ERROR_NAVIGATION_INVITATION 8
93 #define PLUGIN_ERROR_NAVIGATION_ENTERLICENSE 9
94 #define PLUGIN_ERROR_NAVIGATION_UPGRADE 10
95 #define PLUGIN_ERROR_NAVIGATION_ENABLE_CONVERSSION 801
96
97
98 #define PLUGIN_ERROR_DICTIONARY 11
99 #define PLUGIN_ERROR_DICTIONARY_DOWNLOAD_FILE 1
100 #define PLUGIN_ERROR_DICTIONARY_MOVE_FILE 2
101 #define PLUGIN_ERROR_DICTIONARY_CREATE_FILE 3
102 #define PLUGIN_ERROR_DICTIONARY_READ_FILE 4
103 #define PLUGIN_ERROR_DICTIONARY_LOOKUP 5
104 #define PLUGIN_ERROR_DICTIONARY_COPY_FILE 6
105
106 #define PLUGIN_ERROR_FTP_SEND 12
107 #define PLUGIN_ERROR_FTP_SEND_GET_PROXY 1
108 #define PLUGIN_ERROR_FTP_SEND_OPEN 2
109 #define PLUGIN_ERROR_FTP_SEND_CONNECT 3
110 #define PLUGIN_ERROR_FTP_SEND_PUT 4
111 #define PLUGIN_ERROR_FTP_SEND_CLOSE 5
112
113 #define PLUGIN_ERROR_MUTEX 13
114 #define PLUGIN_ERROR_MUTEX_CREATE 1
115 #define PLUGIN_ERROR_MUTEX_RELEASE 2
116 #define PLUGIN_ERROR_MUTEX_WAIT 3
117 #define PLUGIN_ERROR_MUTEX_WAIT_TIMEOUT 4
118
119 #define PLUGIN_ERROR_MUTEX_SELFTEST_FILE 10
120
121 #define PLUGIN_ERROR_MUTEX_DICTIONARY_FILE 20
122
123 #define PLUGIN_ERROR_MUTEX_FILTER_FILE 30
124
125 #define PLUGIN_ERROR_MUTEX_SETTINGS_FILE 40
126
127 #define PLUGIN_ERROR_MUTEX_DEBUG_FILE 50
128
129 #define PLUGIN_ERROR_MUTEX_SETTINGS 60
130
131 #define PLUGIN_ERROR_MUTEX_MAIN_TAB 70
132
133 #define PLUGIN_ERROR_MUTEX_SETTINGS_FILE_TAB 80
134
135 #define PLUGIN_ERROR_MUTEX_SETTINGS_FILE_WHITELIST 90
136
137 #define PLUGIN_ERROR_MUTEX_CONFIG_FILE 95
138
139 #define PLUGIN_ERROR_HTTP_REQUEST 14
140 #define PLUGIN_ERROR_HTTP_REQUEST_SEND 1
141 #define PLUGIN_ERROR_HTTP_REQUEST_OPEN 2
142 #define PLUGIN_ERROR_HTTP_REQUEST_CONNECT 3
143 #define PLUGIN_ERROR_HTTP_REQUEST_OPEN_REQUEST 4
144 #define PLUGIN_ERROR_HTTP_REQUEST_SEND_REQUEST 5
145 #define PLUGIN_ERROR_HTTP_REQUEST_RECEIVE_RESPONSE 6
146 #define PLUGIN_ERROR_HTTP_REQUEST_QUERY_HEADERS 7
147 #define PLUGIN_ERROR_HTTP_REQUEST_INVALID_RESPONSE_SERVER 8
148 #define PLUGIN_ERROR_HTTP_REQUEST_QUERY_DATA_AVAILABLE 9
149 #define PLUGIN_ERROR_HTTP_REQUEST_READ_DATA 10
150 #define PLUGIN_ERROR_HTTP_REQUEST_URL_ESCAPE 11
151 #define PLUGIN_ERROR_HTTP_REQUEST_SET_OPTION 12
152 #define PLUGIN_ERROR_HTTP_REQUEST_GET_URL_PROXY 13
153
154 #define PLUGIN_ERROR_HTTP 15
155 #define PLUGIN_ERROR_HTTP_PROXY_SETTINGS 1
156 #define PLUGIN_ERROR_HTTP_CLOSE_HANDLE 2
157
158 #define PLUGIN_ERROR_SET_SITE 16
159 #define PLUGIN_ERROR_SET_SITE_ADVICE 1
160 #define PLUGIN_ERROR_SET_SITE_UNADVISE 2
161 #define PLUGIN_ERROR_SET_SITE_QUERY_BROWSER 3
162 #define PLUGIN_ERROR_SET_SITE_QUERY_SERVICE_PROVIDER 4
163 #define PLUGIN_ERROR_SET_SITE_COINIT 5
164 #define PLUGIN_ERROR_SET_SITE_FIND_CONNECTION_POINT 6
165
166 #define PLUGIN_ERROR_UI 17
167 #define PLUGIN_ERROR_UI_GET_UXTHEME 1
168 #define PLUGIN_ERROR_UI_GET_UXTHEME_OPEN 2
169 #define PLUGIN_ERROR_UI_GET_UXTHEME_DRAW_BACKGROUND 3
170 #define PLUGIN_ERROR_UI_GET_UXTHEME_CLOSE 4
171 #define PLUGIN_ERROR_UI_GET_BROWSER_WINDOW 5
172 #define PLUGIN_ERROR_UI_CREATE_STATUSBAR_PANE 6
173 #define PLUGIN_ERROR_UI_REGISTER_PANE_CLASS 7
174 #define PLUGIN_ERROR_UI_NO_STATUSBAR_BROWSER 8
175 #define PLUGIN_ERROR_UI_LOAD_ICON 9
176 #define PLUGIN_ERROR_UI_NO_STATUSBAR_WIN 10
177 #define PLUGIN_ERROR_UI_INVALIDATE_STATUSBAR 11
178 #define PLUGIN_ERROR_UI_GET_STATUSBAR 12
179 #define PLUGIN_ERROR_UI_PUT_STATUSBAR 13
180
181 #define PLUGIN_ERROR_SELFTEST 18
182 #define PLUGIN_ERROR_SELFTEST_MOVE_FILE 1
183 #define PLUGIN_ERROR_SELFTEST_COPY_FILE 2
184
185 #define PLUGIN_ERROR_SETTINGS_TAB 19
186 // Same error codes as PLUGIN_ERROR_SETTINGS
187
188 #define PLUGIN_ERROR_SETTINGS_WHITELIST 20
189 // Same error codes as PLUGIN_ERROR_SETTINGS
190
191 #define PLUGIN_ERROR_INSTALL 21
192 #define PLUGIN_ERROR_INSTALL_GET_WINDOWS_PATH 1
193 #define PLUGIN_ERROR_INSTALL_APPEND_PATH 2
194 #define PLUGIN_ERROR_INSTALL_CREATE_INI_FILE 3
195
196 #define PLUGIN_ERROR_CONFIG 22
197 #define PLUGIN_ERROR_CONFIG_DOWNLOAD_FILE 1
198 #define PLUGIN_ERROR_CONFIG_MOVE_FILE 2
199 #define PLUGIN_ERROR_CONFIG_CREATE_FILE 3
200 #define PLUGIN_ERROR_CONFIG_READ_FILE 4
201 #define PLUGIN_ERROR_CONFIG_COPY_FILE 6
202
203 #define PLUGIN_ERROR_DOWNLOAD 23
204 #define PLUGIN_ERROR_DOWNLOAD_OPEN_SAVE_DIALOG 1
205 #define PLUGIN_ERROR_DOWNLOAD_CREATE_PROCESS 2
206 #define PLUGIN_ERROR_DOWNLOAD_FILE_DOWNLOAD 3
207 #define PLUGIN_ERROR_DOWNLOAD_CREATE_CONVERSION_PROCESS 4
208
209 #define PLUGIN_ERROR_USER_SETTINGS 24
210 #define PLUGIN_ERROR_USER_SETTINGS_PARSE_KEY_VALUE 1
211
212 #define PLUGIN_ERROR_CREATE_SETTINGS_JAVASCRIPT 25
213 #define PLUGIN_ERROR_CREATE_SETTINGS_JAVASCRIPT_INVOKE 1
214
215 #endif // _PLUGIN_ERROR_CODES_H_
LEFTRIGHT

Powered by Google App Engine
This is Rietveld