Index: components/bubble/bubble_delegate.h |
diff --git a/components/bubble/bubble_delegate.h b/components/bubble/bubble_delegate.h |
index d1f07e952902878665510f224328a53c2e5084fa..d3914c30566fca986bd2385b129f12703e6ebc8f 100644 |
--- a/components/bubble/bubble_delegate.h |
+++ b/components/bubble/bubble_delegate.h |
@@ -13,6 +13,10 @@ |
class BubbleUi; |
+namespace content { |
+class RenderFrameHost; |
+} |
+ |
// Inherit from this class to define a bubble. A bubble is a small transient UI |
// surface anchored to a parent window. Most bubbles are dismissed when they |
// lose focus. |
@@ -41,6 +45,10 @@ class BubbleDelegate { |
// Used to identify a bubble for collecting metrics. |
virtual std::string GetName() const = 0; |
+ // If this returns non-null, the bubble will be closed when the returned frame |
+ // is destroyed. |
+ virtual const content::RenderFrameHost* OwningFrame() const = 0; |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(BubbleDelegate); |
}; |