diff options
Diffstat (limited to 'webkit/glue/webdatasource_impl.cc')
-rw-r--r-- | webkit/glue/webdatasource_impl.cc | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/webkit/glue/webdatasource_impl.cc b/webkit/glue/webdatasource_impl.cc index c0ace9b..01e174b 100644 --- a/webkit/glue/webdatasource_impl.cc +++ b/webkit/glue/webdatasource_impl.cc @@ -11,8 +11,6 @@ #include "ResourceRequest.h" #undef LOG -#include "base/histogram.h" -#include "base/string_util.h" #include "webkit/glue/glue_util.h" #include "webkit/glue/password_form.h" #include "webkit/glue/webdatasource_impl.h" @@ -20,9 +18,6 @@ #include "webkit/glue/weburlrequest_impl.h" #include "webkit/glue/webview_delegate.h" -using base::TimeDelta; -using base::Time; - // static PassRefPtr<WebDataSourceImpl> WebDataSourceImpl::Create( const WebCore::ResourceRequest& request, @@ -82,28 +77,12 @@ string16 WebDataSourceImpl::GetPageTitle() const { return webkit_glue::StringToString16(title()); } -base::Time WebDataSourceImpl::GetRequestTime() const { - return request_time_; -} - -void WebDataSourceImpl::SetRequestTime(base::Time time) { - request_time_ = time; -} - -base::Time WebDataSourceImpl::GetStartLoadTime() const { - return start_load_time_; -} - -base::Time WebDataSourceImpl::GetFinishDocumentLoadTime() const { - return finish_document_load_time_; -} - -base::Time WebDataSourceImpl::GetFinishLoadTime() const { - return finish_load_time_; -} +double WebDataSourceImpl::GetTriggeringEventTime() const { + if (!triggeringAction().event()) + return 0.0; -base::Time WebDataSourceImpl::GetFirstLayoutTime() const { - return first_layout_time_; + // DOMTimeStamp uses units of milliseconds. + return triggeringAction().event()->timeStamp() / 1000.0; } WebNavigationType WebDataSourceImpl::GetNavigationType() const { |