Index: components/html_viewer/html_frame.h |
diff --git a/components/html_viewer/html_frame.h b/components/html_viewer/html_frame.h |
index 2003bcc5ba754a8cd020f8879d421bbdb4db94fe..4e4a1285030365d91cad8c6d3eb56a0d659f6f35 100644 |
--- a/components/html_viewer/html_frame.h |
+++ b/components/html_viewer/html_frame.h |
@@ -9,6 +9,7 @@ |
#include "base/basictypes.h" |
#include "base/memory/scoped_ptr.h" |
+#include "base/time/time.h" |
#include "cc/layers/surface_layer.h" |
#include "components/html_viewer/html_frame_tree_manager.h" |
#include "components/html_viewer/replicated_frame_state.h" |
@@ -147,7 +148,8 @@ class HTMLFrame : public blink::WebFrameClient, |
// Returns true if this or one of the frames descendants is local. |
bool HasLocalDescendant() const; |
- void LoadRequest(const blink::WebURLRequest& request); |
+ void LoadRequest(const blink::WebURLRequest& request, |
+ base::TimeTicks navigation_start_time); |
protected: |
virtual ~HTMLFrame(); |
@@ -276,6 +278,7 @@ class HTMLFrame : public blink::WebFrameClient, |
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; |
@@ -361,6 +364,8 @@ class HTMLFrame : public blink::WebFrameClient, |
// received response to it. |
bool pending_navigation_; |
+ base::TimeTicks navigation_start_time_; |
+ |
base::WeakPtrFactory<HTMLFrame> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(HTMLFrame); |