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 CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // This struct encapsulates arguments passed to | 53 // This struct encapsulates arguments passed to |
54 // TemplateURLRef::ReplaceSearchTerms methods. By default, only search_terms | 54 // TemplateURLRef::ReplaceSearchTerms methods. By default, only search_terms |
55 // is required and is passed in the constructor. | 55 // is required and is passed in the constructor. |
56 struct SearchTermsArgs { | 56 struct SearchTermsArgs { |
57 explicit SearchTermsArgs(const string16& search_terms); | 57 explicit SearchTermsArgs(const string16& search_terms); |
58 ~SearchTermsArgs(); | 58 ~SearchTermsArgs(); |
59 | 59 |
60 // The search terms (query). | 60 // The search terms (query). |
61 const string16 search_terms; | 61 const string16 search_terms; |
| 62 |
62 // The original (input) query. | 63 // The original (input) query. |
63 string16 original_query; | 64 string16 original_query; |
| 65 |
64 // The optional assisted query stats, aka AQS, used for logging purposes. | 66 // The optional assisted query stats, aka AQS, used for logging purposes. |
65 // This string contains impressions of all autocomplete matches shown | 67 // This string contains impressions of all autocomplete matches shown |
66 // at the query submission time. For privacy reasons, we require the | 68 // at the query submission time. For privacy reasons, we require the |
67 // search provider to support HTTPS protocol in order to receive the AQS | 69 // search provider to support HTTPS protocol in order to receive the AQS |
68 // param. | 70 // param. |
69 // For more details, see http://goto.google.com/binary-clients-logging . | 71 // For more details, see http://goto.google.com/binary-clients-logging . |
70 std::string assisted_query_stats; | 72 std::string assisted_query_stats; |
71 | 73 |
72 // TODO: Remove along with "aq" CGI param. | 74 // TODO: Remove along with "aq" CGI param. |
73 int accepted_suggestion; | 75 int accepted_suggestion; |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 TemplateURLRef url_ref_; | 583 TemplateURLRef url_ref_; |
582 TemplateURLRef suggestions_url_ref_; | 584 TemplateURLRef suggestions_url_ref_; |
583 TemplateURLRef instant_url_ref_; | 585 TemplateURLRef instant_url_ref_; |
584 | 586 |
585 // TODO(sky): Add date last parsed OSD file. | 587 // TODO(sky): Add date last parsed OSD file. |
586 | 588 |
587 DISALLOW_COPY_AND_ASSIGN(TemplateURL); | 589 DISALLOW_COPY_AND_ASSIGN(TemplateURL); |
588 }; | 590 }; |
589 | 591 |
590 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ | 592 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ |
OLD | NEW |