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

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

Issue 379143002: PlzNavigate: implement RequestNavigation in the no live renderer case (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 5 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_NAVIGATION_ENTRY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time/time.h"
10 #include "content/browser/site_instance_impl.h" 11 #include "content/browser/site_instance_impl.h"
11 #include "content/public/browser/favicon_status.h" 12 #include "content/public/browser/favicon_status.h"
12 #include "content/public/browser/global_request_id.h" 13 #include "content/public/browser/global_request_id.h"
14 #include "content/public/browser/navigation_controller.h"
13 #include "content/public/browser/navigation_entry.h" 15 #include "content/public/browser/navigation_entry.h"
14 #include "content/public/common/page_state.h" 16 #include "content/public/common/page_state.h"
15 #include "content/public/common/ssl_status.h" 17 #include "content/public/common/ssl_status.h"
16 18
19 struct FrameMsg_Navigate_Params;
20
17 namespace content { 21 namespace content {
22 class NavigationControllerImpl;
18 23
19 class CONTENT_EXPORT NavigationEntryImpl 24 class CONTENT_EXPORT NavigationEntryImpl
20 : public NON_EXPORTED_BASE(NavigationEntry) { 25 : public NON_EXPORTED_BASE(NavigationEntry) {
21 public: 26 public:
22 static NavigationEntryImpl* FromNavigationEntry(NavigationEntry* entry); 27 static NavigationEntryImpl* FromNavigationEntry(NavigationEntry* entry);
23 28
24 // The value of bindings() before it is set during commit. 29 // The value of bindings() before it is set during commit.
25 static int kInvalidBindings; 30 static int kInvalidBindings;
26 31
27 NavigationEntryImpl(); 32 NavigationEntryImpl();
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 216
212 // Indicates which FrameTreeNode to navigate. Currently only used if the 217 // Indicates which FrameTreeNode to navigate. Currently only used if the
213 // --site-per-process flag is passed. 218 // --site-per-process flag is passed.
214 int64 frame_tree_node_id() const { 219 int64 frame_tree_node_id() const {
215 return frame_tree_node_id_; 220 return frame_tree_node_id_;
216 } 221 }
217 void set_frame_tree_node_id(int64 frame_tree_node_id) { 222 void set_frame_tree_node_id(int64 frame_tree_node_id) {
218 frame_tree_node_id_ = frame_tree_node_id; 223 frame_tree_node_id_ = frame_tree_node_id;
219 } 224 }
220 225
226 // Fills |params| based on the information contained in the entry.
227 void MakeNavigateParams(const NavigationControllerImpl& controller,
clamy 2014/07/16 12:13:49 The code for this function has been moved from nav
ppi 2014/07/16 14:28:09 Could we keep this in Navigator and make it a stat
clamy 2014/07/16 15:44:53 Done.
228 NavigationController::ReloadType reload_type,
229 base::TimeTicks navigation_start,
230 FrameMsg_Navigate_Params* params) const;
231
221 private: 232 private:
222 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 233 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
223 // Session/Tab restore save portions of this class so that it can be recreated 234 // Session/Tab restore save portions of this class so that it can be recreated
224 // later. If you add a new field that needs to be persisted you'll have to 235 // later. If you add a new field that needs to be persisted you'll have to
225 // update SessionService/TabRestoreService and Android WebView 236 // update SessionService/TabRestoreService and Android WebView
226 // state_serializer.cc appropriately. 237 // state_serializer.cc appropriately.
227 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 238 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
228 239
229 // See the accessors above for descriptions. 240 // See the accessors above for descriptions.
230 int unique_id_; 241 int unique_id_;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // persisted, unless specific data is taken out/put back in at save/restore 348 // persisted, unless specific data is taken out/put back in at save/restore
338 // time (see TabNavigation for an example of this). 349 // time (see TabNavigation for an example of this).
339 std::map<std::string, base::string16> extra_data_; 350 std::map<std::string, base::string16> extra_data_;
340 351
341 // Copy and assignment is explicitly allowed for this class. 352 // Copy and assignment is explicitly allowed for this class.
342 }; 353 };
343 354
344 } // namespace content 355 } // namespace content
345 356
346 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 357 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_entry_impl.cc » ('j') | content/browser/frame_host/navigator_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698