| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 15 |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 #include "base/basictypes.h" | 18 #include "base/basictypes.h" |
| 19 #include "base/scoped_ptr.h" |
| 19 #include "chrome/browser/history/history_notifications.h" | 20 #include "chrome/browser/history/history_notifications.h" |
| 20 #include "chrome/common/notification_observer.h" | 21 #include "chrome/common/notification_observer.h" |
| 21 | 22 |
| 22 class HistoryDatabase; | 23 class HistoryDatabase; |
| 23 class Profile; | 24 class Profile; |
| 24 | 25 |
| 25 namespace history { | 26 namespace history { |
| 26 | 27 |
| 27 class InMemoryDatabase; | 28 class InMemoryDatabase; |
| 28 | 29 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // know whether to unregister (the initialization may have failed, so we | 71 // know whether to unregister (the initialization may have failed, so we |
| 71 // may be destroyed before attaching to the main thread. | 72 // may be destroyed before attaching to the main thread. |
| 72 bool registered_for_notifications_; | 73 bool registered_for_notifications_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(InMemoryHistoryBackend); | 75 DISALLOW_COPY_AND_ASSIGN(InMemoryHistoryBackend); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace history | 78 } // namespace history |
| 78 | 79 |
| 79 #endif // CHROME_BROWSER_IN_MEMORY_HISTORY_BACKEND_H_ | 80 #endif // CHROME_BROWSER_IN_MEMORY_HISTORY_BACKEND_H_ |
| OLD | NEW |