| 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" |
| 11 #include "chrome/common/features.h" | 11 #include "chrome/common/features.h" |
| 12 #include "components/infobars/core/confirm_infobar_delegate.h" | 12 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 15 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
| 16 #include "chrome/browser/plugins/plugin_installer_observer.h" | 16 #include "chrome/browser/plugins/plugin_installer_observer.h" |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 class InfoBarService; | 19 class InfoBarService; |
| 20 class HostContentSettingsMap; | |
| 21 class PluginMetadata; | 20 class PluginMetadata; |
| 22 | 21 |
| 23 namespace content { | |
| 24 class WebContents; | |
| 25 } | |
| 26 | |
| 27 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 22 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
| 28 // Infobar that's shown when a plugin is out of date. | 23 // Infobar that's shown when a plugin is out of date. |
| 29 class OutdatedPluginInfoBarDelegate : public ConfirmInfoBarDelegate, | 24 class OutdatedPluginInfoBarDelegate : public ConfirmInfoBarDelegate, |
| 30 public WeakPluginInstallerObserver { | 25 public WeakPluginInstallerObserver { |
| 31 public: | 26 public: |
| 32 // Creates an outdated plugin infobar and delegate and adds the infobar to | 27 // Creates an outdated plugin infobar and delegate and adds the infobar to |
| 33 // |infobar_service|. | 28 // |infobar_service|. |
| 34 static void Create(InfoBarService* infobar_service, | 29 static void Create(InfoBarService* infobar_service, |
| 35 PluginInstaller* installer, | 30 PluginInstaller* installer, |
| 36 std::unique_ptr<PluginMetadata> metadata); | 31 std::unique_ptr<PluginMetadata> metadata); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 71 |
| 77 std::unique_ptr<PluginMetadata> plugin_metadata_; | 72 std::unique_ptr<PluginMetadata> plugin_metadata_; |
| 78 | 73 |
| 79 base::string16 message_; | 74 base::string16 message_; |
| 80 | 75 |
| 81 DISALLOW_COPY_AND_ASSIGN(OutdatedPluginInfoBarDelegate); | 76 DISALLOW_COPY_AND_ASSIGN(OutdatedPluginInfoBarDelegate); |
| 82 }; | 77 }; |
| 83 #endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 78 #endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
| 84 | 79 |
| 85 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ | 80 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ |
| OLD | NEW |