OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VISITEDLINK_MASTER_H__ | 5 #ifndef CHROME_BROWSER_VISITEDLINK_VISITEDLINK_MASTER_H_ |
6 #define CHROME_BROWSER_VISITEDLINK_MASTER_H__ | 6 #define CHROME_BROWSER_VISITEDLINK_VISITEDLINK_MASTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
11 #endif | 11 #endif |
12 #include <set> | 12 #include <set> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 inline void VisitedLinkMaster::DebugValidate() { | 378 inline void VisitedLinkMaster::DebugValidate() { |
379 int32 used_count = 0; | 379 int32 used_count = 0; |
380 for (int32 i = 0; i < table_length_; i++) { | 380 for (int32 i = 0; i < table_length_; i++) { |
381 if (hash_table_[i]) | 381 if (hash_table_[i]) |
382 used_count++; | 382 used_count++; |
383 } | 383 } |
384 DCHECK_EQ(used_count, used_items_); | 384 DCHECK_EQ(used_count, used_items_); |
385 } | 385 } |
386 #endif | 386 #endif |
387 | 387 |
388 #endif // CHROME_BROWSER_VISITEDLINK_MASTER_H__ | 388 #endif // CHROME_BROWSER_VISITEDLINK_VISITEDLINK_MASTER_H_ |
OLD | NEW |