| 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" |
| 11 #include "base/macros.h" |
| 11 #include "components/infobars/core/confirm_infobar_delegate.h" | 12 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 class WebContents; | 15 class WebContents; |
| 15 } | 16 } |
| 16 | 17 |
| 17 enum UMAThrottleInfobarResponse { | 18 enum UMAThrottleInfobarResponse { |
| 18 UMA_THROTTLE_INFOBAR_NO_RESPONSE, | 19 UMA_THROTTLE_INFOBAR_NO_RESPONSE, |
| 19 UMA_THROTTLE_INFOBAR_TRY_AGAIN, | 20 UMA_THROTTLE_INFOBAR_TRY_AGAIN, |
| 20 UMA_THROTTLE_INFOBAR_WAIT, | 21 UMA_THROTTLE_INFOBAR_WAIT, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 49 void InfoBarDismissed() override; | 50 void InfoBarDismissed() override; |
| 50 | 51 |
| 51 UMAThrottleInfobarResponse infobar_response_; | 52 UMAThrottleInfobarResponse infobar_response_; |
| 52 | 53 |
| 53 DecodeRequestGrantedCallback decode_granted_callback_; | 54 DecodeRequestGrantedCallback decode_granted_callback_; |
| 54 | 55 |
| 55 DISALLOW_COPY_AND_ASSIGN(MediaThrottleInfoBarDelegate); | 56 DISALLOW_COPY_AND_ASSIGN(MediaThrottleInfoBarDelegate); |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 #endif // CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ | 59 #endif // CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |