Index: content/browser/frame_host/navigation_before_commit_info.h |
diff --git a/content/browser/frame_host/navigation_before_commit_info.h b/content/browser/frame_host/navigation_before_commit_info.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f4ca2e7b43302acfabd14eaad4b28d74e39fa993 |
--- /dev/null |
+++ b/content/browser/frame_host/navigation_before_commit_info.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_BEFORE_COMMIT_INFO_H_ |
+#define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_BEFORE_COMMIT_INFO_H_ |
+ |
+#include <string> |
+ |
+#include "base/basictypes.h" |
+#include "content/public/common/page_transition_types.h" |
+#include "content/public/common/referrer.h" |
+#include "url/gurl.h" |
+ |
+namespace content { |
+ |
+// Holds the parameters determined during the load of a navigation request |
Charlie Reis
2014/08/08 20:25:27
Let's add "// PlzNavigate: " here.
clamy
2014/08/12 12:13:15
Done.
|
+// until receiving the response. Initialized on the IO thread, then passed to |
Charlie Reis
2014/08/08 20:25:27
nit: until the response is received.
clamy
2014/08/12 12:13:15
Done.
|
+// the UI thread where it should be used to send a FrameMsg_CommitNavigation |
+// message to the renderer. |
+struct NavigationBeforeCommitInfo { |
+ NavigationBeforeCommitInfo() {}; |
+ |
+ // The url that is actually being loaded. |
+ GURL navigation_url; |
+ |
+ // A unique blob url to be subsequently requested by the renderer as the main |
+ // resource for the frame, that will be used to find the associated stream of |
+ // data. |
+ GURL stream_url; |
+ |
+ // TODO(clamy): Maybe add the redirect chain if needed by the renderer. |
+ |
+ // The navigationStart time to expose to JS for this navigation. |
+ // TODO(clamy): Add the other values that matter to the Navigation Timing API. |
+ base::TimeTicks browser_navigation_start; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_BEFORE_COMMIT_INFO_H_ |