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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" |
15 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
16 #include "base/task.h" | |
17 #include "chrome/browser/safe_browsing/safe_browsing_store.h" | 17 #include "chrome/browser/safe_browsing/safe_browsing_store.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class Time; | 20 class Time; |
21 } | 21 } |
22 | 22 |
23 namespace safe_browsing { | 23 namespace safe_browsing { |
24 class PrefixSet; | 24 class PrefixSet; |
25 } | 25 } |
26 | 26 |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 375 |
376 // Set to true if any chunks are added or deleted during an update. | 376 // Set to true if any chunks are added or deleted during an update. |
377 // Used to optimize away database update. | 377 // Used to optimize away database update. |
378 bool change_detected_; | 378 bool change_detected_; |
379 | 379 |
380 // Used to check if a prefix was in the database. | 380 // Used to check if a prefix was in the database. |
381 scoped_ptr<safe_browsing::PrefixSet> prefix_set_; | 381 scoped_ptr<safe_browsing::PrefixSet> prefix_set_; |
382 }; | 382 }; |
383 | 383 |
384 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ | 384 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ |
OLD | NEW |