| Index: third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
|
| index d49669a3492fa759bcf264955df3e65e99d5f422..5932d66818fb40b55666b5a7d691464dd77e778c 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
|
| @@ -376,6 +376,31 @@ SDK.ResourceTreeModel = class extends SDK.SDKModel {
|
| }
|
|
|
| /**
|
| + * @param {string} url
|
| + */
|
| + navigate(url) {
|
| + this._agent.navigate(url, undefined, (error, frameId) => undefined);
|
| + }
|
| +
|
| + /**
|
| + * @return {!Promise<?{currentIndex: number, entries: !Protocol.Page.NavigationEntry}>}
|
| + */
|
| + navigationHistory() {
|
| + return this._agent.getNavigationHistory((error, currentIndex, entries) => {
|
| + if (error)
|
| + return null;
|
| + return {currentIndex: currentIndex, entries: entries};
|
| + });
|
| + }
|
| +
|
| + /**
|
| + * @param {!Protocol.Page.NavigationEntry} entry
|
| + */
|
| + navigateToHistoryEntry(entry) {
|
| + this._agent.navigateToHistoryEntry(entry.id);
|
| + }
|
| +
|
| + /**
|
| * @param {function(string, ?string,!Array<!Protocol.Page.AppManifestError>)} callback
|
| */
|
| fetchAppManifest(callback) {
|
|
|