| OLD | NEW | 
|   1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |   1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
|   2 // Use of this source code is governed by a BSD-style license that can be |   2 // Use of this source code is governed by a BSD-style license that can be | 
|   3 // found in the LICENSE file. |   3 // found in the LICENSE file. | 
|   4  |   4  | 
|   5 #ifndef CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ |   5 #ifndef CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ | 
|   6 #define CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ |   6 #define CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ | 
|   7  |   7  | 
|   8 #include "components/infobars/core/confirm_infobar_delegate.h" |   8 #include "components/infobars/core/confirm_infobar_delegate.h" | 
|   9  |   9  | 
|  10 class InfoBarService; |  10 class InfoBarService; | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
|  31     DISPLAY_USER_DID_NOT_LOAD,  // User clicked the don't load button. |  31     DISPLAY_USER_DID_NOT_LOAD,  // User clicked the don't load button. | 
|  32     DISPLAY_INFOBAR_DISMISSED,  // User clicked close button. |  32     DISPLAY_INFOBAR_DISMISSED,  // User clicked close button. | 
|  33     RUN_INFOBAR_SHOWN, |  33     RUN_INFOBAR_SHOWN, | 
|  34     RUN_USER_OVERRIDE, |  34     RUN_USER_OVERRIDE, | 
|  35     RUN_USER_DID_NOT_LOAD, |  35     RUN_USER_DID_NOT_LOAD, | 
|  36     RUN_INFOBAR_DISMISSED, |  36     RUN_INFOBAR_DISMISSED, | 
|  37     NUM_EVENTS |  37     NUM_EVENTS | 
|  38   }; |  38   }; | 
|  39  |  39  | 
|  40   explicit InsecureContentInfoBarDelegate(InfoBarType type); |  40   explicit InsecureContentInfoBarDelegate(InfoBarType type); | 
|  41   virtual ~InsecureContentInfoBarDelegate(); |  41   ~InsecureContentInfoBarDelegate() override; | 
|  42  |  42  | 
|  43   // ConfirmInfoBarDelegate: |  43   // ConfirmInfoBarDelegate: | 
|  44   virtual void InfoBarDismissed() override; |  44   void InfoBarDismissed() override; | 
|  45   virtual InsecureContentInfoBarDelegate* |  45   InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate() override; | 
|  46       AsInsecureContentInfoBarDelegate() override; |  46   base::string16 GetMessageText() const override; | 
|  47   virtual base::string16 GetMessageText() const override; |  47   base::string16 GetButtonLabel(InfoBarButton button) const override; | 
|  48   virtual base::string16 GetButtonLabel(InfoBarButton button) const override; |  48   bool Accept() override; | 
|  49   virtual bool Accept() override; |  49   bool Cancel() override; | 
|  50   virtual bool Cancel() override; |  50   base::string16 GetLinkText() const override; | 
|  51   virtual base::string16 GetLinkText() const override; |  51   bool LinkClicked(WindowOpenDisposition disposition) override; | 
|  52   virtual bool LinkClicked(WindowOpenDisposition disposition) override; |  | 
|  53  |  52  | 
|  54   InfoBarType type_; |  53   InfoBarType type_; | 
|  55  |  54  | 
|  56   DISALLOW_IMPLICIT_CONSTRUCTORS(InsecureContentInfoBarDelegate); |  55   DISALLOW_IMPLICIT_CONSTRUCTORS(InsecureContentInfoBarDelegate); | 
|  57 }; |  56 }; | 
|  58  |  57  | 
|  59 #endif  // CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ |  58 #endif  // CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ | 
|  60  |  59  | 
| OLD | NEW |