feat: extend navigationHistory API (#42014)
* feat: extend navigationHistory API * refactor: simplify index checking * refactor: rename 'getHistory' and 'replaceHistory' methods of navigationHistory * refactor: rename delete*() methods to remove*() * feat: remove navigationHistory.replaceHistory() * tests: add tests for removeEntryAtIndex and getAllEntries
This commit is contained in:
parent
4c3014944c
commit
189675575c
8 changed files with 105 additions and 6 deletions
|
@ -204,6 +204,8 @@ class WebContents : public ExclusiveAccessContext,
|
|||
void GoToIndex(int index);
|
||||
int GetActiveIndex() const;
|
||||
content::NavigationEntry* GetNavigationEntryAtIndex(int index) const;
|
||||
bool RemoveNavigationEntryAtIndex(int index);
|
||||
std::vector<content::NavigationEntry*> GetHistory() const;
|
||||
void ClearHistory();
|
||||
int GetHistoryLength() const;
|
||||
const std::string GetWebRTCIPHandlingPolicy() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue