OLD | NEW |
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-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 } | 164 } |
165 catch (final Throwable t) | 165 catch (final Throwable t) |
166 { | 166 { |
167 Log.e(TAG, "Notifier died: " + t.getMessage(), t); | 167 Log.e(TAG, "Notifier died: " + t.getMessage(), t); |
168 } | 168 } |
169 } | 169 } |
170 } | 170 } |
171 | 171 |
172 public interface OnEngineCreatedCallback | 172 public interface OnEngineCreatedCallback |
173 { | 173 { |
174 public void onEngineCreated(Engine engine, boolean success); | 174 void onEngineCreated(Engine engine, boolean success); |
175 } | 175 } |
176 | 176 |
177 private static class EngineCreatedCallbackWrapper | 177 private static class EngineCreatedCallbackWrapper |
178 { | 178 { |
179 final OnEngineCreatedCallback callback; | 179 final OnEngineCreatedCallback callback; |
180 final boolean runOnUiThread; | 180 final boolean runOnUiThread; |
181 | 181 |
182 public EngineCreatedCallbackWrapper(final OnEngineCreatedCallback callback, | 182 public EngineCreatedCallbackWrapper(final OnEngineCreatedCallback callback, |
183 final boolean runOnUiThread) | 183 final boolean runOnUiThread) |
184 { | 184 { |
185 this.callback = callback; | 185 this.callback = callback; |
186 this.runOnUiThread = runOnUiThread; | 186 this.runOnUiThread = runOnUiThread; |
187 } | 187 } |
188 } | 188 } |
189 } | 189 } |
OLD | NEW |