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

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

Issue 1299513002: [Android] Add support for a hung renderer dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/infobars/core/infobar_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/base/window_open_disposition.h" 10 #include "ui/base/window_open_disposition.h"
11 11
12 class ConfirmInfoBarDelegate; 12 class ConfirmInfoBarDelegate;
13 class HungRendererInfoBarDelegate;
13 class InsecureContentInfoBarDelegate; 14 class InsecureContentInfoBarDelegate;
14 class MediaStreamInfoBarDelegate; 15 class MediaStreamInfoBarDelegate;
15 class NativeAppInfoBarDelegate; 16 class NativeAppInfoBarDelegate;
16 class PermissionInfobarDelegate; 17 class PermissionInfobarDelegate;
17 class PopupBlockedInfoBarDelegate; 18 class PopupBlockedInfoBarDelegate;
18 class RegisterProtocolHandlerInfoBarDelegate; 19 class RegisterProtocolHandlerInfoBarDelegate;
19 class ScreenCaptureInfoBarDelegate; 20 class ScreenCaptureInfoBarDelegate;
20 class ThemeInstalledInfoBarDelegate; 21 class ThemeInstalledInfoBarDelegate;
21 class ThreeDAPIInfoBarDelegate; 22 class ThreeDAPIInfoBarDelegate;
22 23
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // page (not including reloads). Subclasses wishing to change this behavior 111 // page (not including reloads). Subclasses wishing to change this behavior
111 // can override either this function or ShouldExpireInternal(), depending on 112 // can override either this function or ShouldExpireInternal(), depending on
112 // what level of control they need. 113 // what level of control they need.
113 virtual bool ShouldExpire(const NavigationDetails& details) const; 114 virtual bool ShouldExpire(const NavigationDetails& details) const;
114 115
115 // Called when the user clicks on the close button to dismiss the infobar. 116 // Called when the user clicks on the close button to dismiss the infobar.
116 virtual void InfoBarDismissed(); 117 virtual void InfoBarDismissed();
117 118
118 // Type-checking downcast routines: 119 // Type-checking downcast routines:
119 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); 120 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate();
121 virtual HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate();
120 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); 122 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate();
121 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); 123 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate();
122 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); 124 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate();
123 virtual PermissionInfobarDelegate* AsPermissionInfobarDelegate(); 125 virtual PermissionInfobarDelegate* AsPermissionInfobarDelegate();
124 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); 126 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate();
125 virtual RegisterProtocolHandlerInfoBarDelegate* 127 virtual RegisterProtocolHandlerInfoBarDelegate*
126 AsRegisterProtocolHandlerInfoBarDelegate(); 128 AsRegisterProtocolHandlerInfoBarDelegate();
127 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); 129 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate();
128 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); 130 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate();
129 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate(); 131 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate();
(...skipping 13 matching lines...) Expand all
143 145
144 // The ID of the active navigation entry at the time we became owned. 146 // The ID of the active navigation entry at the time we became owned.
145 int nav_entry_id_; 147 int nav_entry_id_;
146 148
147 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 149 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
148 }; 150 };
149 151
150 } // namespace infobars 152 } // namespace infobars
151 153
152 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 154 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/infobars/core/infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698