OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/sequenced_task_runner.h" | 19 #include "base/sequenced_task_runner.h" |
20 #include "base/synchronization/lock.h" | 20 #include "base/synchronization/lock.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "chrome/browser/safe_browsing/safe_browsing_store.h" | 22 #include "chrome/browser/safe_browsing/safe_browsing_store.h" |
| 23 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
23 #include "components/safe_browsing_db/util.h" | 24 #include "components/safe_browsing_db/util.h" |
24 | 25 |
25 class GURL; | 26 class GURL; |
26 | 27 |
27 namespace safe_browsing { | 28 namespace safe_browsing { |
28 | 29 |
29 class PrefixSet; | 30 class PrefixSet; |
30 class SafeBrowsingDatabase; | 31 class SafeBrowsingDatabase; |
31 | 32 |
32 // Factory for creating SafeBrowsingDatabase. Tests implement this factory | 33 // Factory for creating SafeBrowsingDatabase. Tests implement this factory |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 | 737 |
737 // Used to schedule resetting the database because of corruption. This factory | 738 // Used to schedule resetting the database because of corruption. This factory |
738 // and the WeakPtrs it issues should only be used on the database's main | 739 // and the WeakPtrs it issues should only be used on the database's main |
739 // thread. | 740 // thread. |
740 base::WeakPtrFactory<SafeBrowsingDatabaseNew> reset_factory_; | 741 base::WeakPtrFactory<SafeBrowsingDatabaseNew> reset_factory_; |
741 }; | 742 }; |
742 | 743 |
743 } // namespace safe_browsing | 744 } // namespace safe_browsing |
744 | 745 |
745 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ | 746 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ |
OLD | NEW |