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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 2629383002: Add functionality to get default media device IDs from user preferences. (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 const MediaStreamRequest& request, 472 const MediaStreamRequest& request,
473 const MediaResponseCallback& callback); 473 const MediaResponseCallback& callback);
474 474
475 // Checks if we have permission to access the microphone or camera. Note that 475 // Checks if we have permission to access the microphone or camera. Note that
476 // this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE 476 // this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE
477 // or MEDIA_DEVICE_VIDEO_CAPTURE. 477 // or MEDIA_DEVICE_VIDEO_CAPTURE.
478 virtual bool CheckMediaAccessPermission(WebContents* web_contents, 478 virtual bool CheckMediaAccessPermission(WebContents* web_contents,
479 const GURL& security_origin, 479 const GURL& security_origin,
480 MediaStreamType type); 480 MediaStreamType type);
481 481
482 // Returns the ID of the default device for the given media device |type|.
483 // If the returned value is an empty string, it means that there is no
484 // default device for the given |type|.
485 virtual std::string GetDefaultMediaDeviceId(WebContents* web_contents,
486 MediaStreamType type);
487
482 #if defined(OS_ANDROID) 488 #if defined(OS_ANDROID)
483 // Asks permission to decode media stream. After permission is determined, 489 // Asks permission to decode media stream. After permission is determined,
484 // |callback| will be called with the result. 490 // |callback| will be called with the result.
485 virtual void RequestMediaDecodePermission( 491 virtual void RequestMediaDecodePermission(
486 WebContents* web_contents, 492 WebContents* web_contents,
487 const base::Callback<void(bool)>& callback); 493 const base::Callback<void(bool)>& callback);
488 494
489 // Creates a view embedding the video view. 495 // Creates a view embedding the video view.
490 virtual base::android::ScopedJavaLocalRef<jobject> 496 virtual base::android::ScopedJavaLocalRef<jobject>
491 GetContentVideoViewEmbedder(); 497 GetContentVideoViewEmbedder();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 // Called when |this| is no longer the WebContentsDelegate for |source|. 573 // Called when |this| is no longer the WebContentsDelegate for |source|.
568 void Detach(WebContents* source); 574 void Detach(WebContents* source);
569 575
570 // The WebContents that this is currently a delegate for. 576 // The WebContents that this is currently a delegate for.
571 std::set<WebContents*> attached_contents_; 577 std::set<WebContents*> attached_contents_;
572 }; 578 };
573 579
574 } // namespace content 580 } // namespace content
575 581
576 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 582 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698