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 "components/history/core/browser/history_backend.h" | 5 #include "components/history/core/browser/history_backend.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/files/file_enumerator.h" | 17 #include "base/files/file_enumerator.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/memory/scoped_vector.h" | 19 #include "base/memory/scoped_vector.h" |
20 #include "base/message_loop/message_loop.h" | 20 #include "base/message_loop/message_loop.h" |
21 #include "base/metrics/histogram.h" | 21 #include "base/metrics/histogram_macros.h" |
22 #include "base/rand_util.h" | 22 #include "base/rand_util.h" |
23 #include "base/sequenced_task_runner.h" | 23 #include "base/sequenced_task_runner.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
26 #include "base/time/time.h" | 26 #include "base/time/time.h" |
27 #include "components/favicon_base/select_favicon_frames.h" | 27 #include "components/favicon_base/select_favicon_frames.h" |
28 #include "components/history/core/browser/download_constants.h" | 28 #include "components/history/core/browser/download_constants.h" |
29 #include "components/history/core/browser/download_row.h" | 29 #include "components/history/core/browser/download_row.h" |
30 #include "components/history/core/browser/history_backend_observer.h" | 30 #include "components/history/core/browser/history_backend_observer.h" |
31 #include "components/history/core/browser/history_client.h" | 31 #include "components/history/core/browser/history_client.h" |
(...skipping 2618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2650 return true; | 2650 return true; |
2651 } | 2651 } |
2652 | 2652 |
2653 HistoryClient* HistoryBackend::GetHistoryClient() { | 2653 HistoryClient* HistoryBackend::GetHistoryClient() { |
2654 if (history_client_) | 2654 if (history_client_) |
2655 history_client_->BlockUntilBookmarksLoaded(); | 2655 history_client_->BlockUntilBookmarksLoaded(); |
2656 return history_client_; | 2656 return history_client_; |
2657 } | 2657 } |
2658 | 2658 |
2659 } // namespace history | 2659 } // namespace history |
OLD | NEW |