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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1416123005: Implement setSinkId() for media elements without src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More jochen's comments 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: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index e5146f415d8201e860b63d368a8b865fbc381c49..16cbe135822dc7c43b26ce7a61c59d845ef68991 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
#define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
+#include <string>
#include <vector>
#include "base/basictypes.h"
@@ -25,6 +26,7 @@
#include "content/renderer/render_frame_proxy.h"
#include "content/renderer/renderer_webcookiejar_impl.h"
#include "ipc/ipc_message.h"
+#include "media/base/output_device.h"
#include "media/blink/webmediaplayer_delegate.h"
#include "media/blink/webmediaplayer_params.h"
#include "mojo/application/public/interfaces/service_provider.mojom.h"
@@ -883,6 +885,20 @@ class CONTENT_EXPORT RenderFrameImpl
// ServiceProvider.
mojo::ServiceProviderPtr ConnectToApplication(const GURL& url);
+ // Asynchronously checks that |sink_id| exists and is authorized to be used
+ // on |security_origin|.
+ void checkIfAudioSinkExistsAndIsAuthorized(
+ const blink::WebString& sink_id,
+ const blink::WebSecurityOrigin& security_origin,
+ blink::WebSetSinkIdCallbacks* callback) override;
+
+ // Checks that |device_id| exists and is authorized to be used on
+ // |security_origin|.
+ void DoCheckIfAudioSinkExistsAndIsAuthorized(
+ const std::string& device_id,
+ const url::Origin& security_origin,
+ const media::SwitchOutputDeviceCB& callback);
+
// Stores the WebLocalFrame we are associated with. This is null from the
// constructor until SetWebFrame is called, and it is null after
// frameDetached is called until destruction (which is asynchronous in the

Powered by Google App Engine
This is Rietveld 408576698