| Index: components/ntp_snippets/remote/json_request.h
|
| diff --git a/components/ntp_snippets/remote/json_request.h b/components/ntp_snippets/remote/json_request.h
|
| index 571268f72ca90322bfcfb253da83a80a250b9635..849df611b6bac4e1ccdd89c378ddedc8499fa4b8 100644
|
| --- a/components/ntp_snippets/remote/json_request.h
|
| +++ b/components/ntp_snippets/remote/json_request.h
|
| @@ -24,8 +24,6 @@ class Value;
|
| class Clock;
|
| } // namespace base
|
|
|
| -class FetchAPI;
|
| -
|
| namespace ntp_snippets {
|
| class UserClassifier;
|
|
|
| @@ -48,11 +46,6 @@ enum class FetchResult {
|
| RESULT_MAX = 10
|
| };
|
|
|
| -enum FetchAPI {
|
| - CHROME_READER_API,
|
| - CHROME_CONTENT_SUGGESTIONS_API,
|
| -};
|
| -
|
| // A single request to query remote suggestions. On success, the suggestions are
|
| // returned in parsed JSON form (base::Value).
|
| class JsonRequest : public net::URLFetcherDelegate {
|
| @@ -77,7 +70,6 @@ class JsonRequest : public net::URLFetcherDelegate {
|
| Builder& SetAuthentication(const std::string& account_id,
|
| const std::string& auth_header);
|
| Builder& SetCreationTime(base::TimeTicks creation_time);
|
| - Builder& SetFetchAPI(FetchAPI fetch_api);
|
| // The language_model borrowed from the fetcher needs to stay alive until
|
| // the request body is built.
|
| Builder& SetLanguageModel(const translate::LanguageModel* language_model);
|
| @@ -118,7 +110,6 @@ class JsonRequest : public net::URLFetcherDelegate {
|
| // Only required, if the request needs to be sent.
|
| std::string auth_header_;
|
| base::Clock* clock_;
|
| - FetchAPI fetch_api_;
|
| RequestParams params_;
|
| ParseJSONCallback parse_json_callback_;
|
| GURL url_;
|
|
|