summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/resource_dispatcher_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/renderer_host/resource_dispatcher_host.h')
-rw-r--r--content/browser/renderer_host/resource_dispatcher_host.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/content/browser/renderer_host/resource_dispatcher_host.h b/content/browser/renderer_host/resource_dispatcher_host.h
index d6c5ce7..27a52ac 100644
--- a/content/browser/renderer_host/resource_dispatcher_host.h
+++ b/content/browser/renderer_host/resource_dispatcher_host.h
@@ -20,6 +20,7 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
+#include "base/time.h"
#include "base/timer.h"
#include "content/browser/renderer_host/resource_queue.h"
#include "content/common/child_process_info.h"
@@ -40,6 +41,7 @@ class ResourceHandler;
class ResourceMessageFilter;
class SaveFileManager;
class SSLClientAuthHandler;
+class TabContents;
class WebKitThread;
struct DownloadSaveInfo;
struct GlobalRequestID;
@@ -201,6 +203,8 @@ class ResourceDispatcherHost : public net::URLRequest::Delegate {
void OnResponseCompleted(net::URLRequest* request);
+ void OnUserGesture(TabContents* tab);
+
// Helper functions to get the dispatcher's request info for the request.
// If the dispatcher didn't create the request then NULL is returned.
static ResourceDispatcherHostRequestInfo* InfoForRequest(
@@ -502,6 +506,11 @@ class ResourceDispatcherHost : public net::URLRequest::Delegate {
// kAvgBytesPerOutstandingRequest)
int max_outstanding_requests_cost_per_process_;
+ // Time of the last user gesture. Stored so that we can add a load
+ // flag to requests occurring soon after a gesture to indicate they
+ // may be because of explicit user action.
+ base::TimeTicks last_user_gesture_time_;
+
// Used during IPC message dispatching so that the handlers can get a pointer
// to the source of the message.
ResourceMessageFilter* filter_;