| 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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 27 matching lines...) Expand all Loading... |
| 38 import org.adblockplus.libadblockplus.ShowNotificationCallback; | 38 import org.adblockplus.libadblockplus.ShowNotificationCallback; |
| 39 import org.adblockplus.libadblockplus.Subscription; | 39 import org.adblockplus.libadblockplus.Subscription; |
| 40 import org.adblockplus.libadblockplus.UpdateAvailableCallback; | 40 import org.adblockplus.libadblockplus.UpdateAvailableCallback; |
| 41 import org.adblockplus.libadblockplus.UpdateCheckDoneCallback; | 41 import org.adblockplus.libadblockplus.UpdateCheckDoneCallback; |
| 42 import org.adblockplus.libadblockplus.WebRequest; | 42 import org.adblockplus.libadblockplus.WebRequest; |
| 43 | 43 |
| 44 import android.content.Context; | 44 import android.content.Context; |
| 45 import android.content.pm.PackageInfo; | 45 import android.content.pm.PackageInfo; |
| 46 import android.content.pm.PackageManager; | 46 import android.content.pm.PackageManager; |
| 47 import android.os.Build.VERSION; | 47 import android.os.Build.VERSION; |
| 48 import android.os.Handler; | |
| 49 import android.os.Looper; | |
| 50 import android.util.Log; | 48 import android.util.Log; |
| 51 | 49 |
| 52 public final class AdblockEngine | 50 public final class AdblockEngine |
| 53 { | 51 { |
| 54 // default base path to store subscription files in android app | 52 // default base path to store subscription files in android app |
| 55 public static final String BASE_PATH_DIRECTORY = "adblock"; | 53 public static final String BASE_PATH_DIRECTORY = "adblock"; |
| 56 | 54 |
| 57 private static final String TAG = Utils.getTag(AdblockEngine.class); | 55 private static final String TAG = Utils.getTag(AdblockEngine.class); |
| 58 | 56 |
| 59 /* | 57 /* |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 public void setWhitelistedDomains(List<String> domains) | 608 public void setWhitelistedDomains(List<String> domains) |
| 611 { | 609 { |
| 612 this.whitelistedDomains = domains; | 610 this.whitelistedDomains = domains; |
| 613 } | 611 } |
| 614 | 612 |
| 615 public List<String> getWhitelistedDomains() | 613 public List<String> getWhitelistedDomains() |
| 616 { | 614 { |
| 617 return whitelistedDomains; | 615 return whitelistedDomains; |
| 618 } | 616 } |
| 619 } | 617 } |
| OLD | NEW |