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

Unified Diff: chrome/browser/android/media/media_throttle_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/media/media_throttle_infobar_delegate.h
diff --git a/chrome/browser/android/media/media_throttle_infobar_delegate.h b/chrome/browser/android/media/media_throttle_infobar_delegate.h
deleted file mode 100644
index 621f16a4fec844bf2b5dd5e86b7147d0688ad16f..0000000000000000000000000000000000000000
--- a/chrome/browser/android/media/media_throttle_infobar_delegate.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "components/infobars/core/confirm_infobar_delegate.h"
-
-namespace content {
-class WebContents;
-}
-
-enum UMAThrottleInfobarResponse {
- UMA_THROTTLE_INFOBAR_NO_RESPONSE,
- UMA_THROTTLE_INFOBAR_TRY_AGAIN,
- UMA_THROTTLE_INFOBAR_WAIT,
- UMA_THROTTLE_INFOBAR_DISMISSED,
- // NOTE: Add responses only immediately above this line. Make sure to
- // update the enum list in tools/metrics/histograms/histograms.xml
- // accordingly.
- UMA_THROTTLE_INFOBAR_RESPONSE_COUNT
-};
-
-class MediaThrottleInfoBarDelegate : public ConfirmInfoBarDelegate {
- public:
- typedef base::Callback<void(bool)> DecodeRequestGrantedCallback;
- ~MediaThrottleInfoBarDelegate() override;
-
- // Static method to create the object
- static void Create(
- content::WebContents* web_contents,
- const DecodeRequestGrantedCallback& callback);
-
- private:
- explicit MediaThrottleInfoBarDelegate(
- const DecodeRequestGrantedCallback& callback);
-
- // ConfirmInfoBarDelegate:
- infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
- MediaThrottleInfoBarDelegate* AsMediaThrottleInfoBarDelegate() override;
- base::string16 GetMessageText() const override;
- int GetIconId() const override;
- base::string16 GetButtonLabel(InfoBarButton button) const override;
- bool Accept() override;
- bool Cancel() override;
- void InfoBarDismissed() override;
-
- UMAThrottleInfobarResponse infobar_response_;
-
- DecodeRequestGrantedCallback decode_granted_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(MediaThrottleInfoBarDelegate);
-};
-
-#endif // CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698