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

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

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: add back previews_unspecified Created 4 years 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/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // PlzNavigate: if needed, sends a BeforeUnload IPC to the renderer to ask it 122 // PlzNavigate: if needed, sends a BeforeUnload IPC to the renderer to ask it
123 // to execute the beforeUnload event. Otherwise, the navigation request will 123 // to execute the beforeUnload event. Otherwise, the navigation request will
124 // be started. 124 // be started.
125 void RequestNavigation(FrameTreeNode* frame_tree_node, 125 void RequestNavigation(FrameTreeNode* frame_tree_node,
126 const GURL& dest_url, 126 const GURL& dest_url,
127 const Referrer& dest_referrer, 127 const Referrer& dest_referrer,
128 const FrameNavigationEntry& frame_entry, 128 const FrameNavigationEntry& frame_entry,
129 const NavigationEntryImpl& entry, 129 const NavigationEntryImpl& entry,
130 ReloadType reload_type, 130 ReloadType reload_type,
131 LoFiState lofi_state, 131 int previews_state,
nasko 2016/12/08 22:19:32 PreviewsState
megjablon 2016/12/09 20:35:54 Done.
132 bool is_same_document_history_load, 132 bool is_same_document_history_load,
133 bool is_history_navigation_in_new_child, 133 bool is_history_navigation_in_new_child,
134 base::TimeTicks navigation_start); 134 base::TimeTicks navigation_start);
135 135
136 void RecordNavigationMetrics( 136 void RecordNavigationMetrics(
137 const LoadCommittedDetails& details, 137 const LoadCommittedDetails& details,
138 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, 138 const FrameHostMsg_DidCommitProvisionalLoad_Params& params,
139 SiteInstance* site_instance); 139 SiteInstance* site_instance);
140 140
141 // Called when a navigation has started in a main frame, to update the pending 141 // Called when a navigation has started in a main frame, to update the pending
(...skipping 14 matching lines...) Expand all
156 NavigatorDelegate* delegate_; 156 NavigatorDelegate* delegate_;
157 157
158 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; 158 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_;
159 159
160 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); 160 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl);
161 }; 161 };
162 162
163 } // namespace content 163 } // namespace content
164 164
165 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 165 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698