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 #include "chrome/browser/history/expire_history_backend.h" | 5 #include "chrome/browser/history/expire_history_backend.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/file_util.h" | |
14 #include "base/files/file_enumerator.h" | 13 #include "base/files/file_enumerator.h" |
| 14 #include "base/files/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "chrome/browser/chrome_notification_types.h" | 17 #include "chrome/browser/chrome_notification_types.h" |
18 #include "chrome/browser/history/history_database.h" | 18 #include "chrome/browser/history/history_database.h" |
19 #include "chrome/browser/history/history_notifications.h" | 19 #include "chrome/browser/history/history_notifications.h" |
20 #include "chrome/browser/history/thumbnail_database.h" | 20 #include "chrome/browser/history/thumbnail_database.h" |
21 #include "components/history/core/browser/history_client.h" | 21 #include "components/history/core/browser/history_client.h" |
22 | 22 |
23 namespace history { | 23 namespace history { |
24 | 24 |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 HistoryClient* ExpireHistoryBackend::GetHistoryClient() { | 516 HistoryClient* ExpireHistoryBackend::GetHistoryClient() { |
517 // We use the history client to determine if a URL is bookmarked. The data is | 517 // We use the history client to determine if a URL is bookmarked. The data is |
518 // loaded on a separate thread and may not be done by the time we get here. | 518 // loaded on a separate thread and may not be done by the time we get here. |
519 // We therefore block until the bookmarks have finished loading. | 519 // We therefore block until the bookmarks have finished loading. |
520 if (history_client_) | 520 if (history_client_) |
521 history_client_->BlockUntilBookmarksLoaded(); | 521 history_client_->BlockUntilBookmarksLoaded(); |
522 return history_client_; | 522 return history_client_; |
523 } | 523 } |
524 | 524 |
525 } // namespace history | 525 } // namespace history |
OLD | NEW |