diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-16 19:50:56 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-16 19:50:56 +0000 |
commit | ed3fb034eb4b7da69bbc4f3e3da47093dabc481e (patch) | |
tree | d08b2837ab8b05b98fef6990edd26a9d00465589 /webkit/glue/webdatasource_impl.cc | |
parent | 5eb55c2f42f70fe544a04d200cdd059377d310f7 (diff) | |
download | chromium_src-ed3fb034eb4b7da69bbc4f3e3da47093dabc481e.zip chromium_src-ed3fb034eb4b7da69bbc4f3e3da47093dabc481e.tar.gz chromium_src-ed3fb034eb4b7da69bbc4f3e3da47093dabc481e.tar.bz2 |
Extract load times from WebDataSource. Move them to NavigationState.
Move PasswordForm into the webkit_glue namespace.
TEST=none
BUG=10041
R=brettw
Review URL: http://codereview.chromium.org/126190
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18515 0039d316-1c4b-4281-b951-d872f2087c98
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 { |