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 |
| 11 #include <stddef.h> |
| 12 |
11 #include <deque> | 13 #include <deque> |
12 #include <map> | 14 #include <map> |
13 #include <set> | 15 #include <set> |
14 #include <string> | 16 #include <string> |
15 #include <vector> | 17 #include <vector> |
16 | 18 |
17 #include "base/callback.h" | 19 #include "base/callback.h" |
18 #include "base/containers/hash_tables.h" | 20 #include "base/containers/hash_tables.h" |
19 #include "base/gtest_prod_util.h" | 21 #include "base/gtest_prod_util.h" |
| 22 #include "base/macros.h" |
20 #include "base/memory/ref_counted.h" | 23 #include "base/memory/ref_counted.h" |
21 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
22 #include "base/memory/weak_ptr.h" | 25 #include "base/memory/weak_ptr.h" |
23 #include "base/synchronization/lock.h" | 26 #include "base/synchronization/lock.h" |
24 #include "base/time/time.h" | 27 #include "base/time/time.h" |
25 #include "chrome/browser/safe_browsing/database_manager.h" | 28 #include "chrome/browser/safe_browsing/database_manager.h" |
26 #include "chrome/browser/safe_browsing/protocol_manager.h" | 29 #include "chrome/browser/safe_browsing/protocol_manager.h" |
27 #include "components/safe_browsing_db/util.h" | 30 #include "components/safe_browsing_db/util.h" |
28 #include "url/gurl.h" | 31 #include "url/gurl.h" |
29 | 32 |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 | 362 |
360 // Timeout to use for safe browsing checks. | 363 // Timeout to use for safe browsing checks. |
361 base::TimeDelta check_timeout_; | 364 base::TimeDelta check_timeout_; |
362 | 365 |
363 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); | 366 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); |
364 }; // class LocalSafeBrowsingDatabaseManager | 367 }; // class LocalSafeBrowsingDatabaseManager |
365 | 368 |
366 } // namespace safe_browsing | 369 } // namespace safe_browsing |
367 | 370 |
368 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 371 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
OLD | NEW |