// This event is only for internal use, which is emitted when WebContents is
// being destroyed.
Emit("will-destroy");
- CommonWebContentsDelegate::DestroyWebContents();
+ ResetManagedWebContents();
}
bool WebContents::DidAddMessageToConsole(content::WebContents* source,
void SetOwnerWindow(content::WebContents* web_contents,
NativeWindow* owner_window);
- // Destroy the managed InspectableWebContents object.
- void DestroyWebContents();
-
// Returns the WebContents managed by this delegate.
content::WebContents* GetWebContents() const;
std::string* name, std::string* class_name) override;
#endif
+ // Destroy the managed InspectableWebContents object.
+ void ResetManagedWebContents();
+
private:
// Callback for when DevToolsSaveToFile has completed.
void OnDevToolsSaveToFile(const std::string& url);