| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" | 5 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "base/values.h" | 22 #include "base/values.h" |
| 23 #include "components/data_use_measurement/core/data_use_user_data.h" | 23 #include "components/data_use_measurement/core/data_use_user_data.h" |
| 24 #include "components/image_fetcher/image_decoder.h" | 24 #include "components/image_fetcher/image_decoder.h" |
| 25 #include "components/image_fetcher/image_fetcher.h" | 25 #include "components/image_fetcher/image_fetcher.h" |
| 26 #include "components/ntp_snippets/category_rankers/category_ranker.h" | 26 #include "components/ntp_snippets/category_rankers/category_ranker.h" |
| 27 #include "components/ntp_snippets/pref_names.h" | 27 #include "components/ntp_snippets/pref_names.h" |
| 28 #include "components/ntp_snippets/remote/remote_suggestions_database.h" | 28 #include "components/ntp_snippets/remote/remote_suggestions_database.h" |
| 29 #include "components/ntp_snippets/switches.h" | 29 #include "components/ntp_snippets/switches.h" |
| 30 #include "components/prefs/pref_registry_simple.h" | 30 #include "components/prefs/pref_registry_simple.h" |
| 31 #include "components/prefs/pref_service.h" | 31 #include "components/prefs/pref_service.h" |
| 32 #include "grit/components_strings.h" | 32 #include "components/strings/grit/components_strings.h" |
| 33 #include "ui/gfx/image/image.h" | 33 #include "ui/gfx/image/image.h" |
| 34 | 34 |
| 35 namespace ntp_snippets { | 35 namespace ntp_snippets { |
| 36 | 36 |
| 37 namespace { | 37 namespace { |
| 38 | 38 |
| 39 // Number of suggestions requested to the server. Consider replacing sparse UMA | 39 // Number of suggestions requested to the server. Consider replacing sparse UMA |
| 40 // histograms with COUNTS() if this number increases beyond 50. | 40 // histograms with COUNTS() if this number increases beyond 50. |
| 41 const int kMaxSuggestionCount = 10; | 41 const int kMaxSuggestionCount = 10; |
| 42 | 42 |
| (...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1270 RemoteSuggestionsProviderImpl::CategoryContent::CategoryContent( | 1270 RemoteSuggestionsProviderImpl::CategoryContent::CategoryContent( |
| 1271 CategoryContent&&) = default; | 1271 CategoryContent&&) = default; |
| 1272 | 1272 |
| 1273 RemoteSuggestionsProviderImpl::CategoryContent::~CategoryContent() = default; | 1273 RemoteSuggestionsProviderImpl::CategoryContent::~CategoryContent() = default; |
| 1274 | 1274 |
| 1275 RemoteSuggestionsProviderImpl::CategoryContent& | 1275 RemoteSuggestionsProviderImpl::CategoryContent& |
| 1276 RemoteSuggestionsProviderImpl::CategoryContent::operator=(CategoryContent&&) = | 1276 RemoteSuggestionsProviderImpl::CategoryContent::operator=(CategoryContent&&) = |
| 1277 default; | 1277 default; |
| 1278 | 1278 |
| 1279 } // namespace ntp_snippets | 1279 } // namespace ntp_snippets |
| OLD | NEW |