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

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

Issue 2405013002: Move some global feature defines to buildflags (Closed)
Patch Set: Comment Created 4 years, 2 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
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 "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 "components/infobars/core/confirm_infobar_delegate.h" 12 #include "components/infobars/core/confirm_infobar_delegate.h"
12 #include "url/gurl.h" 13 #include "url/gurl.h"
13 14
14 #if defined(ENABLE_PLUGIN_INSTALLATION) 15 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
15 #include "chrome/browser/plugins/plugin_installer_observer.h" 16 #include "chrome/browser/plugins/plugin_installer_observer.h"
16 #endif 17 #endif
17 18
18 class InfoBarService; 19 class InfoBarService;
19 class HostContentSettingsMap; 20 class HostContentSettingsMap;
20 class PluginMetadata; 21 class PluginMetadata;
21 22
22 namespace content { 23 namespace content {
23 class WebContents; 24 class WebContents;
24 } 25 }
25 26
26 #if defined(ENABLE_PLUGIN_INSTALLATION) 27 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
27 // Infobar that's shown when a plugin is out of date. 28 // Infobar that's shown when a plugin is out of date.
28 class OutdatedPluginInfoBarDelegate : public ConfirmInfoBarDelegate, 29 class OutdatedPluginInfoBarDelegate : public ConfirmInfoBarDelegate,
29 public WeakPluginInstallerObserver { 30 public WeakPluginInstallerObserver {
30 public: 31 public:
31 // Creates an outdated plugin infobar and delegate and adds the infobar to 32 // Creates an outdated plugin infobar and delegate and adds the infobar to
32 // |infobar_service|. 33 // |infobar_service|.
33 static void Create(InfoBarService* infobar_service, 34 static void Create(InfoBarService* infobar_service,
34 PluginInstaller* installer, 35 PluginInstaller* installer,
35 std::unique_ptr<PluginMetadata> metadata); 36 std::unique_ptr<PluginMetadata> metadata);
36 37
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void ReplaceWithInfoBar(const base::string16& message); 73 void ReplaceWithInfoBar(const base::string16& message);
73 74
74 std::string identifier_; 75 std::string identifier_;
75 76
76 std::unique_ptr<PluginMetadata> plugin_metadata_; 77 std::unique_ptr<PluginMetadata> plugin_metadata_;
77 78
78 base::string16 message_; 79 base::string16 message_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(OutdatedPluginInfoBarDelegate); 81 DISALLOW_COPY_AND_ASSIGN(OutdatedPluginInfoBarDelegate);
81 }; 82 };
82 #endif // defined(ENABLE_PLUGIN_INSTALLATION) 83 #endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
83 84
84 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ 85 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_info_message_filter.cc ('k') | chrome/browser/plugins/plugin_infobar_delegates.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698