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

Side by Side Diff: components/infobars/core/infobar_delegate.h

Issue 2250053002: Clean up the PermissionInfoBarDelegate hierarchy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-infobar-remember-decision
Patch Set: Address comments Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "ui/base/window_open_disposition.h" 11 #include "ui/base/window_open_disposition.h"
12 12
13 class ConfirmInfoBarDelegate; 13 class ConfirmInfoBarDelegate;
14 class HungRendererInfoBarDelegate; 14 class HungRendererInfoBarDelegate;
15 class InsecureContentInfoBarDelegate; 15 class InsecureContentInfoBarDelegate;
16 class NativeAppInfoBarDelegate; 16 class NativeAppInfoBarDelegate;
17 class PermissionInfobarDelegate; 17 class PermissionInfoBarDelegate;
18 class PopupBlockedInfoBarDelegate; 18 class PopupBlockedInfoBarDelegate;
19 class RegisterProtocolHandlerInfoBarDelegate; 19 class RegisterProtocolHandlerInfoBarDelegate;
20 class ScreenCaptureInfoBarDelegate; 20 class ScreenCaptureInfoBarDelegate;
21 class ThemeInstalledInfoBarDelegate; 21 class ThemeInstalledInfoBarDelegate;
22 class ThreeDAPIInfoBarDelegate; 22 class ThreeDAPIInfoBarDelegate;
23 23
24 #if defined(OS_ANDROID) 24 #if defined(OS_ANDROID)
25 class MediaStreamInfoBarDelegateAndroid; 25 class MediaStreamInfoBarDelegateAndroid;
26 class MediaThrottleInfoBarDelegate; 26 class MediaThrottleInfoBarDelegate;
27 #endif 27 #endif
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 virtual bool ShouldExpire(const NavigationDetails& details) const; 199 virtual bool ShouldExpire(const NavigationDetails& details) const;
200 200
201 // Called when the user clicks on the close button to dismiss the infobar. 201 // Called when the user clicks on the close button to dismiss the infobar.
202 virtual void InfoBarDismissed(); 202 virtual void InfoBarDismissed();
203 203
204 // Type-checking downcast routines: 204 // Type-checking downcast routines:
205 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); 205 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate();
206 virtual HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate(); 206 virtual HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate();
207 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); 207 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate();
208 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); 208 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate();
209 virtual PermissionInfobarDelegate* AsPermissionInfobarDelegate(); 209 virtual PermissionInfoBarDelegate* AsPermissionInfoBarDelegate();
210 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); 210 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate();
211 virtual RegisterProtocolHandlerInfoBarDelegate* 211 virtual RegisterProtocolHandlerInfoBarDelegate*
212 AsRegisterProtocolHandlerInfoBarDelegate(); 212 AsRegisterProtocolHandlerInfoBarDelegate();
213 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); 213 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate();
214 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); 214 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate();
215 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate(); 215 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate();
216 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); 216 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();
217 #if defined(OS_ANDROID) 217 #if defined(OS_ANDROID)
218 virtual MediaStreamInfoBarDelegateAndroid* 218 virtual MediaStreamInfoBarDelegateAndroid*
219 AsMediaStreamInfoBarDelegateAndroid(); 219 AsMediaStreamInfoBarDelegateAndroid();
(...skipping 14 matching lines...) Expand all
234 234
235 // The ID of the active navigation entry at the time we became owned. 235 // The ID of the active navigation entry at the time we became owned.
236 int nav_entry_id_; 236 int nav_entry_id_;
237 237
238 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 238 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
239 }; 239 };
240 240
241 } // namespace infobars 241 } // namespace infobars
242 242
243 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 243 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698