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 // Contains the history backend wrapper around the in-memory URL database. This | 5 // Contains the history backend wrapper around the in-memory URL database. This |
6 // object maintains an in-memory cache of the subset of history required to do | 6 // object maintains an in-memory cache of the subset of history required to do |
7 // in-line autocomplete. | 7 // in-line autocomplete. |
8 // | 8 // |
9 // It is created on the history thread and passed to the main thread where | 9 // It is created on the history thread and passed to the main thread where |
10 // operations can be completed synchronously. It listens for notifications | 10 // operations can be completed synchronously. It listens for notifications |
11 // from the "regular" history backend and keeps itself in sync. | 11 // from the "regular" history backend and keeps itself in sync. |
12 | 12 |
13 #ifndef CHROME_BROWSER_HISTORY_IN_MEMORY_HISTORY_BACKEND_H_ | 13 #ifndef CHROME_BROWSER_HISTORY_IN_MEMORY_HISTORY_BACKEND_H_ |
14 #define CHROME_BROWSER_HISTORY_IN_MEMORY_HISTORY_BACKEND_H_ | 14 #define CHROME_BROWSER_HISTORY_IN_MEMORY_HISTORY_BACKEND_H_ |
15 #pragma once | 15 #pragma once |
16 | 16 |
17 #include <string> | 17 #include <string> |
18 | 18 |
19 #include "base/basictypes.h" | 19 #include "base/basictypes.h" |
20 #include "base/gtest_prod_util.h" | 20 #include "base/gtest_prod_util.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
23 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
24 | 24 |
25 class FilePath; | 25 class FilePath; |
26 class GURL; | 26 class GURL; |
27 class HistoryDatabase; | |
28 class Profile; | 27 class Profile; |
29 | 28 |
30 namespace history { | 29 namespace history { |
31 | 30 |
32 class InMemoryDatabase; | 31 class InMemoryDatabase; |
33 class InMemoryURLIndex; | 32 class InMemoryURLIndex; |
34 struct KeywordSearchTermDetails; | 33 struct KeywordSearchTermDetails; |
35 class URLDatabase; | 34 class URLDatabase; |
36 struct URLsDeletedDetails; | 35 struct URLsDeletedDetails; |
37 struct URLsModifiedDetails; | 36 struct URLsModifiedDetails; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 97 |
99 // The index used for quick history lookups. | 98 // The index used for quick history lookups. |
100 scoped_ptr<history::InMemoryURLIndex> index_; | 99 scoped_ptr<history::InMemoryURLIndex> index_; |
101 | 100 |
102 DISALLOW_COPY_AND_ASSIGN(InMemoryHistoryBackend); | 101 DISALLOW_COPY_AND_ASSIGN(InMemoryHistoryBackend); |
103 }; | 102 }; |
104 | 103 |
105 } // namespace history | 104 } // namespace history |
106 | 105 |
107 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_HISTORY_BACKEND_H_ | 106 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_HISTORY_BACKEND_H_ |
OLD | NEW |