| 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 "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 OutdatedPluginInfoBarDelegate(PluginInstaller* installer, | 41 OutdatedPluginInfoBarDelegate(PluginInstaller* installer, |
| 42 std::unique_ptr<PluginMetadata> metadata, | 42 std::unique_ptr<PluginMetadata> metadata, |
| 43 const base::string16& message); | 43 const base::string16& message); |
| 44 ~OutdatedPluginInfoBarDelegate() override; | 44 ~OutdatedPluginInfoBarDelegate() override; |
| 45 | 45 |
| 46 // ConfirmInfoBarDelegate: | 46 // ConfirmInfoBarDelegate: |
| 47 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; | 47 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
| 48 void InfoBarDismissed() override; | 48 void InfoBarDismissed() override; |
| 49 gfx::VectorIconId GetVectorIconId() const override; | 49 const gfx::VectorIcon& GetVectorIcon() const override; |
| 50 base::string16 GetMessageText() const override; | 50 base::string16 GetMessageText() const override; |
| 51 base::string16 GetButtonLabel(InfoBarButton button) const override; | 51 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 52 bool Accept() override; | 52 bool Accept() override; |
| 53 bool Cancel() override; | 53 bool Cancel() override; |
| 54 base::string16 GetLinkText() const override; | 54 base::string16 GetLinkText() const override; |
| 55 GURL GetLinkURL() const override; | 55 GURL GetLinkURL() const override; |
| 56 | 56 |
| 57 // PluginInstallerObserver: | 57 // PluginInstallerObserver: |
| 58 void DownloadStarted() override; | 58 void DownloadStarted() override; |
| 59 void DownloadError(const std::string& message) override; | 59 void DownloadError(const std::string& message) override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 71 | 71 |
| 72 std::unique_ptr<PluginMetadata> plugin_metadata_; | 72 std::unique_ptr<PluginMetadata> plugin_metadata_; |
| 73 | 73 |
| 74 base::string16 message_; | 74 base::string16 message_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(OutdatedPluginInfoBarDelegate); | 76 DISALLOW_COPY_AND_ASSIGN(OutdatedPluginInfoBarDelegate); |
| 77 }; | 77 }; |
| 78 #endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 78 #endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
| 79 | 79 |
| 80 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ | 80 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ |
| OLD | NEW |