| Index: components/infobars/core/confirm_infobar_delegate.h
|
| diff --git a/components/infobars/core/confirm_infobar_delegate.h b/components/infobars/core/confirm_infobar_delegate.h
|
| index d36ea224a272009f16eb86c784a12442358af7fc..82f73364db7fac00571b9e2c6cb562655654ebc6 100644
|
| --- a/components/infobars/core/confirm_infobar_delegate.h
|
| +++ b/components/infobars/core/confirm_infobar_delegate.h
|
| @@ -9,6 +9,7 @@
|
| #include "base/strings/string16.h"
|
| #include "components/infobars/core/infobar_delegate.h"
|
| #include "components/infobars/core/infobar_manager.h"
|
| +#include "url/gurl.h"
|
|
|
| namespace infobars {
|
| class InfoBar;
|
| @@ -55,14 +56,20 @@ class ConfirmInfoBarDelegate : public infobars::InfoBarDelegate {
|
| virtual bool Cancel();
|
|
|
| // Returns the text of the link to be displayed, if any. Otherwise returns
|
| - // and empty string.
|
| + // an empty string.
|
| virtual base::string16 GetLinkText() const;
|
|
|
| - // Called when the Link (if any) is clicked. The |disposition| specifies how
|
| - // the resulting document should be loaded (based on the event flags present
|
| - // when the link was clicked). If this function returns true, the infobar is
|
| - // then immediately closed. Subclasses MUST NOT return true if in handling
|
| - // this call something triggers the infobar to begin closing.
|
| + // Returns the URL of the link to be displayed.
|
| + virtual GURL GetLinkURL() const;
|
| +
|
| + // Called when the link (if any) is clicked; if this function returns true,
|
| + // the infobar is then immediately closed. The default implementation opens
|
| + // the URL returned by GetLinkURL(), above, and returns false. Subclasses MUST
|
| + // NOT return true if in handling this call something triggers the infobar to
|
| + // begin closing.
|
| + //
|
| + // The |disposition| specifies how the resulting document should be loaded
|
| + // (based on the event flags present when the link was clicked).
|
| virtual bool LinkClicked(WindowOpenDisposition disposition);
|
|
|
| protected:
|
|
|