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

Side by Side Diff: chrome/browser/api/infobars/infobar_delegate.h

Issue 11378008: Raise an infobar and deny access to WebGL if a GPU reset was detected while a web page containing W… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Work around build failure on Mac OS with 10.6 SDK. Created 8 years, 1 month 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/api/infobars/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 (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_API_INFOBARS_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "webkit/glue/window_open_disposition.h" 10 #include "webkit/glue/window_open_disposition.h"
11 11
12 class AutoLoginInfoBarDelegate; 12 class AutoLoginInfoBarDelegate;
13 class ConfirmInfoBarDelegate; 13 class ConfirmInfoBarDelegate;
14 class ExtensionInfoBarDelegate; 14 class ExtensionInfoBarDelegate;
15 class InfoBar; 15 class InfoBar;
16 class InfoBarService; 16 class InfoBarService;
17 class InsecureContentInfoBarDelegate; 17 class InsecureContentInfoBarDelegate;
18 class LinkInfoBarDelegate; 18 class LinkInfoBarDelegate;
19 class MediaStreamInfoBarDelegate; 19 class MediaStreamInfoBarDelegate;
20 class PluginInstallerInfoBarDelegate; 20 class PluginInstallerInfoBarDelegate;
21 class RegisterProtocolHandlerInfoBarDelegate; 21 class RegisterProtocolHandlerInfoBarDelegate;
22 class SavePasswordInfoBarDelegate; 22 class SavePasswordInfoBarDelegate;
23 class ThemeInstalledInfoBarDelegate; 23 class ThemeInstalledInfoBarDelegate;
24 class ThreeDAPIInfoBarDelegate;
24 class TranslateInfoBarDelegate; 25 class TranslateInfoBarDelegate;
25 26
26 namespace gfx { 27 namespace gfx {
27 class Image; 28 class Image;
28 } 29 }
29 namespace content { 30 namespace content {
30 struct LoadCommittedDetails; 31 struct LoadCommittedDetails;
31 } 32 }
32 33
33 // An interface implemented by objects wishing to control an InfoBar. 34 // An interface implemented by objects wishing to control an InfoBar.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Type-checking downcast routines: 99 // Type-checking downcast routines:
99 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); 100 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate();
100 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); 101 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate();
101 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); 102 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate();
102 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); 103 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate();
103 virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate(); 104 virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate();
104 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); 105 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate();
105 virtual RegisterProtocolHandlerInfoBarDelegate* 106 virtual RegisterProtocolHandlerInfoBarDelegate*
106 AsRegisterProtocolHandlerInfoBarDelegate(); 107 AsRegisterProtocolHandlerInfoBarDelegate();
107 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); 108 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate();
109 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate();
108 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); 110 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();
109 111
110 protected: 112 protected:
111 // If |contents| is non-NULL, its active entry's unique ID will be stored 113 // If |contents| is non-NULL, its active entry's unique ID will be stored
112 // using StoreActiveEntryUniqueID automatically. 114 // using StoreActiveEntryUniqueID automatically.
113 explicit InfoBarDelegate(InfoBarService* infobar_service); 115 explicit InfoBarDelegate(InfoBarService* infobar_service);
114 116
115 // Store the unique id for the active entry in the specified WebContents, to 117 // Store the unique id for the active entry in the specified WebContents, to
116 // be used later upon navigation to determine if this InfoBarDelegate should 118 // be used later upon navigation to determine if this InfoBarDelegate should
117 // be expired from |contents_|. 119 // be expired from |contents_|.
(...skipping 18 matching lines...) Expand all
136 // opened for. Used to help expire on navigations. 138 // opened for. Used to help expire on navigations.
137 int contents_unique_id_; 139 int contents_unique_id_;
138 140
139 // TODO(pkasting): Remove. 141 // TODO(pkasting): Remove.
140 InfoBarService* owner_; 142 InfoBarService* owner_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 144 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
143 }; 145 };
144 146
145 #endif // CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_ 147 #endif // CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/api/infobars/infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698