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_SEARCH_HOST_TO_URLS_MAP_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_HOST_TO_URLS_MAP_H_ |
6 #define COMPONENTS_SEARCH_ENGINES_SEARCH_HOST_TO_URLS_MAP_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_SEARCH_HOST_TO_URLS_MAP_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/macros.h" |
13 #include "components/search_engines/template_url_service.h" | 13 #include "components/search_engines/template_url_service.h" |
14 | 14 |
15 // Holds the host to template url mappings for the search providers. WARNING: | 15 // Holds the host to template url mappings for the search providers. WARNING: |
16 // This class does not own any TemplateURLs passed to it and it is up to the | 16 // This class does not own any TemplateURLs passed to it and it is up to the |
17 // caller to ensure the right lifetime of them. | 17 // caller to ensure the right lifetime of them. |
18 class SearchHostToURLsMap { | 18 class SearchHostToURLsMap { |
19 public: | 19 public: |
20 typedef std::set<TemplateURL*> TemplateURLSet; | 20 typedef std::set<TemplateURL*> TemplateURLSet; |
21 | 21 |
22 SearchHostToURLsMap(); | 22 SearchHostToURLsMap(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // The security origin for the default search provider. | 57 // The security origin for the default search provider. |
58 std::string default_search_origin_; | 58 std::string default_search_origin_; |
59 | 59 |
60 // Has Init been called? | 60 // Has Init been called? |
61 bool initialized_; | 61 bool initialized_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(SearchHostToURLsMap); | 63 DISALLOW_COPY_AND_ASSIGN(SearchHostToURLsMap); |
64 }; | 64 }; |
65 | 65 |
66 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_HOST_TO_URLS_MAP_H_ | 66 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_HOST_TO_URLS_MAP_H_ |
OLD | NEW |