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

Unified Diff: content/browser/frame_host/navigation_entry_impl.h

Issue 1243253004: Pass user gesture bit when chrome handles an intent fired by itself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix findbugs warning Created 5 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: content/browser/frame_host/navigation_entry_impl.h
diff --git a/content/browser/frame_host/navigation_entry_impl.h b/content/browser/frame_host/navigation_entry_impl.h
index 4254e6af432f3e00801b70136cc28dd2a8ad05ab..8aec8152ba7561bee1a805969ab86ce73b054a3b 100644
--- a/content/browser/frame_host/navigation_entry_impl.h
+++ b/content/browser/frame_host/navigation_entry_impl.h
@@ -333,6 +333,14 @@ class CONTENT_EXPORT NavigationEntryImpl
const base::TimeTicks intent_received_timestamp) {
intent_received_timestamp_ = intent_received_timestamp;
}
+
+ bool has_user_gesture() const {
+ return has_user_gesture_;
+ }
+
+ void set_has_user_gesture (bool has_user_gesture) {
+ has_user_gesture_ = has_user_gesture;
+ }
#endif
private:
@@ -460,6 +468,9 @@ class CONTENT_EXPORT NavigationEntryImpl
// The time at which Chrome received the Android Intent that triggered this
// URL load operation. Reset at commit and not persisted.
base::TimeTicks intent_received_timestamp_;
+
+ // Whether the URL load carries a user gesture.
+ bool has_user_gesture_;
#endif
// Used to store extra data to support browser features. This member is not
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl.cc ('k') | content/browser/frame_host/navigation_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698