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 #ifndef COMPONENTS_VISITEDLINK_BROWSER_VISITEDLINK_MASTER_H_ | 5 #ifndef COMPONENTS_VISITEDLINK_BROWSER_VISITEDLINK_MASTER_H_ |
6 #define COMPONENTS_VISITEDLINK_BROWSER_VISITEDLINK_MASTER_H_ | 6 #define COMPONENTS_VISITEDLINK_BROWSER_VISITEDLINK_MASTER_H_ |
7 | 7 |
8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // | 78 // |
79 // When |suppress_rebuild| is set, we'll not attempt to load data from | 79 // When |suppress_rebuild| is set, we'll not attempt to load data from |
80 // history if the file can't be loaded. This should generally be set for | 80 // history if the file can't be loaded. This should generally be set for |
81 // testing except when you want to test the rebuild process explicitly. | 81 // testing except when you want to test the rebuild process explicitly. |
82 VisitedLinkMaster(Listener* listener, | 82 VisitedLinkMaster(Listener* listener, |
83 VisitedLinkDelegate* delegate, | 83 VisitedLinkDelegate* delegate, |
84 bool persist_to_disk, | 84 bool persist_to_disk, |
85 bool suppress_rebuild, | 85 bool suppress_rebuild, |
86 const base::FilePath& filename, | 86 const base::FilePath& filename, |
87 int32 default_table_size); | 87 int32 default_table_size); |
88 virtual ~VisitedLinkMaster(); | 88 ~VisitedLinkMaster() override; |
89 | 89 |
90 // Must be called immediately after object creation. Nothing else will work | 90 // Must be called immediately after object creation. Nothing else will work |
91 // until this is called. Returns true on success, false means that this | 91 // until this is called. Returns true on success, false means that this |
92 // object won't work. | 92 // object won't work. |
93 bool Init(); | 93 bool Init(); |
94 | 94 |
95 base::SharedMemory* shared_memory() { return shared_memory_; } | 95 base::SharedMemory* shared_memory() { return shared_memory_; } |
96 | 96 |
97 // Adds a URL to the table. | 97 // Adds a URL to the table. |
98 void AddURL(const GURL& url); | 98 void AddURL(const GURL& url); |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 if (hash_table_[i]) | 436 if (hash_table_[i]) |
437 used_count++; | 437 used_count++; |
438 } | 438 } |
439 DCHECK_EQ(used_count, used_items_); | 439 DCHECK_EQ(used_count, used_items_); |
440 } | 440 } |
441 #endif | 441 #endif |
442 | 442 |
443 } // namespace visitedlink | 443 } // namespace visitedlink |
444 | 444 |
445 #endif // COMPONENTS_VISITEDLINK_BROWSER_VISITEDLINK_MASTER_H_ | 445 #endif // COMPONENTS_VISITEDLINK_BROWSER_VISITEDLINK_MASTER_H_ |
OLD | NEW |