OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ |
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
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/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "components/metrics/proto/omnibox_event.pb.h" | 15 #include "components/metrics/proto/omnibox_event.pb.h" |
16 #include "components/metrics/proto/omnibox_input_type.pb.h" | 16 #include "components/metrics/proto/omnibox_input_type.pb.h" |
17 #include "components/search_engines/template_url_data.h" | 17 #include "components/search_engines/template_url_data.h" |
18 #include "components/search_engines/template_url_id.h" | 18 #include "components/search_engines/template_url_id.h" |
19 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 #include "url/url_parse.h" | 21 #include "url/third_party/mozilla/url_parse.h" |
22 | 22 |
23 class SearchTermsData; | 23 class SearchTermsData; |
24 class TemplateURL; | 24 class TemplateURL; |
25 | 25 |
26 | 26 |
27 // TemplateURLRef ------------------------------------------------------------- | 27 // TemplateURLRef ------------------------------------------------------------- |
28 | 28 |
29 // A TemplateURLRef represents a single URL within the larger TemplateURL class | 29 // A TemplateURLRef represents a single URL within the larger TemplateURL class |
30 // (which represents an entire "search engine", see below). If | 30 // (which represents an entire "search engine", see below). If |
31 // SupportsReplacement() is true, this URL has placeholders in it, for which | 31 // SupportsReplacement() is true, this URL has placeholders in it, for which |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 TemplateURLRef new_tab_url_ref_; | 739 TemplateURLRef new_tab_url_ref_; |
740 TemplateURLRef contextual_search_url_ref_; | 740 TemplateURLRef contextual_search_url_ref_; |
741 scoped_ptr<AssociatedExtensionInfo> extension_info_; | 741 scoped_ptr<AssociatedExtensionInfo> extension_info_; |
742 | 742 |
743 // TODO(sky): Add date last parsed OSD file. | 743 // TODO(sky): Add date last parsed OSD file. |
744 | 744 |
745 DISALLOW_COPY_AND_ASSIGN(TemplateURL); | 745 DISALLOW_COPY_AND_ASSIGN(TemplateURL); |
746 }; | 746 }; |
747 | 747 |
748 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ | 748 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ |
OLD | NEW |