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

Unified Diff: content/public/browser/resource_request_info.h

Issue 650043002: Improve ResourceRequestInfo::HasUserGesture API docs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 6 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/resource_request_info.h
diff --git a/content/public/browser/resource_request_info.h b/content/public/browser/resource_request_info.h
index 6c86846547ec28c6c1aa714079676c1e3f21cbaa..00be9c7ceb9c6ad21123bd46ddc180f11bf6e11b 100644
--- a/content/public/browser/resource_request_info.h
+++ b/content/public/browser/resource_request_info.h
@@ -98,6 +98,13 @@ class ResourceRequestInfo {
// True if the request was initiated by a user action (like a tap to follow
// a link).
+ //
+ // Note that a false value does not mean the request was not initiated by a
+ // user gesture. Also note that the fact that a user gesture was active
+ // while the request was created does not imply that the user consciously
+ // wanted this request to happen nor is aware of it.
+ //
+ // DO NOT BASE SECURITY DECISIONS ON THIS FLAG!
mkosiba (inactive) 2014/10/17 08:54:33 Yes, you should be especially wary of using this t
Randy Smith (Not in Mondays) 2014/10/20 14:20:46 We'd welcome other other suggestions as to how to
virtual bool HasUserGesture() const = 0;
// True if ResourceController::CancelAndIgnore() was called. For example,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698