Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: components/ntp_snippets/remote/json_request.h

Issue 2771813002: RemoteSuggestionsFetcher: Remove ChromeReader integration (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ntp_snippets/ntp_snippets_constants.cc ('k') | components/ntp_snippets/remote/json_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « components/ntp_snippets/ntp_snippets_constants.cc ('k') | components/ntp_snippets/remote/json_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698