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

Side by Side Diff: content/browser/frame_host/navigation_before_commit_info.h

Issue 475783002: PlzNavigate: add cancel navigation logic for uncommitted requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Nasko's comments Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_BEFORE_COMMIT_INFO_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_BEFORE_COMMIT_INFO_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_BEFORE_COMMIT_INFO_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_BEFORE_COMMIT_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/time/time.h"
12 #include "content/common/content_export.h"
11 #include "content/public/common/page_transition_types.h" 13 #include "content/public/common/page_transition_types.h"
12 #include "content/public/common/referrer.h" 14 #include "content/public/common/referrer.h"
13 #include "url/gurl.h" 15 #include "url/gurl.h"
14 16
15 namespace content { 17 namespace content {
16 18
17 // PlzNavigate: 19 // PlzNavigate:
18 // Holds the parameters determined during the load of a navigation request until 20 // Holds the parameters determined during the load of a navigation request until
19 // the response is received. Initialized on the IO thread, then passed to the UI 21 // the response is received. Initialized on the IO thread, then passed to the UI
20 // thread where it should be used to send a FrameMsg_CommitNavigation message to 22 // thread where it should be used to send a FrameMsg_CommitNavigation message to
21 // the renderer. 23 // the renderer.
22 struct NavigationBeforeCommitInfo { 24 struct NavigationBeforeCommitInfo {
23 NavigationBeforeCommitInfo() {}; 25 CONTENT_EXPORT NavigationBeforeCommitInfo();
24 26
25 // The url that is actually being loaded. 27 // The url that is actually being loaded.
26 GURL navigation_url; 28 GURL navigation_url;
27 29
28 // A unique blob url to be subsequently requested by the renderer as the main 30 // A unique blob url to be subsequently requested by the renderer as the main
29 // resource for the frame, that will be used to find the associated stream of 31 // resource for the frame, that will be used to find the associated stream of
30 // data. 32 // data.
31 GURL stream_url; 33 GURL stream_url;
32 34
33 // TODO(clamy): Maybe add the redirect chain if needed by the renderer. 35 // TODO(clamy): Maybe add the redirect chain if needed by the renderer.
34 36
35 // The navigationStart time to expose to JS for this navigation. 37 // The navigationStart time to expose to JS for this navigation.
36 // TODO(clamy): Add the other values that matter to the Navigation Timing API. 38 // TODO(clamy): Add the other values that matter to the Navigation Timing API.
37 base::TimeTicks browser_navigation_start; 39 base::TimeTicks browser_navigation_start;
40
41 // The unique ID of this navigation request.
42 int64 navigation_request_id;
38 }; 43 };
39 44
40 } // namespace content 45 } // namespace content
41 46
42 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_BEFORE_COMMIT_INFO_H_ 47 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_BEFORE_COMMIT_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698