| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 PluginInstaller* installer, | 55 PluginInstaller* installer, |
| 56 scoped_ptr<PluginMetadata> metadata); | 56 scoped_ptr<PluginMetadata> metadata); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 OutdatedPluginInfoBarDelegate(PluginInstaller* installer, | 59 OutdatedPluginInfoBarDelegate(PluginInstaller* installer, |
| 60 scoped_ptr<PluginMetadata> metadata, | 60 scoped_ptr<PluginMetadata> metadata, |
| 61 const base::string16& message); | 61 const base::string16& message); |
| 62 ~OutdatedPluginInfoBarDelegate() override; | 62 ~OutdatedPluginInfoBarDelegate() override; |
| 63 | 63 |
| 64 // PluginInfoBarDelegate: | 64 // PluginInfoBarDelegate: |
| 65 void InfoBarDismissed() override; |
| 65 base::string16 GetMessageText() const override; | 66 base::string16 GetMessageText() const override; |
| 66 base::string16 GetButtonLabel(InfoBarButton button) const override; | 67 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 67 bool Accept() override; | 68 bool Accept() override; |
| 68 bool Cancel() override; | 69 bool Cancel() override; |
| 69 void InfoBarDismissed() override; | |
| 70 bool LinkClicked(WindowOpenDisposition disposition) override; | 70 bool LinkClicked(WindowOpenDisposition disposition) override; |
| 71 std::string GetLearnMoreURL() const override; | 71 std::string GetLearnMoreURL() const override; |
| 72 | 72 |
| 73 // PluginInstallerObserver: | 73 // PluginInstallerObserver: |
| 74 void DownloadStarted() override; | 74 void DownloadStarted() override; |
| 75 void DownloadError(const std::string& message) override; | 75 void DownloadError(const std::string& message) override; |
| 76 void DownloadCancelled() override; | 76 void DownloadCancelled() override; |
| 77 void DownloadFinished() override; | 77 void DownloadFinished() override; |
| 78 | 78 |
| 79 // WeakPluginInstallerObserver: | 79 // WeakPluginInstallerObserver: |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 virtual bool LinkClicked(WindowOpenDisposition disposition) override; | 188 virtual bool LinkClicked(WindowOpenDisposition disposition) override; |
| 189 | 189 |
| 190 const Mode mode_; | 190 const Mode mode_; |
| 191 const base::string16 name_; | 191 const base::string16 name_; |
| 192 | 192 |
| 193 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); | 193 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); |
| 194 }; | 194 }; |
| 195 #endif // defined(OS_WIN) | 195 #endif // defined(OS_WIN) |
| 196 | 196 |
| 197 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ | 197 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ |
| OLD | NEW |