| 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 #include "chrome/browser/search_engines/search_host_to_urls_map.h" | 5 #include "components/search_engines/search_host_to_urls_map.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "components/search_engines/template_url.h" | 8 #include "components/search_engines/template_url.h" |
| 9 | 9 |
| 10 SearchHostToURLsMap::SearchHostToURLsMap() | 10 SearchHostToURLsMap::SearchHostToURLsMap() |
| 11 : initialized_(false) { | 11 : initialized_(false) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 SearchHostToURLsMap::~SearchHostToURLsMap() { | 14 SearchHostToURLsMap::~SearchHostToURLsMap() { |
| 15 } | 15 } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 return &urls_for_host->second; | 72 return &urls_for_host->second; |
| 73 } | 73 } |
| 74 | 74 |
| 75 void SearchHostToURLsMap::Add( | 75 void SearchHostToURLsMap::Add( |
| 76 const TemplateURLService::TemplateURLVector& template_urls, | 76 const TemplateURLService::TemplateURLVector& template_urls, |
| 77 const SearchTermsData& search_terms_data) { | 77 const SearchTermsData& search_terms_data) { |
| 78 for (TemplateURLService::TemplateURLVector::const_iterator i( | 78 for (TemplateURLService::TemplateURLVector::const_iterator i( |
| 79 template_urls.begin()); i != template_urls.end(); ++i) | 79 template_urls.begin()); i != template_urls.end(); ++i) |
| 80 Add(*i, search_terms_data); | 80 Add(*i, search_terms_data); |
| 81 } | 81 } |
| OLD | NEW |