Allow a bubble that is being closed to know why it was closed.

This will be useful for the permission bubbles which sometimes need to
requeue the permissions to show themselves again if the tab is switched
back to.

BUG=554711

Review URL: https://codereview.chromium.org/1728783002

Cr-Commit-Position: refs/heads/master@{#377118}
diff --git a/components/bubble/bubble_controller.h b/components/bubble/bubble_controller.h
index 78889be3..f242309 100644
--- a/components/bubble/bubble_controller.h
+++ b/components/bubble/bubble_controller.h
@@ -56,7 +56,7 @@
   bool OwningFrameIs(const content::RenderFrameHost* frame) const;
 
   // Cleans up the delegate and its UI.
-  void DoClose();
+  void DoClose(BubbleCloseReason reason);
 
   BubbleManager* manager_;
   scoped_ptr<BubbleDelegate> delegate_;