Index: third_party/WebKit/WebCore/page/FrameLoadRequest.h |
=================================================================== |
--- third_party/WebKit/WebCore/page/FrameLoadRequest.h (revision 57160) |
+++ third_party/WebKit/WebCore/page/FrameLoadRequest.h (working copy) |
@@ -33,17 +33,23 @@ |
struct FrameLoadRequest { |
public: |
FrameLoadRequest() |
+ : m_fromUserGestureSet(false) |
+ , m_fromUserGesture(false) |
{ |
} |
FrameLoadRequest(const ResourceRequest& resourceRequest) |
: m_resourceRequest(resourceRequest) |
+ , m_fromUserGestureSet(false) |
+ , m_fromUserGesture(false) |
{ |
} |
FrameLoadRequest(const ResourceRequest& resourceRequest, const String& frameName) |
: m_resourceRequest(resourceRequest) |
, m_frameName(frameName) |
+ , m_fromUserGestureSet(false) |
+ , m_fromUserGesture(false) |
{ |
} |
@@ -54,10 +60,15 @@ |
const String& frameName() const { return m_frameName; } |
void setFrameName(const String& frameName) { m_frameName = frameName; } |
+ bool isFromUserGestureSet() const { return m_fromUserGestureSet; } |
+ bool isFromUserGesture() const { ASSERT(m_fromUserGestureSet); return m_fromUserGesture; } |
+ void setIsFromUserGesture(bool b) { m_fromUserGestureSet = true; m_fromUserGesture = b; } |
private: |
ResourceRequest m_resourceRequest; |
String m_frameName; |
+ bool m_fromUserGestureSet; |
+ bool m_fromUserGesture; |
}; |
} |