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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 public static final String KEY_TITLE = "title"; | 57 public static final String KEY_TITLE = "title"; |
58 public static final String KEY_VERSION = "version"; | 58 public static final String KEY_VERSION = "version"; |
59 public static final String KEY_HTTP_ETAG = "_etag"; | 59 public static final String KEY_HTTP_ETAG = "_etag"; |
60 public static final String KEY_HTTP_LAST_MODIFIED = "_last_modified"; | 60 public static final String KEY_HTTP_LAST_MODIFIED = "_last_modified"; |
61 public static final String KEY_UPDATE_TIMESTAMP = "_update_timestamp"; | 61 public static final String KEY_UPDATE_TIMESTAMP = "_update_timestamp"; |
62 public static final String KEY_TRIED_UPDATE_TIMESTAMP = "_tried_update_timesta
mp"; | 62 public static final String KEY_TRIED_UPDATE_TIMESTAMP = "_tried_update_timesta
mp"; |
63 public static final String KEY_DOWNLOAD_COUNT = "_download_count"; | 63 public static final String KEY_DOWNLOAD_COUNT = "_download_count"; |
64 public static final String KEY_ENABLED = "_enabled"; | 64 public static final String KEY_ENABLED = "_enabled"; |
65 public static final String KEY_META_HASH = "_meta_hash"; | 65 public static final String KEY_META_HASH = "_meta_hash"; |
66 | 66 |
67 private static final long MINIMAL_DOWNLOAD_INTERVAL = DateUtils.HOUR_IN_MILLIS
/ 4; | 67 private static final long MINIMAL_DOWNLOAD_INTERVAL = DateUtils.MINUTE_IN_MILL
IS; |
68 private static final long DOWNLOAD_RETRY_INTERVAL = DateUtils.HOUR_IN_MILLIS; | 68 private static final long DOWNLOAD_RETRY_INTERVAL = DateUtils.HOUR_IN_MILLIS; |
69 | 69 |
70 /** | 70 /** |
71 * List of meta keys that are allowed to import from a downloaded | 71 * List of meta keys that are allowed to import from a downloaded |
72 * subscription. | 72 * subscription. |
73 */ | 73 */ |
74 private static final String[] ALLOWED_META_KEYS_ARRAY = | 74 private static final String[] ALLOWED_META_KEYS_ARRAY = |
75 { | 75 { |
76 "checksum", KEY_VERSION, KEY_TITLE, "last modified", "expires", "homep
age", "licence" | 76 "checksum", KEY_VERSION, KEY_TITLE, "last modified", "expires", "homep
age", "licence" |
77 }; | 77 }; |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 this.serializeMetaData(metaFile); | 600 this.serializeMetaData(metaFile); |
601 if (filtersChanged) | 601 if (filtersChanged) |
602 { | 602 { |
603 this.serializeFilters(filtersFile); | 603 this.serializeFilters(filtersFile); |
604 this.clearFilters(); | 604 this.clearFilters(); |
605 } | 605 } |
606 | 606 |
607 return filtersChanged; | 607 return filtersChanged; |
608 } | 608 } |
609 } | 609 } |
OLD | NEW |