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

Unified Diff: components/ntp_snippets/ntp_snippets_fetcher.h

Issue 2292963002: Add request type to FetchSuggestionsRequest. (Closed)
Patch Set: Created 4 years, 4 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 | « no previous file | components/ntp_snippets/ntp_snippets_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/ntp_snippets_fetcher.h
diff --git a/components/ntp_snippets/ntp_snippets_fetcher.h b/components/ntp_snippets/ntp_snippets_fetcher.h
index 0cf2b550be9ee57e101a23558868da650f5277bc..f0800cd5699b5550f56d5533cf03c9fbe18fc545 100644
--- a/components/ntp_snippets/ntp_snippets_fetcher.h
+++ b/components/ntp_snippets/ntp_snippets_fetcher.h
@@ -156,6 +156,7 @@ class NTPSnippetsFetcher : public OAuth2TokenService::Consumer,
std::set<std::string> host_restricts;
std::set<std::string> excluded_ids;
int count_to_fetch;
+ bool interactive_request;
RequestParams();
~RequestParams();
@@ -238,6 +239,9 @@ class NTPSnippetsFetcher : public OAuth2TokenService::Consumer,
// Should we apply host restriction? It is loaded from variation parameters.
bool use_host_restriction_;
+ // Is the request user initiated?
+ bool interactive_request_;
+
// Allow for an injectable tick clock for testing.
std::unique_ptr<base::TickClock> tick_clock_;
« no previous file with comments | « no previous file | components/ntp_snippets/ntp_snippets_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698