| OLD | NEW |
| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 class DesktopNotificationDelegate; | 93 class DesktopNotificationDelegate; |
| 94 class DevToolsManagerDelegate; | 94 class DevToolsManagerDelegate; |
| 95 class ExternalVideoSurfaceContainer; | 95 class ExternalVideoSurfaceContainer; |
| 96 class LocationProvider; | 96 class LocationProvider; |
| 97 class MediaObserver; | 97 class MediaObserver; |
| 98 class QuotaPermissionContext; | 98 class QuotaPermissionContext; |
| 99 class RenderFrameHost; | 99 class RenderFrameHost; |
| 100 class RenderProcessHost; | 100 class RenderProcessHost; |
| 101 class RenderViewHost; | 101 class RenderViewHost; |
| 102 class ResourceContext; | 102 class ResourceContext; |
| 103 class ServiceRegistry; |
| 103 class SiteInstance; | 104 class SiteInstance; |
| 104 class SpeechRecognitionManagerDelegate; | 105 class SpeechRecognitionManagerDelegate; |
| 105 class VibrationProvider; | 106 class VibrationProvider; |
| 106 class WebContents; | 107 class WebContents; |
| 107 class WebContentsViewDelegate; | 108 class WebContentsViewDelegate; |
| 108 struct MainFunctionParams; | 109 struct MainFunctionParams; |
| 109 struct Referrer; | 110 struct Referrer; |
| 110 struct ShowDesktopNotificationHostMsgParams; | 111 struct ShowDesktopNotificationHostMsgParams; |
| 111 struct WebPreferences; | 112 struct WebPreferences; |
| 112 | 113 |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 virtual bool IsPluginAllowedToUseDevChannelAPIs( | 588 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
| 588 BrowserContext* browser_context, | 589 BrowserContext* browser_context, |
| 589 const GURL& url); | 590 const GURL& url); |
| 590 | 591 |
| 591 // Returns a special cookie store to use for a given render process, or NULL | 592 // Returns a special cookie store to use for a given render process, or NULL |
| 592 // if the default cookie store should be used | 593 // if the default cookie store should be used |
| 593 // This is called on the IO thread. | 594 // This is called on the IO thread. |
| 594 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | 595 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( |
| 595 int render_process_id); | 596 int render_process_id); |
| 596 | 597 |
| 598 // Checks if |security_origin| has permission to access the microphone or |
| 599 // camera. Note that this does not query the user. |type| must be |
| 600 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
| 601 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
| 602 const GURL& security_origin, |
| 603 MediaStreamType type); |
| 604 |
| 605 // Allows to override browser Mojo services exposed through the |
| 606 // RenderProcessHost. |
| 607 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} |
| 608 |
| 597 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 609 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 598 // Populates |mappings| with all files that need to be mapped before launching | 610 // Populates |mappings| with all files that need to be mapped before launching |
| 599 // a child process. | 611 // a child process. |
| 600 virtual void GetAdditionalMappedFilesForChildProcess( | 612 virtual void GetAdditionalMappedFilesForChildProcess( |
| 601 const base::CommandLine& command_line, | 613 const base::CommandLine& command_line, |
| 602 int child_process_id, | 614 int child_process_id, |
| 603 FileDescriptorInfo* mappings) {} | 615 FileDescriptorInfo* mappings) {} |
| 604 #endif | 616 #endif |
| 605 | 617 |
| 606 #if defined(OS_WIN) | 618 #if defined(OS_WIN) |
| 607 // Returns the name of the dll that contains cursors and other resources. | 619 // Returns the name of the dll that contains cursors and other resources. |
| 608 virtual const wchar_t* GetResourceDllName(); | 620 virtual const wchar_t* GetResourceDllName(); |
| 609 | 621 |
| 610 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 622 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
| 611 // is launched. It gives the embedder a chance to add loosen the sandbox | 623 // is launched. It gives the embedder a chance to add loosen the sandbox |
| 612 // policy. | 624 // policy. |
| 613 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 625 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
| 614 bool* success) {} | 626 bool* success) {} |
| 615 #endif | 627 #endif |
| 616 | 628 |
| 617 #if defined(VIDEO_HOLE) | 629 #if defined(VIDEO_HOLE) |
| 618 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 630 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 619 // implementation. Return NULL to disable external surface video. | 631 // implementation. Return NULL to disable external surface video. |
| 620 virtual ExternalVideoSurfaceContainer* | 632 virtual ExternalVideoSurfaceContainer* |
| 621 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 633 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 622 #endif | 634 #endif |
| 623 | |
| 624 // Checks if |security_origin| has permission to access the microphone or | |
| 625 // camera. Note that this does not query the user. |type| must be | |
| 626 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | |
| 627 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | |
| 628 const GURL& security_origin, | |
| 629 MediaStreamType type); | |
| 630 }; | 635 }; |
| 631 | 636 |
| 632 } // namespace content | 637 } // namespace content |
| 633 | 638 |
| 634 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 639 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |