| 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 #ifndef COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_ |
| 6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // old suggestions by the new ones. The request to the server is performed as | 30 // old suggestions by the new ones. The request to the server is performed as |
| 31 // an background request. Background requests are used for actions not | 31 // an background request. Background requests are used for actions not |
| 32 // triggered by the user and have lower priority on the server. After the | 32 // triggered by the user and have lower priority on the server. After the |
| 33 // fetch finished, the provided |callback| will be triggered with the status | 33 // fetch finished, the provided |callback| will be triggered with the status |
| 34 // of the fetch (unless nullptr). | 34 // of the fetch (unless nullptr). |
| 35 virtual void RefetchInTheBackground(const FetchStatusCallback& callback) = 0; | 35 virtual void RefetchInTheBackground(const FetchStatusCallback& callback) = 0; |
| 36 | 36 |
| 37 virtual const RemoteSuggestionsFetcher* suggestions_fetcher_for_debugging() | 37 virtual const RemoteSuggestionsFetcher* suggestions_fetcher_for_debugging() |
| 38 const = 0; | 38 const = 0; |
| 39 | 39 |
| 40 // Get the url with favicon for the suggestion. |
| 41 virtual GURL GetUrlWithFavicon( |
| 42 const ContentSuggestion::ID& suggestion_id) const = 0; |
| 43 |
| 40 protected: | 44 protected: |
| 41 RemoteSuggestionsProvider(Observer* observer); | 45 RemoteSuggestionsProvider(Observer* observer); |
| 42 }; | 46 }; |
| 43 | 47 |
| 44 } // namespace ntp_snippets | 48 } // namespace ntp_snippets |
| 45 | 49 |
| 46 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_ | 50 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_ |
| OLD | NEW |