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

Side by Side Diff: components/web_view/public/interfaces/frame.mojom

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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module web_view.mojom; 5 module web_view.mojom;
6 6
7 import "network/public/interfaces/url_loader.mojom"; 7 import "network/public/interfaces/url_loader.mojom";
8 8
9 // This files defines the interfaces and structures used for frames. 9 // This files defines the interfaces and structures used for frames.
10 // 10 //
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 // Indicates a new ViewTreeClient is obtained and the View provided to 137 // Indicates a new ViewTreeClient is obtained and the View provided to
138 // OnEmbed() should be used. 138 // OnEmbed() should be used.
139 USE_NEW 139 USE_NEW
140 }; 140 };
141 141
142 interface FrameClient { 142 interface FrameClient {
143 // Called once per client. |frame_data| gives the contents of the tree. 143 // Called once per client. |frame_data| gives the contents of the tree.
144 // |view_id| is the id of the view the FrameClient should render to. If a 144 // |view_id| is the id of the view the FrameClient should render to. If a
145 // ViewTreeClient is asked for then |view_id| is the same id as that of the 145 // ViewTreeClient is asked for then |view_id| is the same id as that of the
146 // View supplied to ViewTreeClient::OnEmbed(). 146 // View supplied to ViewTreeClient::OnEmbed(). |navigation_start_time_ticks|
147 // is the time when the navigation resulting in this OnConnect() call was
148 // started.
147 OnConnect(Frame? frame, 149 OnConnect(Frame? frame,
148 uint32 change_id, 150 uint32 change_id,
149 uint32 view_id, 151 uint32 view_id,
150 ViewConnectType view_connect_type, 152 ViewConnectType view_connect_type,
151 array<FrameData>? frame_data) => (); 153 array<FrameData>? frame_data,
154 int64 navigation_start_time_ticks) => ();
152 155
153 // Called when a new frame is added to the tree. 156 // Called when a new frame is added to the tree.
154 OnFrameAdded(uint32 change_id, FrameData frame_data); 157 OnFrameAdded(uint32 change_id, FrameData frame_data);
155 158
156 // Called when a frame is removed from the tree. 159 // Called when a frame is removed from the tree.
157 OnFrameRemoved(uint32 change_id, uint32 frame_id); 160 OnFrameRemoved(uint32 change_id, uint32 frame_id);
158 161
159 // Called when a client property changes. 162 // Called when a client property changes.
160 OnFrameClientPropertyChanged(uint32 frame_id, 163 OnFrameClientPropertyChanged(uint32 frame_id,
161 string name, 164 string name,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // 213 //
211 // HighlightFindResults() will asynchronously call 214 // HighlightFindResults() will asynchronously call
212 // OnFindInFrameCountUpdated() multiple times to report its progress. 215 // OnFindInFrameCountUpdated() multiple times to report its progress.
213 HighlightFindResults(int32 request_id, string search_text, 216 HighlightFindResults(int32 request_id, string search_text,
214 FindOptions options, bool reset); 217 FindOptions options, bool reset);
215 218
216 // Removes the tick marks and highlighting done by HighlightFindResults() in 219 // Removes the tick marks and highlighting done by HighlightFindResults() in
217 // this frame. 220 // this frame.
218 StopHighlightingFindResults(); 221 StopHighlightingFindResults();
219 }; 222 };
OLDNEW
« no previous file with comments | « components/web_view/pending_web_view_load.cc ('k') | components/web_view/url_request_cloneable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698