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

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

Issue 2794283003: Remove MediaThrottler and MediaThrottleInfoBar (Closed)
Patch Set: Deleted Java code Created 3 years, 8 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;
27 26
28 namespace offline_pages { 27 namespace offline_pages {
29 class OfflinePageInfoBarDelegate; 28 class OfflinePageInfoBarDelegate;
30 } 29 }
31 #endif 30 #endif
32 31
33 namespace translate { 32 namespace translate {
34 class TranslateInfoBarDelegate; 33 class TranslateInfoBarDelegate;
35 } 34 }
36 35
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 TEST_INFOBAR = 0, 73 TEST_INFOBAR = 0,
75 APP_BANNER_INFOBAR_DELEGATE_ANDROID = 1, 74 APP_BANNER_INFOBAR_DELEGATE_ANDROID = 1,
76 APP_BANNER_INFOBAR_DELEGATE_DESKTOP = 2, 75 APP_BANNER_INFOBAR_DELEGATE_DESKTOP = 2,
77 ANDROID_DOWNLOAD_MANAGER_DUPLICATE_INFOBAR_DELEGATE = 3, 76 ANDROID_DOWNLOAD_MANAGER_DUPLICATE_INFOBAR_DELEGATE = 3,
78 CHROME_DUPLICATE_DOWNLOAD_INFOBAR_DELEGATE = 4, 77 CHROME_DUPLICATE_DOWNLOAD_INFOBAR_DELEGATE = 4,
79 DOWNLOAD_REQUEST_INFOBAR_DELEGATE_ANDROID = 5, 78 DOWNLOAD_REQUEST_INFOBAR_DELEGATE_ANDROID = 5,
80 // Removed: FULLSCREEN_INFOBAR_DELEGATE = 6, 79 // Removed: FULLSCREEN_INFOBAR_DELEGATE = 6,
81 HUNG_PLUGIN_INFOBAR_DELEGATE = 7, 80 HUNG_PLUGIN_INFOBAR_DELEGATE = 7,
82 HUNG_RENDERER_INFOBAR_DELEGATE = 8, 81 HUNG_RENDERER_INFOBAR_DELEGATE = 8,
83 MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID = 9, 82 MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID = 9,
84 MEDIA_THROTTLE_INFOBAR_DELEGATE = 10, 83 MEDIA_THROTTLE_INFOBAR_DELEGATE = 10,
Peter Kasting 2017/04/11 00:41:24 Nit: Comment out with "Removed" as elsewhere
85 REQUEST_QUOTA_INFOBAR_DELEGATE = 11, 84 REQUEST_QUOTA_INFOBAR_DELEGATE = 11,
86 DEV_TOOLS_CONFIRM_INFOBAR_DELEGATE = 12, 85 DEV_TOOLS_CONFIRM_INFOBAR_DELEGATE = 12,
87 EXTENSION_DEV_TOOLS_INFOBAR_DELEGATE = 13, 86 EXTENSION_DEV_TOOLS_INFOBAR_DELEGATE = 13,
88 INCOGNITO_CONNECTABILITY_INFOBAR_DELEGATE = 14, 87 INCOGNITO_CONNECTABILITY_INFOBAR_DELEGATE = 14,
89 THEME_INSTALLED_INFOBAR_DELEGATE = 15, 88 THEME_INSTALLED_INFOBAR_DELEGATE = 15,
90 GEOLOCATION_INFOBAR_DELEGATE_ANDROID = 16, 89 GEOLOCATION_INFOBAR_DELEGATE_ANDROID = 16,
91 THREE_D_API_INFOBAR_DELEGATE = 17, 90 THREE_D_API_INFOBAR_DELEGATE = 17,
92 // Removed: INSECURE_CONTENT_INFOBAR_DELEGATE = 18, 91 // Removed: INSECURE_CONTENT_INFOBAR_DELEGATE = 18,
93 MIDI_PERMISSION_INFOBAR_DELEGATE_ANDROID = 19, 92 MIDI_PERMISSION_INFOBAR_DELEGATE_ANDROID = 19,
94 PROTECTED_MEDIA_IDENTIFIER_INFOBAR_DELEGATE_ANDROID = 20, 93 PROTECTED_MEDIA_IDENTIFIER_INFOBAR_DELEGATE_ANDROID = 20,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); 221 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate();
223 virtual RegisterProtocolHandlerInfoBarDelegate* 222 virtual RegisterProtocolHandlerInfoBarDelegate*
224 AsRegisterProtocolHandlerInfoBarDelegate(); 223 AsRegisterProtocolHandlerInfoBarDelegate();
225 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); 224 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate();
226 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); 225 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate();
227 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate(); 226 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate();
228 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); 227 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();
229 #if defined(OS_ANDROID) 228 #if defined(OS_ANDROID)
230 virtual MediaStreamInfoBarDelegateAndroid* 229 virtual MediaStreamInfoBarDelegateAndroid*
231 AsMediaStreamInfoBarDelegateAndroid(); 230 AsMediaStreamInfoBarDelegateAndroid();
232 virtual MediaThrottleInfoBarDelegate* AsMediaThrottleInfoBarDelegate();
233 virtual offline_pages::OfflinePageInfoBarDelegate* 231 virtual offline_pages::OfflinePageInfoBarDelegate*
234 AsOfflinePageInfoBarDelegate(); 232 AsOfflinePageInfoBarDelegate();
235 #endif 233 #endif
236 234
237 void set_infobar(InfoBar* infobar) { infobar_ = infobar; } 235 void set_infobar(InfoBar* infobar) { infobar_ = infobar; }
238 void set_nav_entry_id(int nav_entry_id) { nav_entry_id_ = nav_entry_id; } 236 void set_nav_entry_id(int nav_entry_id) { nav_entry_id_ = nav_entry_id; }
239 237
240 protected: 238 protected:
241 InfoBarDelegate(); 239 InfoBarDelegate();
242 240
243 InfoBar* infobar() { return infobar_; } 241 InfoBar* infobar() { return infobar_; }
244 242
245 private: 243 private:
246 // The InfoBar associated with us. 244 // The InfoBar associated with us.
247 InfoBar* infobar_; 245 InfoBar* infobar_;
248 246
249 // The ID of the active navigation entry at the time we became owned. 247 // The ID of the active navigation entry at the time we became owned.
250 int nav_entry_id_; 248 int nav_entry_id_;
251 249
252 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 250 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
253 }; 251 };
254 252
255 } // namespace infobars 253 } // namespace infobars
256 254
257 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 255 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/tab_web_contents_delegate_android.cc ('k') | components/infobars/core/infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698