summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webdatasource.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webdatasource.h')
-rw-r--r--webkit/glue/webdatasource.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/webkit/glue/webdatasource.h b/webkit/glue/webdatasource.h
index 3bd29d1..70c4283 100644
--- a/webkit/glue/webdatasource.h
+++ b/webkit/glue/webdatasource.h
@@ -14,8 +14,22 @@ class SearchableFormData;
class WebFrame;
class WebRequest;
class WebResponse;
+
+namespace base {
+class Time;
+}
+
struct PasswordForm;
+enum WebNavigationType {
+ WebNavigationTypeLinkClicked,
+ WebNavigationTypeFormSubmitted,
+ WebNavigationTypeBackForward,
+ WebNavigationTypeReload,
+ WebNavigationTypeFormResubmitted,
+ WebNavigationTypeOther
+};
+
class WebDataSource {
public:
virtual ~WebDataSource() {}
@@ -81,6 +95,30 @@ class WebDataSource {
// Returns the page title.
virtual string16 GetPageTitle() const = 0;
+
+ // Returns the time the document was request by the user.
+ virtual base::Time GetRequestTime() const = 0;
+
+ // Sets the request time. This is used to override the default behavior
+ // if the client knows more about the origination of the request than the
+ // underlying mechanism could.
+ virtual void SetRequestTime(base::Time time) = 0;
+
+ // Returns the time we started loading the page. This corresponds to
+ // the DidStartProvisionalLoadForFrame delegate notification.
+ virtual base::Time GetStartLoadTime() const = 0;
+
+ // Returns the time the document itself was finished loading. This corresponds
+ // to the DidFinishDocumentLoadForFrame delegate notification.
+ virtual base::Time GetFinishDocumentLoadTime() const = 0;
+
+ // Returns the time all dependent resources have been loaded and onload()
+ // has been called. This corresponds to the DidFinishLoadForFrame delegate
+ // notification.
+ virtual base::Time GetFinishLoadTime() const = 0;
+
+ // Returns the reason the document was loaded.
+ virtual WebNavigationType GetNavigationType() const = 0;
};
#endif // #ifndef WEBKIT_GLUE_WEBDATASOURCE_H_