| OLD | NEW |
| 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_HISTORY_IN_MEMORY_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_IN_MEMORY_DATABASE_H_ |
| 6 #define CHROME_BROWSER_HISTORY_IN_MEMORY_DATABASE_H_ | 6 #define CHROME_BROWSER_HISTORY_IN_MEMORY_DATABASE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | |
| 10 | |
| 11 #include "app/sql/connection.h" | 9 #include "app/sql/connection.h" |
| 12 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 13 #include "chrome/browser/history/url_database.h" | 11 #include "chrome/browser/history/url_database.h" |
| 14 | 12 |
| 15 class FilePath; | 13 class FilePath; |
| 16 | 14 |
| 17 namespace history { | 15 namespace history { |
| 18 | 16 |
| 19 // Class used for a fast in-memory cache of typed URLs. Used for inline | 17 // Class used for a fast in-memory cache of typed URLs. Used for inline |
| 20 // autocomplete since it is fast enough to be called synchronously as the user | 18 // autocomplete since it is fast enough to be called synchronously as the user |
| (...skipping 22 matching lines...) Expand all Loading... |
| 43 bool InitDB(); | 41 bool InitDB(); |
| 44 | 42 |
| 45 sql::Connection db_; | 43 sql::Connection db_; |
| 46 | 44 |
| 47 DISALLOW_COPY_AND_ASSIGN(InMemoryDatabase); | 45 DISALLOW_COPY_AND_ASSIGN(InMemoryDatabase); |
| 48 }; | 46 }; |
| 49 | 47 |
| 50 } // namespace history | 48 } // namespace history |
| 51 | 49 |
| 52 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_DATABASE_H_ | 50 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_DATABASE_H_ |
| OLD | NEW |