| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ |
| 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ | 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "components/infobars/core/confirm_infobar_delegate.h" | 9 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 scoped_ptr<PluginMetadata> plugin_metadata, | 39 scoped_ptr<PluginMetadata> plugin_metadata, |
| 40 const base::string16& message); | 40 const base::string16& message); |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 OutdatedPluginInfoBarDelegate(PluginInstaller* installer, | 43 OutdatedPluginInfoBarDelegate(PluginInstaller* installer, |
| 44 scoped_ptr<PluginMetadata> metadata, | 44 scoped_ptr<PluginMetadata> metadata, |
| 45 const base::string16& message); | 45 const base::string16& message); |
| 46 ~OutdatedPluginInfoBarDelegate() override; | 46 ~OutdatedPluginInfoBarDelegate() override; |
| 47 | 47 |
| 48 // ConfirmInfoBarDelegate: | 48 // ConfirmInfoBarDelegate: |
| 49 std::string GetIdentifier() const override; |
| 49 void InfoBarDismissed() override; | 50 void InfoBarDismissed() override; |
| 50 int GetIconId() const override; | 51 int GetIconId() const override; |
| 51 base::string16 GetMessageText() const override; | 52 base::string16 GetMessageText() const override; |
| 52 base::string16 GetButtonLabel(InfoBarButton button) const override; | 53 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 53 bool Accept() override; | 54 bool Accept() override; |
| 54 bool Cancel() override; | 55 bool Cancel() override; |
| 55 base::string16 GetLinkText() const override; | 56 base::string16 GetLinkText() const override; |
| 56 GURL GetLinkURL() const override; | 57 GURL GetLinkURL() const override; |
| 57 | 58 |
| 58 // PluginInstallerObserver: | 59 // PluginInstallerObserver: |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // |infobar_service|. | 94 // |infobar_service|. |
| 94 static void Create(InfoBarService* infobar_service, | 95 static void Create(InfoBarService* infobar_service, |
| 95 Mode mode, | 96 Mode mode, |
| 96 const base::string16& name); | 97 const base::string16& name); |
| 97 | 98 |
| 98 private: | 99 private: |
| 99 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name); | 100 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name); |
| 100 ~PluginMetroModeInfoBarDelegate() override; | 101 ~PluginMetroModeInfoBarDelegate() override; |
| 101 | 102 |
| 102 // ConfirmInfoBarDelegate: | 103 // ConfirmInfoBarDelegate: |
| 104 std::string GetIdentifier() const override; |
| 103 int GetIconId() const override; | 105 int GetIconId() const override; |
| 104 base::string16 GetMessageText() const override; | 106 base::string16 GetMessageText() const override; |
| 105 int GetButtons() const override; | 107 int GetButtons() const override; |
| 106 base::string16 GetButtonLabel(InfoBarButton button) const override; | 108 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 107 bool Accept() override; | 109 bool Accept() override; |
| 108 base::string16 GetLinkText() const override; | 110 base::string16 GetLinkText() const override; |
| 109 GURL GetLinkURL() const override; | 111 GURL GetLinkURL() const override; |
| 110 | 112 |
| 111 const Mode mode_; | 113 const Mode mode_; |
| 112 const base::string16 name_; | 114 const base::string16 name_; |
| 113 | 115 |
| 114 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); | 116 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); |
| 115 }; | 117 }; |
| 116 #endif // defined(OS_WIN) | 118 #endif // defined(OS_WIN) |
| 117 | 119 |
| 118 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ | 120 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ |
| OLD | NEW |