OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTOCOMPLETE_SHORTCUTS_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_BACKEND_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_BACKEND_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_BACKEND_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "chrome/browser/history/shortcuts_database.h" | 20 #include "chrome/browser/autocomplete/shortcuts_database.h" |
21 #include "components/keyed_service/core/refcounted_keyed_service.h" | 21 #include "components/keyed_service/core/refcounted_keyed_service.h" |
22 #include "components/omnibox/autocomplete_match.h" | 22 #include "components/omnibox/autocomplete_match.h" |
23 #include "content/public/browser/notification_observer.h" | 23 #include "content/public/browser/notification_observer.h" |
24 #include "content/public/browser/notification_registrar.h" | 24 #include "content/public/browser/notification_registrar.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 | 26 |
27 class Profile; | 27 class Profile; |
28 | 28 |
29 namespace history { | 29 namespace history { |
30 class ShortcutsDatabase; | 30 class ShortcutsDatabase; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 content::NotificationRegistrar notification_registrar_; | 146 content::NotificationRegistrar notification_registrar_; |
147 | 147 |
148 // For some unit-test only. | 148 // For some unit-test only. |
149 bool no_db_access_; | 149 bool no_db_access_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(ShortcutsBackend); | 151 DISALLOW_COPY_AND_ASSIGN(ShortcutsBackend); |
152 }; | 152 }; |
153 | 153 |
154 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_BACKEND_H_ | 154 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_BACKEND_H_ |
OLD | NEW |