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

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

Issue 2307083002: Cleanup: move WebRTC related files from chrome/browser/media to chrome/browser/media/webrtc/ (Closed)
Patch Set: Removed file wrongly resuscitated during rebase Created 4 years, 3 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_android.h b/chrome/browser/media/media_stream_infobar_delegate_android.h
deleted file mode 100644
index ed811a96b6042224acdd38f507b89d95250c8a09..0000000000000000000000000000000000000000
--- a/chrome/browser/media/media_stream_infobar_delegate_android.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 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_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 "chrome/browser/permissions/grouped_permission_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 MediaStreamInfoBarDelegateAndroid
- : public GroupedPermissionInfoBarDelegate {
- public:
- ~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
- // found, or just adds the new infobar otherwise. Returns whether an infobar
- // was created.
- static bool Create(content::WebContents* web_contents,
- std::unique_ptr<MediaStreamDevicesController> controller);
-
- private:
- friend class WebRtcTestBase;
-
- explicit MediaStreamInfoBarDelegateAndroid(
- std::unique_ptr<MediaStreamDevicesController> controller);
-
- // ConfirmInfoBarDelegate:
- infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
- void InfoBarDismissed() override;
- MediaStreamInfoBarDelegateAndroid* AsMediaStreamInfoBarDelegateAndroid()
- override;
- bool Accept() override;
- bool Cancel() override;
-
- std::unique_ptr<MediaStreamDevicesController> controller_;
-
- DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegateAndroid);
-};
-
-#endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698