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

Unified Diff: chrome/browser/media/media_stream_infobar_delegate_android.h

Issue 1392023004: Rename android only infobars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try again Created 5 years, 2 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/media/media_stream_infobar_delegate_android.h
diff --git a/chrome/browser/media/media_stream_infobar_delegate.h b/chrome/browser/media/media_stream_infobar_delegate_android.h
similarity index 75%
rename from chrome/browser/media/media_stream_infobar_delegate.h
rename to chrome/browser/media/media_stream_infobar_delegate_android.h
index 461c0b0fbd9c6e0ca555107c164c5be67d455cb4..52243c1e80019e32c4035464e356e8b74dd8ed3c 100644
--- a/chrome/browser/media/media_stream_infobar_delegate.h
+++ b/chrome/browser/media/media_stream_infobar_delegate_android.h
@@ -2,24 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_H_
+#ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_
+#define CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_
#include <string>
#include "base/compiler_specific.h"
+#include "base/macros.h"
#include "chrome/browser/media/media_stream_devices_controller.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
-
// This class configures an infobar shown when a page requests access to a
// user's microphone and/or video camera. The user is shown a message asking
// which audio and/or video devices he wishes to use with the current page, and
// buttons to give access to the selected devices to the page, or to deny access
// to them.
-class MediaStreamInfoBarDelegate : public ConfirmInfoBarDelegate {
+class MediaStreamInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
public:
- ~MediaStreamInfoBarDelegate() override;
+ ~MediaStreamInfoBarDelegateAndroid() override;
// Prompts the user by creating a media stream infobar and delegate,
// then checks for an existing infobar for |web_contents| and replaces it if
@@ -34,14 +34,15 @@ class MediaStreamInfoBarDelegate : public ConfirmInfoBarDelegate {
private:
friend class WebRtcTestBase;
- explicit MediaStreamInfoBarDelegate(
+ explicit MediaStreamInfoBarDelegateAndroid(
scoped_ptr<MediaStreamDevicesController> controller);
// ConfirmInfoBarDelegate:
Type GetInfoBarType() const override;
int GetIconId() const override;
void InfoBarDismissed() override;
- MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate() override;
+ MediaStreamInfoBarDelegateAndroid* AsMediaStreamInfoBarDelegateAndroid()
+ override;
base::string16 GetMessageText() const override;
base::string16 GetButtonLabel(InfoBarButton button) const override;
bool Accept() override;
@@ -51,7 +52,7 @@ class MediaStreamInfoBarDelegate : public ConfirmInfoBarDelegate {
scoped_ptr<MediaStreamDevicesController> controller_;
- DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegate);
+ DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegateAndroid);
};
-#endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_H_
+#endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698