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

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: Rebase. 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 eafc462999e8e27da69395fd94145ad2ef58d5a6..c32289cf884454e715cb4c524db45282d11f0a40 100644
--- a/components/ntp_snippets/ntp_snippets_fetcher.h
+++ b/components/ntp_snippets/ntp_snippets_fetcher.h
@@ -154,6 +154,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();
@@ -236,6 +237,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