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

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

Issue 483523006: Check all settings when checking mic and camera access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix for Android. Created 6 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 unified diff | Download patch | Annotate | Revision Log
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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "content/public/browser/certificate_request_result_type.h" 18 #include "content/public/browser/certificate_request_result_type.h"
19 #include "content/public/browser/desktop_notification_delegate.h" 19 #include "content/public/browser/desktop_notification_delegate.h"
20 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
21 #include "content/public/common/media_stream_request.h"
21 #include "content/public/common/resource_type.h" 22 #include "content/public/common/resource_type.h"
22 #include "content/public/common/socket_permission_request.h" 23 #include "content/public/common/socket_permission_request.h"
23 #include "content/public/common/window_container_type.h" 24 #include "content/public/common/window_container_type.h"
24 #include "net/base/mime_util.h" 25 #include "net/base/mime_util.h"
25 #include "net/cookies/canonical_cookie.h" 26 #include "net/cookies/canonical_cookie.h"
26 #include "net/url_request/url_request_interceptor.h" 27 #include "net/url_request/url_request_interceptor.h"
27 #include "net/url_request/url_request_job_factory.h" 28 #include "net/url_request/url_request_job_factory.h"
28 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" 29 #include "third_party/WebKit/public/platform/WebNotificationPermission.h"
29 #include "ui/base/window_open_disposition.h" 30 #include "ui/base/window_open_disposition.h"
30 #include "webkit/browser/fileapi/file_system_context.h" 31 #include "webkit/browser/fileapi/file_system_context.h"
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, 631 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy,
631 bool* success) {} 632 bool* success) {}
632 #endif 633 #endif
633 634
634 #if defined(VIDEO_HOLE) 635 #if defined(VIDEO_HOLE)
635 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 636 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
636 // implementation. Return NULL to disable external surface video. 637 // implementation. Return NULL to disable external surface video.
637 virtual ExternalVideoSurfaceContainer* 638 virtual ExternalVideoSurfaceContainer*
638 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 639 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
639 #endif 640 #endif
641
642 // Checks if |security_origin| has permission to access the microphone or
643 // camera. Note that this does not query the user. |type| must be
644 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
645 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context,
jam 2014/09/02 19:56:42 this should be on BrowserContext, since it's a met
646 const GURL& security_origin,
647 MediaStreamType type);
640 }; 648 };
641 649
642 } // namespace content 650 } // namespace content
643 651
644 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698