LEFT | RIGHT |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 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/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
16 */ | 16 */ |
17 | 17 |
18 #include "PluginStdAfx.h" | 18 #include "PluginStdAfx.h" |
| 19 #include "PluginUtil.h" |
19 #include "../shared/Utils.h" | 20 #include "../shared/Utils.h" |
20 #include <memory> | 21 #include <memory> |
21 #include <algorithm> | |
22 #include <stdexcept> | |
23 #include <vector> | |
24 #include <WinInet.h> | 22 #include <WinInet.h> |
25 #include <shlwapi.h> | |
26 #include "PluginUtil.h" | |
27 #include "PluginSettings.h" | |
28 | 23 |
29 std::wstring HtmlFolderPath() | 24 std::wstring HtmlFolderPath() |
30 { | 25 { |
31 return GetDllDir() + L"html\\templates\\"; | 26 return GetDllDir() + L"html\\templates\\"; |
32 } | 27 } |
33 | 28 |
34 std::wstring UserSettingsFileUrl() | 29 std::wstring UserSettingsFileUrl() |
35 { | 30 { |
36 return FileUrl(HtmlFolderPath() + L"index.html"); | 31 return FileUrl(HtmlFolderPath() + L"index.html"); |
37 } | 32 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 /* | 73 /* |
79 * When the code has a systematic way of handling bad_alloc, we'll rethrow (
probably). | 74 * When the code has a systematic way of handling bad_alloc, we'll rethrow (
probably). |
80 * Until then, we mask the exception and make no modification. | 75 * Until then, we mask the exception and make no modification. |
81 */ | 76 */ |
82 } | 77 } |
83 catch(...) | 78 catch(...) |
84 { | 79 { |
85 // no modification if any other exception | 80 // no modification if any other exception |
86 } | 81 } |
87 } | 82 } |
LEFT | RIGHT |