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

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

Issue 2735183003: PlzNavigate: stop navigations when opening a document for write (Closed)
Patch Set: Created 3 years, 9 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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ui::PageTransition page_transition, 81 ui::PageTransition page_transition,
82 const GlobalRequestID& transferred_global_request_id, 82 const GlobalRequestID& transferred_global_request_id,
83 bool should_replace_current_entry, 83 bool should_replace_current_entry,
84 const std::string& method, 84 const std::string& method,
85 scoped_refptr<ResourceRequestBodyImpl> post_body, 85 scoped_refptr<ResourceRequestBodyImpl> post_body,
86 const std::string& extra_headers) override; 86 const std::string& extra_headers) override;
87 void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, bool proceed) override; 87 void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, bool proceed) override;
88 void OnBeginNavigation(FrameTreeNode* frame_tree_node, 88 void OnBeginNavigation(FrameTreeNode* frame_tree_node,
89 const CommonNavigationParams& common_params, 89 const CommonNavigationParams& common_params,
90 const BeginNavigationParams& begin_params) override; 90 const BeginNavigationParams& begin_params) override;
91 void OnAbortNavigation(FrameTreeNode* frame_tree_node) override;
91 void LogResourceRequestTime(base::TimeTicks timestamp, 92 void LogResourceRequestTime(base::TimeTicks timestamp,
92 const GURL& url) override; 93 const GURL& url) override;
93 void LogBeforeUnloadTime( 94 void LogBeforeUnloadTime(
94 const base::TimeTicks& renderer_before_unload_start_time, 95 const base::TimeTicks& renderer_before_unload_start_time,
95 const base::TimeTicks& renderer_before_unload_end_time) override; 96 const base::TimeTicks& renderer_before_unload_end_time) override;
96 void CancelNavigation(FrameTreeNode* frame_tree_node) override; 97 void CancelNavigation(FrameTreeNode* frame_tree_node) override;
97 void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) override; 98 void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) override;
98 99
99 private: 100 private:
100 // Holds data used to track browser side navigation metrics. 101 // Holds data used to track browser side navigation metrics.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 NavigatorDelegate* delegate_; 155 NavigatorDelegate* delegate_;
155 156
156 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; 157 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_;
157 158
158 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); 159 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl);
159 }; 160 };
160 161
161 } // namespace content 162 } // namespace content
162 163
163 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 164 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698