OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_ |
6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_ | 6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 | 11 |
12 // Encapsulates the various parts of a Resolved Search Term, which tells | 12 // Encapsulates the various parts of a Resolved Search Term, which tells |
13 // Contextual Search what to search for and how that term appears in the | 13 // Contextual Search what to search for and how that term appears in the |
14 // surrounding text. | 14 // surrounding text. |
15 struct ResolvedSearchTerm { | 15 struct ResolvedSearchTerm { |
16 public: | 16 public: |
17 ResolvedSearchTerm(bool is_invalid, | 17 ResolvedSearchTerm(bool is_invalid, |
18 int response_code, | 18 int response_code, |
19 const std::string& search_term, | 19 const std::string& search_term, |
20 const std::string& display_text, | 20 const std::string& display_text, |
(...skipping 11 matching lines...) Expand all Loading... |
32 const std::string& alternate_term; | 32 const std::string& alternate_term; |
33 const bool prevent_preload; | 33 const bool prevent_preload; |
34 const int selection_start_adjust; | 34 const int selection_start_adjust; |
35 const int selection_end_adjust; | 35 const int selection_end_adjust; |
36 const std::string& context_language; | 36 const std::string& context_language; |
37 | 37 |
38 DISALLOW_COPY_AND_ASSIGN(ResolvedSearchTerm); | 38 DISALLOW_COPY_AND_ASSIGN(ResolvedSearchTerm); |
39 }; | 39 }; |
40 | 40 |
41 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_ | 41 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_ |
OLD | NEW |