OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_ |
| 6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 |
| 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 |
| 14 // surrounding text. |
| 15 struct ResolvedSearchTerm { |
| 16 public: |
| 17 ResolvedSearchTerm(bool is_invalid, |
| 18 int response_code, |
| 19 const std::string& search_term, |
| 20 const std::string& display_text, |
| 21 const std::string& alternate_term, |
| 22 bool prevent_preload, |
| 23 int selection_start_adjust, |
| 24 int selection_end_adjust, |
| 25 const std::string& context_language); |
| 26 ~ResolvedSearchTerm(); |
| 27 |
| 28 const bool is_invalid; |
| 29 const int response_code; |
| 30 const std::string& search_term; |
| 31 const std::string& display_text; |
| 32 const std::string& alternate_term; |
| 33 const bool prevent_preload; |
| 34 const int selection_start_adjust; |
| 35 const int selection_end_adjust; |
| 36 const std::string& context_language; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(ResolvedSearchTerm); |
| 39 }; |
| 40 |
| 41 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_ |
OLD | NEW |