| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 import android.widget.Toast; | 61 import android.widget.Toast; |
| 62 | 62 |
| 63 public final class Engine | 63 public final class Engine |
| 64 { | 64 { |
| 65 private static final String TAG = Engine.class.getSimpleName(); | 65 private static final String TAG = Engine.class.getSimpleName(); |
| 66 | 66 |
| 67 public static final String USER_FILTERS_TITLE = "__filters"; | 67 public static final String USER_FILTERS_TITLE = "__filters"; |
| 68 public static final String USER_EXCEPTIONS_TITLE = "__exceptions"; | 68 public static final String USER_EXCEPTIONS_TITLE = "__exceptions"; |
| 69 | 69 |
| 70 public static final String SBROWSER_APP_ID = "com.sec.android.app.sbrowser"; | 70 public static final String SBROWSER_APP_ID = "com.sec.android.app.sbrowser"; |
| 71 public static final String EASYLIST_URL = "https://easylist-downloads.adblockp
lus.org/easylist.txt"; | |
| 72 private static final String ACTION_OPEN_SETTINGS = "com.samsung.android.sbrows
er.contentBlocker.ACTION_SETTING"; | 71 private static final String ACTION_OPEN_SETTINGS = "com.samsung.android.sbrows
er.contentBlocker.ACTION_SETTING"; |
| 73 private static final String ACTION_UPDATE = "com.samsung.android.sbrowser.cont
entBlocker.ACTION_UPDATE"; | 72 private static final String ACTION_UPDATE = "com.samsung.android.sbrowser.cont
entBlocker.ACTION_UPDATE"; |
| 74 | 73 |
| 75 public static final String SUBSCRIPTIONS_EXCEPTIONSURL = "subscriptions_except
ionsurl"; | 74 public static final String SUBSCRIPTIONS_EXCEPTIONSURL = "subscriptions_except
ionsurl"; |
| 76 | 75 |
| 77 // The value below specifies an interval of [x, 2*x[, where x = | 76 // The value below specifies an interval of [x, 2*x[, where x = |
| 78 // INITIAL_UPDATE_CHECK_DELAY | 77 // INITIAL_UPDATE_CHECK_DELAY |
| 79 private static final long INITIAL_UPDATE_CHECK_DELAY = 5 * DateUtils.SECOND_IN
_MILLIS; | 78 private static final long INITIAL_UPDATE_CHECK_DELAY = 5 * DateUtils.SECOND_IN
_MILLIS; |
| 80 private static final long UPDATE_CHECK_INTERVAL = 30 * DateUtils.MINUTE_IN_MIL
LIS; | 79 private static final long UPDATE_CHECK_INTERVAL = 30 * DateUtils.MINUTE_IN_MIL
LIS; |
| 81 private static final long BROADCAST_COMBINATION_DELAY = 2500; | 80 private static final long BROADCAST_COMBINATION_DELAY = 2500; |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 { | 790 { |
| 792 void subscriptionUpdateRequested(boolean enabled); | 791 void subscriptionUpdateRequested(boolean enabled); |
| 793 void subscriptionUpdatedApplied(); | 792 void subscriptionUpdatedApplied(); |
| 794 } | 793 } |
| 795 | 794 |
| 796 public interface SubscriptionAddedCallback | 795 public interface SubscriptionAddedCallback |
| 797 { | 796 { |
| 798 void subscriptionAdded(); | 797 void subscriptionAdded(); |
| 799 } | 798 } |
| 800 } | 799 } |
| OLD | NEW |