Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Unified Diff: components/html_viewer/document_resource_waiter.h

Issue 1391963004: Correctly record and pass around navigation start time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/ax_provider_apptest.cc ('k') | components/html_viewer/document_resource_waiter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/document_resource_waiter.h
diff --git a/components/html_viewer/document_resource_waiter.h b/components/html_viewer/document_resource_waiter.h
index 77845487a89978e2848a0ea8393a2cb4a2de27be..948359a7b812caca341b19a10fa57edcdbcd3a69 100644
--- a/components/html_viewer/document_resource_waiter.h
+++ b/components/html_viewer/document_resource_waiter.h
@@ -6,6 +6,7 @@
#define COMPONENTS_HTML_VIEWER_DOCUMENT_RESOURCE_WAITER_H_
#include "base/basictypes.h"
+#include "base/time/time.h"
#include "components/html_viewer/html_frame_tree_manager_observer.h"
#include "components/mus/public/cpp/view_observer.h"
#include "components/web_view/public/interfaces/frame.mojom.h"
@@ -51,6 +52,10 @@ class DocumentResourceWaiter : public web_view::mojom::FrameClient,
// See class description.
bool is_ready() const { return is_ready_; }
+ base::TimeTicks navigation_start_time() const {
+ return navigation_start_time_;
+ }
+
void SetRoot(mus::View* root);
mus::View* root() { return root_; }
@@ -66,6 +71,7 @@ class DocumentResourceWaiter : public web_view::mojom::FrameClient,
uint32_t view_id,
web_view::mojom::ViewConnectType view_connect_type,
mojo::Array<web_view::mojom::FrameDataPtr> frame_data,
+ int64_t navigation_start_time_ticks,
const OnConnectCallback& callback) override;
void OnFrameAdded(uint32_t change_id,
web_view::mojom::FrameDataPtr frame_data) override;
@@ -111,6 +117,7 @@ class DocumentResourceWaiter : public web_view::mojom::FrameClient,
mojo::Array<web_view::mojom::FrameDataPtr> frame_data_;
uint32_t change_id_;
uint32_t view_id_;
+ base::TimeTicks navigation_start_time_;
web_view::mojom::ViewConnectType view_connect_type_;
OnConnectCallback on_connect_callback_;
« no previous file with comments | « components/html_viewer/ax_provider_apptest.cc ('k') | components/html_viewer/document_resource_waiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698