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 "chrome/browser/infobars/confirm_infobar_delegate.h" | 9 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // |installer|. When the user accepts, |callback| is called. | 132 // |installer|. When the user accepts, |callback| is called. |
133 // During installation of the plug-in, the infobar will change to reflect the | 133 // During installation of the plug-in, the infobar will change to reflect the |
134 // installation state. | 134 // installation state. |
135 static void Create(InfoBarService* infobar_service, | 135 static void Create(InfoBarService* infobar_service, |
136 PluginInstaller* installer, | 136 PluginInstaller* installer, |
137 scoped_ptr<PluginMetadata> plugin_metadata, | 137 scoped_ptr<PluginMetadata> plugin_metadata, |
138 const InstallCallback& callback); | 138 const InstallCallback& callback); |
139 | 139 |
140 // Replaces |infobar|, which must currently be owned, with an infobar asking | 140 // Replaces |infobar|, which must currently be owned, with an infobar asking |
141 // the user to install or update a particular plugin. | 141 // the user to install or update a particular plugin. |
142 static void Replace(InfoBar* infobar, | 142 static void Replace(infobars::InfoBar* infobar, |
143 PluginInstaller* installer, | 143 PluginInstaller* installer, |
144 scoped_ptr<PluginMetadata> plugin_metadata, | 144 scoped_ptr<PluginMetadata> plugin_metadata, |
145 bool new_install, | 145 bool new_install, |
146 const base::string16& message); | 146 const base::string16& message); |
147 | 147 |
148 private: | 148 private: |
149 PluginInstallerInfoBarDelegate(PluginInstaller* installer, | 149 PluginInstallerInfoBarDelegate(PluginInstaller* installer, |
150 scoped_ptr<PluginMetadata> metadata, | 150 scoped_ptr<PluginMetadata> metadata, |
151 const InstallCallback& callback, | 151 const InstallCallback& callback, |
152 bool new_install, | 152 bool new_install, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; | 219 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; |
220 | 220 |
221 const Mode mode_; | 221 const Mode mode_; |
222 const base::string16 name_; | 222 const base::string16 name_; |
223 | 223 |
224 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); | 224 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); |
225 }; | 225 }; |
226 #endif // defined(OS_WIN) | 226 #endif // defined(OS_WIN) |
227 | 227 |
228 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ | 228 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ |
OLD | NEW |