| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 content::WebContents* web_contents, | 24 content::WebContents* web_contents, |
| 25 const DecodeRequestGrantedCallback& callback); | 25 const DecodeRequestGrantedCallback& callback); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 explicit MediaThrottleInfoBarDelegate( | 28 explicit MediaThrottleInfoBarDelegate( |
| 29 const DecodeRequestGrantedCallback& callback); | 29 const DecodeRequestGrantedCallback& callback); |
| 30 | 30 |
| 31 // ConfirmInfoBarDelegate: | 31 // ConfirmInfoBarDelegate: |
| 32 MediaThrottleInfoBarDelegate* AsMediaThrottleInfoBarDelegate() override; | 32 MediaThrottleInfoBarDelegate* AsMediaThrottleInfoBarDelegate() override; |
| 33 base::string16 GetMessageText() const override; | 33 base::string16 GetMessageText() const override; |
| 34 int GetIconId() const override; |
| 34 base::string16 GetButtonLabel(InfoBarButton button) const override; | 35 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 35 bool Accept() override; | 36 bool Accept() override; |
| 36 bool Cancel() override; | 37 bool Cancel() override; |
| 37 void InfoBarDismissed() override; | 38 void InfoBarDismissed() override; |
| 38 | 39 |
| 39 DecodeRequestGrantedCallback decode_granted_callback_; | 40 DecodeRequestGrantedCallback decode_granted_callback_; |
| 40 | 41 |
| 41 DISALLOW_COPY_AND_ASSIGN(MediaThrottleInfoBarDelegate); | 42 DISALLOW_COPY_AND_ASSIGN(MediaThrottleInfoBarDelegate); |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 #endif // CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ | 45 #endif // CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |