Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: chrome/browser/plugins/plugin_infobar_delegates.h

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/pepper_broker_infobar_delegate.cc ('k') | chrome/browser/plugins/plugin_infobar_delegates.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698