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

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: 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 virtual bool ShouldExpire(const NavigationDetails& details) const; 198 virtual bool ShouldExpire(const NavigationDetails& details) const;
199 199
200 // Called when the user clicks on the close button to dismiss the infobar. 200 // Called when the user clicks on the close button to dismiss the infobar.
201 virtual void InfoBarDismissed(); 201 virtual void InfoBarDismissed();
202 202
203 // Type-checking downcast routines: 203 // Type-checking downcast routines:
204 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); 204 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate();
205 virtual HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate(); 205 virtual HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate();
206 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); 206 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate();
207 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); 207 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate();
208 virtual PermissionInfobarDelegate* AsPermissionInfobarDelegate(); 208 virtual PermissionInfoBarDelegate* AsPermissionInfoBarDelegate();
209 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); 209 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate();
210 virtual RegisterProtocolHandlerInfoBarDelegate* 210 virtual RegisterProtocolHandlerInfoBarDelegate*
211 AsRegisterProtocolHandlerInfoBarDelegate(); 211 AsRegisterProtocolHandlerInfoBarDelegate();
212 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); 212 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate();
213 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); 213 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate();
214 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate(); 214 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate();
215 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); 215 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();
216 #if defined(OS_ANDROID) 216 #if defined(OS_ANDROID)
217 virtual MediaStreamInfoBarDelegateAndroid* 217 virtual MediaStreamInfoBarDelegateAndroid*
218 AsMediaStreamInfoBarDelegateAndroid(); 218 AsMediaStreamInfoBarDelegateAndroid();
(...skipping 14 matching lines...) Expand all
233 233
234 // The ID of the active navigation entry at the time we became owned. 234 // The ID of the active navigation entry at the time we became owned.
235 int nav_entry_id_; 235 int nav_entry_id_;
236 236
237 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 237 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
238 }; 238 };
239 239
240 } // namespace infobars 240 } // namespace infobars
241 241
242 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 242 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698