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

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

Issue 1125333003: Remove CheckMediaAccessPermission() from ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 // pp::FileIO::RequestOSFileHandle. 561 // pp::FileIO::RequestOSFileHandle.
562 virtual bool IsPluginAllowedToCallRequestOSFileHandle( 562 virtual bool IsPluginAllowedToCallRequestOSFileHandle(
563 BrowserContext* browser_context, 563 BrowserContext* browser_context,
564 const GURL& url); 564 const GURL& url);
565 565
566 // Returns true if dev channel APIs are available for plugins. 566 // Returns true if dev channel APIs are available for plugins.
567 virtual bool IsPluginAllowedToUseDevChannelAPIs( 567 virtual bool IsPluginAllowedToUseDevChannelAPIs(
568 BrowserContext* browser_context, 568 BrowserContext* browser_context,
569 const GURL& url); 569 const GURL& url);
570 570
571 // Checks if |security_origin| has permission to access the microphone or
572 // camera. Note that this does not query the user. |type| must be
573 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
574 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context,
575 const GURL& security_origin,
576 MediaStreamType type);
577
578 // Allows to override browser Mojo services exposed through the 571 // Allows to override browser Mojo services exposed through the
579 // RenderProcessHost. 572 // RenderProcessHost.
580 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} 573 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {}
581 574
582 // Registers additional navigator.connect service factories available in a 575 // Registers additional navigator.connect service factories available in a
583 // particular NavigatorConnectContext. 576 // particular NavigatorConnectContext.
584 virtual void GetAdditionalNavigatorConnectServices( 577 virtual void GetAdditionalNavigatorConnectServices(
585 const scoped_refptr<NavigatorConnectContext>& context) {} 578 const scoped_refptr<NavigatorConnectContext>& context) {}
586 579
587 // Allows to override the visibility state of a RenderFrameHost. 580 // Allows to override the visibility state of a RenderFrameHost.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 622 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
630 // implementation. Return nullptr to disable external surface video. 623 // implementation. Return nullptr to disable external surface video.
631 virtual ExternalVideoSurfaceContainer* 624 virtual ExternalVideoSurfaceContainer*
632 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 625 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
633 #endif 626 #endif
634 }; 627 };
635 628
636 } // namespace content 629 } // namespace content
637 630
638 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 631 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/media_capture_devices_dispatcher.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698