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

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

Issue 874353003: New TimeToFirstURLJob* navigation metrics now work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_NAVIGATOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
7 7
8 #include "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 bool should_replace_current_entry, 71 bool should_replace_current_entry,
72 bool user_gesture) override; 72 bool user_gesture) override;
73 void OnBeginNavigation(FrameTreeNode* frame_tree_node, 73 void OnBeginNavigation(FrameTreeNode* frame_tree_node,
74 const FrameHostMsg_BeginNavigation_Params& params, 74 const FrameHostMsg_BeginNavigation_Params& params,
75 const CommonNavigationParams& common_params) override; 75 const CommonNavigationParams& common_params) override;
76 void CommitNavigation(FrameTreeNode* frame_tree_node, 76 void CommitNavigation(FrameTreeNode* frame_tree_node,
77 ResourceResponse* response, 77 ResourceResponse* response,
78 scoped_ptr<StreamHandle> body) override; 78 scoped_ptr<StreamHandle> body) override;
79 void LogResourceRequestTime(base::TimeTicks timestamp, 79 void LogResourceRequestTime(base::TimeTicks timestamp,
80 const GURL& url) override; 80 const GURL& url) override;
81 void LogAboutToBeginNavigation(base::TimeTicks timestamp) override;
81 void LogBeforeUnloadTime( 82 void LogBeforeUnloadTime(
82 const base::TimeTicks& renderer_before_unload_start_time, 83 const base::TimeTicks& renderer_before_unload_start_time,
83 const base::TimeTicks& renderer_before_unload_end_time) override; 84 const base::TimeTicks& renderer_before_unload_end_time) override;
84 void CancelNavigation(FrameTreeNode* frame_tree_node) override; 85 void CancelNavigation(FrameTreeNode* frame_tree_node) override;
85 bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node) override; 86 bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node) override;
86 87
87 // PlzNavigate 88 // PlzNavigate
88 // Returns the navigation request for a given node. Used in tests. 89 // Returns the navigation request for a given node. Used in tests.
89 NavigationRequest* GetNavigationRequestForNodeForTesting( 90 NavigationRequest* GetNavigationRequestForNodeForTesting(
90 FrameTreeNode* frame_tree_node); 91 FrameTreeNode* frame_tree_node);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // different FrameTreeNodes, based on the frame_tree_node_id. 139 // different FrameTreeNodes, based on the frame_tree_node_id.
139 typedef base::ScopedPtrHashMap<int64, NavigationRequest> NavigationRequestMap; 140 typedef base::ScopedPtrHashMap<int64, NavigationRequest> NavigationRequestMap;
140 NavigationRequestMap navigation_request_map_; 141 NavigationRequestMap navigation_request_map_;
141 142
142 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); 143 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl);
143 }; 144 };
144 145
145 } // namespace content 146 } // namespace content
146 147
147 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 148 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698