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