| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // at the query submission time. For privacy reasons, we require the | 65 // at the query submission time. For privacy reasons, we require the |
| 66 // search provider to support HTTPS protocol in order to receive the AQS | 66 // search provider to support HTTPS protocol in order to receive the AQS |
| 67 // param. | 67 // param. |
| 68 // For more details, see http://goto.google.com/binary-clients-logging . | 68 // For more details, see http://goto.google.com/binary-clients-logging . |
| 69 std::string assisted_query_stats; | 69 std::string assisted_query_stats; |
| 70 | 70 |
| 71 // TODO: Remove along with "aq" CGI param. | 71 // TODO: Remove along with "aq" CGI param. |
| 72 int accepted_suggestion; | 72 int accepted_suggestion; |
| 73 | 73 |
| 74 // The 0-based position of the cursor within the query string at the time | 74 // The 0-based position of the cursor within the query string at the time |
| 75 // the request was issued. Set to string16::npos if not used or after the | 75 // the request was issued. Set to string16::npos if not used. |
| 76 // last character. | |
| 77 size_t cursor_position; | 76 size_t cursor_position; |
| 78 }; | 77 }; |
| 79 | 78 |
| 80 TemplateURLRef(TemplateURL* owner, Type type); | 79 TemplateURLRef(TemplateURL* owner, Type type); |
| 81 TemplateURLRef(TemplateURL* owner, size_t index_in_owner); | 80 TemplateURLRef(TemplateURL* owner, size_t index_in_owner); |
| 82 ~TemplateURLRef(); | 81 ~TemplateURLRef(); |
| 83 | 82 |
| 84 // Returns the raw URL. None of the parameters will have been replaced. | 83 // Returns the raw URL. None of the parameters will have been replaced. |
| 85 std::string GetURL() const; | 84 std::string GetURL() const; |
| 86 | 85 |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 TemplateURLRef url_ref_; | 494 TemplateURLRef url_ref_; |
| 496 TemplateURLRef suggestions_url_ref_; | 495 TemplateURLRef suggestions_url_ref_; |
| 497 TemplateURLRef instant_url_ref_; | 496 TemplateURLRef instant_url_ref_; |
| 498 | 497 |
| 499 // TODO(sky): Add date last parsed OSD file. | 498 // TODO(sky): Add date last parsed OSD file. |
| 500 | 499 |
| 501 DISALLOW_COPY_AND_ASSIGN(TemplateURL); | 500 DISALLOW_COPY_AND_ASSIGN(TemplateURL); |
| 502 }; | 501 }; |
| 503 | 502 |
| 504 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ | 503 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ |
| OLD | NEW |