| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "chrome/browser/search_engines/search_engine_type.h" | 14 #include "chrome/browser/search_engines/search_engine_type.h" |
| 15 #include "chrome/browser/search_engines/template_url_id.h" | 15 #include "chrome/browser/search_engines/template_url_id.h" |
| 16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 17 | 17 |
| 18 class PrefService; | 18 class PrefService; |
| 19 class Profile; | 19 class Profile; |
| 20 class SearchTermsData; | 20 class SearchTermsData; |
| 21 class TemplateURL; | 21 class TemplateURL; |
| 22 class WebDataService; | 22 class WebDataService; |
| 23 struct WDKeywordsResult; | |
| 24 | 23 |
| 25 // TemplateURL represents the relevant portions of the Open Search Description | 24 // TemplateURL represents the relevant portions of the Open Search Description |
| 26 // Document (http://www.opensearch.org/Specifications/OpenSearch). | 25 // Document (http://www.opensearch.org/Specifications/OpenSearch). |
| 27 // The main use case for TemplateURL is to use the TemplateURLRef returned by | 26 // The main use case for TemplateURL is to use the TemplateURLRef returned by |
| 28 // suggestions_url or url for keyword/suggestion expansion: | 27 // suggestions_url or url for keyword/suggestion expansion: |
| 29 // . suggestions_url describes a URL that is ideal for as you type suggestions. | 28 // . suggestions_url describes a URL that is ideal for as you type suggestions. |
| 30 // The returned results are in the mime type application/x-suggestions+json. | 29 // The returned results are in the mime type application/x-suggestions+json. |
| 31 // . url describes a URL that may be used as a shortcut. Returned results are | 30 // . url describes a URL that may be used as a shortcut. Returned results are |
| 32 // are text/html. | 31 // are text/html. |
| 33 // Before using either one, make sure it's non-NULL, and if you intend to use | 32 // Before using either one, make sure it's non-NULL, and if you intend to use |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 int logo_id_; | 550 int logo_id_; |
| 552 int prepopulate_id_; | 551 int prepopulate_id_; |
| 553 // The primary unique identifier for Sync. This is only set on TemplateURLs | 552 // The primary unique identifier for Sync. This is only set on TemplateURLs |
| 554 // that have been associated with Sync. | 553 // that have been associated with Sync. |
| 555 std::string sync_guid_; | 554 std::string sync_guid_; |
| 556 | 555 |
| 557 // TODO(sky): Add date last parsed OSD file. | 556 // TODO(sky): Add date last parsed OSD file. |
| 558 }; | 557 }; |
| 559 | 558 |
| 560 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ | 559 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ |
| OLD | NEW |