OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Safe Browsing Database Manager implementation that manages a local | 5 // Safe Browsing Database Manager implementation that manages a local |
6 // database. This is used by Desktop Chromium. | 6 // database. This is used by Desktop Chromium. |
7 | 7 |
8 #ifndef CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
9 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 9 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
10 | 10 |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
337 | 337 |
338 // Indicate if the extension blacklist should be enabled. | 338 // Indicate if the extension blacklist should be enabled. |
339 bool enable_extension_blacklist_; | 339 bool enable_extension_blacklist_; |
340 | 340 |
341 // Indicate if the csd malware IP blacklist should be enabled. | 341 // Indicate if the csd malware IP blacklist should be enabled. |
342 bool enable_ip_blacklist_; | 342 bool enable_ip_blacklist_; |
343 | 343 |
344 // Indicate if the unwanted software blacklist should be enabled. | 344 // Indicate if the unwanted software blacklist should be enabled. |
345 bool enable_unwanted_software_blacklist_; | 345 bool enable_unwanted_software_blacklist_; |
346 | 346 |
347 // Indicate if the module whitelist should be enabled. | |
348 bool enable_module_whitelist_; | |
Nathan Parker
2016/02/08 02:58:46
Do you need this?
proberge
2016/02/08 16:23:59
It seems like the standard way of supporting lists
| |
349 | |
347 // The sequenced task runner for running safe browsing database operations. | 350 // The sequenced task runner for running safe browsing database operations. |
348 scoped_refptr<base::SequencedTaskRunner> safe_browsing_task_runner_; | 351 scoped_refptr<base::SequencedTaskRunner> safe_browsing_task_runner_; |
349 | 352 |
350 // Indicates if we're currently in an update cycle. | 353 // Indicates if we're currently in an update cycle. |
351 bool update_in_progress_; | 354 bool update_in_progress_; |
352 | 355 |
353 // When true, newly fetched chunks may not in the database yet since the | 356 // When true, newly fetched chunks may not in the database yet since the |
354 // database is still updating. | 357 // database is still updating. |
355 bool database_update_in_progress_; | 358 bool database_update_in_progress_; |
356 | 359 |
357 // Indicates if we're in the midst of trying to close the database. If this | 360 // Indicates if we're in the midst of trying to close the database. If this |
358 // is true, nothing on the IO thread should access the database. | 361 // is true, nothing on the IO thread should access the database. |
359 bool closing_database_; | 362 bool closing_database_; |
360 | 363 |
361 std::deque<QueuedCheck> queued_checks_; | 364 std::deque<QueuedCheck> queued_checks_; |
362 | 365 |
363 // Timeout to use for safe browsing checks. | 366 // Timeout to use for safe browsing checks. |
364 base::TimeDelta check_timeout_; | 367 base::TimeDelta check_timeout_; |
365 | 368 |
366 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); | 369 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); |
367 }; // class LocalSafeBrowsingDatabaseManager | 370 }; // class LocalSafeBrowsingDatabaseManager |
368 | 371 |
369 } // namespace safe_browsing | 372 } // namespace safe_browsing |
370 | 373 |
371 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 374 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
OLD | NEW |