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 COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_BACKEND_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_BACKEND_H_ |
6 #define COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_BACKEND_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_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/macros.h" |
14 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
17 #include "base/scoped_observer.h" | 18 #include "base/scoped_observer.h" |
18 #include "base/sequenced_task_runner.h" | 19 #include "base/sequenced_task_runner.h" |
19 #include "base/strings/string16.h" | 20 #include "base/strings/string16.h" |
20 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
21 #include "base/time/time.h" | 22 #include "base/time/time.h" |
22 #include "components/history/core/browser/history_service_observer.h" | 23 #include "components/history/core/browser/history_service_observer.h" |
23 #include "components/keyed_service/core/refcounted_keyed_service.h" | 24 #include "components/keyed_service/core/refcounted_keyed_service.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 scoped_refptr<base::SequencedTaskRunner> main_runner_; | 166 scoped_refptr<base::SequencedTaskRunner> main_runner_; |
166 scoped_refptr<base::SequencedTaskRunner> db_runner_; | 167 scoped_refptr<base::SequencedTaskRunner> db_runner_; |
167 | 168 |
168 // For some unit-test only. | 169 // For some unit-test only. |
169 bool no_db_access_; | 170 bool no_db_access_; |
170 | 171 |
171 DISALLOW_COPY_AND_ASSIGN(ShortcutsBackend); | 172 DISALLOW_COPY_AND_ASSIGN(ShortcutsBackend); |
172 }; | 173 }; |
173 | 174 |
174 #endif // COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_BACKEND_H_ | 175 #endif // COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_BACKEND_H_ |
OLD | NEW |