OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HISTORY_URL_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
| 10 #include <vector> |
10 | 11 |
11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
12 #include "base/synchronization/cancellation_flag.h" | 13 #include "base/synchronization/cancellation_flag.h" |
13 #include "chrome/browser/autocomplete/history_provider.h" | 14 #include "chrome/browser/autocomplete/history_provider.h" |
14 #include "chrome/browser/autocomplete/history_provider_util.h" | 15 #include "chrome/browser/autocomplete/history_provider_util.h" |
15 | 16 |
16 class MessageLoop; | 17 class MessageLoop; |
17 class Profile; | 18 class Profile; |
18 | 19 |
19 namespace history { | 20 namespace history { |
20 | 21 |
21 class HistoryBackend; | 22 class HistoryBackend; |
22 class URLDatabase; | 23 class URLDatabase; |
23 class URLRow; | |
24 | 24 |
25 } // namespace history | 25 } // namespace history |
26 | 26 |
27 // How history autocomplete works | 27 // How history autocomplete works |
28 // ============================== | 28 // ============================== |
29 // | 29 // |
30 // Read down this diagram for temporal ordering. | 30 // Read down this diagram for temporal ordering. |
31 // | 31 // |
32 // Main thread History thread | 32 // Main thread History thread |
33 // ----------- -------------- | 33 // ----------- -------------- |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // parameter itself is freed once it's no longer needed. The only reason we | 279 // parameter itself is freed once it's no longer needed. The only reason we |
280 // keep this member is so we can set the cancel bit on it. | 280 // keep this member is so we can set the cancel bit on it. |
281 HistoryURLProviderParams* params_; | 281 HistoryURLProviderParams* params_; |
282 | 282 |
283 // Only used by unittests; if non-empty, overrides accept-languages in the | 283 // Only used by unittests; if non-empty, overrides accept-languages in the |
284 // profile's pref system. | 284 // profile's pref system. |
285 std::string languages_; | 285 std::string languages_; |
286 }; | 286 }; |
287 | 287 |
288 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ | 288 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ |
OLD | NEW |