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 // 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 listenes for notifications | 10 // operations can be completed synchronously. It listenes 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 "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
19 #include "base/scoped_ptr.h" | 19 #include "base/scoped_ptr.h" |
| 20 #include "chrome/common/notification_observer.h" |
20 #include "chrome/common/notification_registrar.h" | 21 #include "chrome/common/notification_registrar.h" |
21 | 22 |
22 class FilePath; | 23 class FilePath; |
23 class HistoryDatabase; | 24 class HistoryDatabase; |
24 class Profile; | 25 class Profile; |
25 | 26 |
26 namespace history { | 27 namespace history { |
27 | 28 |
28 class InMemoryDatabase; | 29 class InMemoryDatabase; |
29 class InMemoryURLIndex; | 30 class InMemoryURLIndex; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // The profile that this object is attached. May be NULL before | 81 // The profile that this object is attached. May be NULL before |
81 // initialization. | 82 // initialization. |
82 Profile* profile_; | 83 Profile* profile_; |
83 | 84 |
84 DISALLOW_COPY_AND_ASSIGN(InMemoryHistoryBackend); | 85 DISALLOW_COPY_AND_ASSIGN(InMemoryHistoryBackend); |
85 }; | 86 }; |
86 | 87 |
87 } // namespace history | 88 } // namespace history |
88 | 89 |
89 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_HISTORY_BACKEND_H_ | 90 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_HISTORY_BACKEND_H_ |
OLD | NEW |