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

Unified Diff: components/ntp_snippets/ntp_snippets_fetcher.h

Issue 2271283002: Add request type to FetchSuggestionsRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. 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
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 33f6c180ff2cc205d0bee64c7cfe6b7c2af5d015..43a838ce4cce692794abcd42e0bdfcedd253414c 100644
--- a/components/ntp_snippets/ntp_snippets_fetcher.h
+++ b/components/ntp_snippets/ntp_snippets_fetcher.h
@@ -147,6 +147,7 @@ class NTPSnippetsFetcher : public OAuth2TokenService::Consumer,
std::string user_locale;
std::set<std::string> host_restricts;
int count_to_fetch;
+ bool interactive_request;
RequestParams();
~RequestParams();
@@ -226,6 +227,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') | components/ntp_snippets/ntp_snippets_fetcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698