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

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

Issue 1422333009: OOPIF: History navigations for new child frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve comment. Created 5 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_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/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 int64 document_sequence_number, 185 int64 document_sequence_number,
186 SiteInstanceImpl* site_instance, 186 SiteInstanceImpl* site_instance,
187 const GURL& url, 187 const GURL& url,
188 const Referrer& referrer, 188 const Referrer& referrer,
189 const PageState& page_state); 189 const PageState& page_state);
190 190
191 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if 191 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if
192 // there is one in this NavigationEntry. 192 // there is one in this NavigationEntry.
193 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const; 193 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const;
194 194
195 // Returns the FrameNavigationEntry corresponding to the frame with the given
196 // |unique_name|, if any. This is useful when the FrameTreeNode cannot be used
197 // to find the entry, such as for a newly created subframe in a history
198 // navigation. Callers should update the FrameTreeNode ID of the entry so that
199 // it can be found with |GetFrameEntry| above.
200 // TODO(creis): Generate or verify the unique_name in the browser process.
201 FrameNavigationEntry* GetFrameEntryByUniqueName(
202 const std::string& unique_name) const;
203
195 void set_unique_id(int unique_id) { 204 void set_unique_id(int unique_id) {
196 unique_id_ = unique_id; 205 unique_id_ = unique_id;
197 } 206 }
198 207
199 // The SiteInstance represents which pages must share processes. This is a 208 // The SiteInstance represents which pages must share processes. This is a
200 // reference counted pointer to a shared SiteInstance. 209 // reference counted pointer to a shared SiteInstance.
201 // 210 //
202 // Note that the SiteInstance should usually not be changed after it is set, 211 // Note that the SiteInstance should usually not be changed after it is set,
203 // but this may happen if the NavigationEntry was cloned and needs to use a 212 // but this may happen if the NavigationEntry was cloned and needs to use a
204 // different SiteInstance. 213 // different SiteInstance.
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // persisted, unless specific data is taken out/put back in at save/restore 488 // persisted, unless specific data is taken out/put back in at save/restore
480 // time (see TabNavigation for an example of this). 489 // time (see TabNavigation for an example of this).
481 std::map<std::string, base::string16> extra_data_; 490 std::map<std::string, base::string16> extra_data_;
482 491
483 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); 492 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl);
484 }; 493 };
485 494
486 } // namespace content 495 } // namespace content
487 496
488 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 497 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl_unittest.cc ('k') | content/browser/frame_host/navigation_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698