summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/instant/instant_controller.h')
-rw-r--r--chrome/browser/instant/instant_controller.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_controller.h b/chrome/browser/instant/instant_controller.h
index dd4631a..d06bde6 100644
--- a/chrome/browser/instant/instant_controller.h
+++ b/chrome/browser/instant/instant_controller.h
@@ -87,8 +87,14 @@ class InstantController : public InstantLoaderDelegate {
// Releases the preview TabContents passing ownership to the caller. This is
// intended to be called when the preview TabContents is committed. This does
// not notify the delegate.
+ // WARNING: be sure and invoke CompleteRelease after adding the returned
+ // TabContents to a tabstrip.
TabContents* ReleasePreviewContents(InstantCommitType type);
+ // Does cleanup after the preview contents has been added to the tabstrip.
+ // Invoke this if you explicitly invoke ReleasePreviewContents.
+ void CompleteRelease(TabContents* tab);
+
// TabContents the match is being shown for.
TabContents* tab_contents() const { return tab_contents_; }