OLD | NEW |
---|---|
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_CONTROLLER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 | 100 |
101 // Returns the index of the specified entry, or -1 if entry is not contained | 101 // Returns the index of the specified entry, or -1 if entry is not contained |
102 // in this NavigationController. | 102 // in this NavigationController. |
103 int GetIndexOfEntry(const NavigationEntryImpl* entry) const; | 103 int GetIndexOfEntry(const NavigationEntryImpl* entry) const; |
104 | 104 |
105 // Return the index of the entry with the corresponding instance and page_id, | 105 // Return the index of the entry with the corresponding instance and page_id, |
106 // or -1 if not found. | 106 // or -1 if not found. |
107 int GetEntryIndexWithPageID(SiteInstance* instance, | 107 int GetEntryIndexWithPageID(SiteInstance* instance, |
108 int32 page_id) const; | 108 int32 page_id) const; |
109 | 109 |
110 // Return the index of the entry with the given unique id, or -1 if not found. | |
111 int GetEntryIndexWithUniqueID(int nav_entry_id) const; | |
112 | |
110 // Return the entry with the corresponding instance and page_id, or NULL if | 113 // Return the entry with the corresponding instance and page_id, or NULL if |
111 // not found. | 114 // not found. |
112 NavigationEntryImpl* GetEntryWithPageID( | 115 NavigationEntryImpl* GetEntryWithPageID( |
113 SiteInstance* instance, | 116 SiteInstance* instance, |
114 int32 page_id) const; | 117 int32 page_id) const; |
115 | 118 |
116 NavigationControllerDelegate* delegate() const { | 119 NavigationControllerDelegate* delegate() const { |
117 return delegate_; | 120 return delegate_; |
118 } | 121 } |
119 | 122 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 // |low_water_mark_| is the first time in a sequence of adjusted | 227 // |low_water_mark_| is the first time in a sequence of adjusted |
225 // times and |high_water_mark_| is the last. | 228 // times and |high_water_mark_| is the last. |
226 base::Time low_water_mark_; | 229 base::Time low_water_mark_; |
227 base::Time high_water_mark_; | 230 base::Time high_water_mark_; |
228 }; | 231 }; |
229 | 232 |
230 // Classifies the given renderer navigation (see the NavigationType enum). | 233 // Classifies the given renderer navigation (see the NavigationType enum). |
231 NavigationType ClassifyNavigation( | 234 NavigationType ClassifyNavigation( |
232 RenderFrameHostImpl* rfh, | 235 RenderFrameHostImpl* rfh, |
233 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) const; | 236 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) const; |
237 // This does the same as above (hopefully), but does so without any use of | |
238 // deprecated page id values. http://crbug.com/369661 | |
Charlie Reis
2015/04/10 23:54:21
Also mention that it will replace ClassifyNavigati
Avi (use Gerrit)
2015/04/13 22:42:48
Done.
| |
239 NavigationType ClassifyNavigationWithoutPageID( | |
240 RenderFrameHostImpl* rfh, | |
241 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) const; | |
234 | 242 |
235 // Causes the controller to load the specified entry. The function assumes | 243 // Causes the controller to load the specified entry. The function assumes |
236 // ownership of the pointer since it is put in the navigation list. | 244 // ownership of the pointer since it is put in the navigation list. |
237 // NOTE: Do not pass an entry that the controller already owns! | 245 // NOTE: Do not pass an entry that the controller already owns! |
238 void LoadEntry(NavigationEntryImpl* entry); | 246 void LoadEntry(NavigationEntryImpl* entry); |
239 | 247 |
240 // Handlers for the different types of navigation types. They will actually | 248 // Handlers for the different types of navigation types. They will actually |
241 // handle the navigations corresponding to the different NavClasses above. | 249 // handle the navigations corresponding to the different NavClasses above. |
242 // They will NOT broadcast the commit notification, that should be handled by | 250 // They will NOT broadcast the commit notification, that should be handled by |
243 // the caller. | 251 // the caller. |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
421 TimeSmoother time_smoother_; | 429 TimeSmoother time_smoother_; |
422 | 430 |
423 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; | 431 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; |
424 | 432 |
425 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 433 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
426 }; | 434 }; |
427 | 435 |
428 } // namespace content | 436 } // namespace content |
429 | 437 |
430 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 438 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
OLD | NEW |