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

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

Issue 1407853005: OOPIF: Add frame_unique_name to FrameNavigationEntry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments Created 5 years, 1 month 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 return frame_tree_.get(); 173 return frame_tree_.get();
174 } 174 }
175 175
176 // Finds the TreeNode associated with |frame_tree_node_id| to add or update 176 // Finds the TreeNode associated with |frame_tree_node_id| to add or update
177 // its FrameNavigationEntry. A new FrameNavigationEntry is added if none 177 // its FrameNavigationEntry. A new FrameNavigationEntry is added if none
178 // exists, or else the existing one (which might be shared with other 178 // exists, or else the existing one (which might be shared with other
179 // NavigationEntries) is updated with the given parameters. 179 // NavigationEntries) is updated with the given parameters.
180 // Does nothing if there is no entry already and |url| is about:blank, since 180 // Does nothing if there is no entry already and |url| is about:blank, since
181 // that does not count as a real commit. 181 // that does not count as a real commit.
182 void AddOrUpdateFrameEntry(FrameTreeNode* frame_tree_node, 182 void AddOrUpdateFrameEntry(FrameTreeNode* frame_tree_node,
183 std::string target,
183 int64 item_sequence_number, 184 int64 item_sequence_number,
184 int64 document_sequence_number, 185 int64 document_sequence_number,
185 SiteInstanceImpl* site_instance, 186 SiteInstanceImpl* site_instance,
186 const GURL& url, 187 const GURL& url,
187 const Referrer& referrer, 188 const Referrer& referrer,
188 const PageState& page_state); 189 const PageState& page_state);
189 190
190 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if 191 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if
191 // there is one in this NavigationEntry. 192 // there is one in this NavigationEntry.
192 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const; 193 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const;
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 // persisted, unless specific data is taken out/put back in at save/restore 479 // persisted, unless specific data is taken out/put back in at save/restore
479 // time (see TabNavigation for an example of this). 480 // time (see TabNavigation for an example of this).
480 std::map<std::string, base::string16> extra_data_; 481 std::map<std::string, base::string16> extra_data_;
481 482
482 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); 483 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl);
483 }; 484 };
484 485
485 } // namespace content 486 } // namespace content
486 487
487 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 488 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698