Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors |
[email protected] | 375bd731 | 2010-08-30 22:18:13 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | eb7c2e2 | 2014-06-12 16:26:07 | [diff] [blame] | 5 | #ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ |
6 | #define COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ | ||||
[email protected] | 375bd731 | 2010-08-30 22:18:13 | [diff] [blame] | 7 | |
Tommy Li | 24459ac | 2022-01-20 18:33:14 | [diff] [blame] | 8 | #include <memory> |
[email protected] | 375bd731 | 2010-08-30 22:18:13 | [diff] [blame] | 9 | #include <string> |
10 | |||||
[email protected] | 49fd7e2 | 2011-11-21 16:52:21 | [diff] [blame] | 11 | #include "base/compiler_specific.h" |
[email protected] | 375bd731 | 2010-08-30 22:18:13 | [diff] [blame] | 12 | |
13 | // All data needed by TemplateURLRef::ReplaceSearchTerms which typically may | ||||
14 | // only be accessed on the UI thread. | ||||
15 | class SearchTermsData { | ||||
16 | public: | ||||
Moe Ahmadi | b224f46 | 2023-02-16 23:02:45 | [diff] [blame] | 17 | // Enumeration of the known search or suggest request sources. These values |
18 | // are not persisted or used in histograms; thus can be freely changed. | ||||
19 | enum class RequestSource { | ||||
Mohamad Ahmadi | d20cff7 | 2024-09-20 21:52:31 | [diff] [blame] | 20 | SEARCHBOX, // Omnibox or the NTP realbox. The default. |