Index: components/ntp_snippets/remote/remote_suggestions_fetcher.h |
diff --git a/components/ntp_snippets/remote/remote_suggestions_fetcher.h b/components/ntp_snippets/remote/remote_suggestions_fetcher.h |
index dc023dc705ab581b30c77acf80390d6530202f8c..6ec66477414101138845191f3b0f045552a2f2ca 100644 |
--- a/components/ntp_snippets/remote/remote_suggestions_fetcher.h |
+++ b/components/ntp_snippets/remote/remote_suggestions_fetcher.h |
@@ -23,6 +23,7 @@ |
#include "components/ntp_snippets/remote/request_throttler.h" |
#include "components/ntp_snippets/status.h" |
#include "components/translate/core/browser/language_model.h" |
+#include "components/version_info/version_info.h" |
#include "net/url_request/url_request_context_getter.h" |
class PrefService; |
@@ -36,6 +37,10 @@ namespace ntp_snippets { |
class UserClassifier; |
+// Returns the appropriate API endpoint for the fetcher, in consideration of |
+// the channel and variation parameters. |
+GURL GetFetchEndpoint(version_info::Channel channel); |
+ |
// TODO(tschumann): BuildArticleCategoryInfo() and BuildRemoteCategoryInfo() |
// don't really belong into this library. However, as the fetcher is |
// providing this data for server-defined remote sections it's a good starting |
@@ -83,6 +88,7 @@ class RemoteSuggestionsFetcher : public OAuth2TokenService::Consumer, |
PrefService* pref_service, |
translate::LanguageModel* language_model, |
const ParseJSONCallback& parse_json_callback, |
+ const GURL& api_endpoint, |
const std::string& api_key, |
const UserClassifier* user_classifier); |
~RemoteSuggestionsFetcher() override; |