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 10 matching lines...) Expand all Loading... |
21 #include "content/public/common/media_stream_request.h" | 21 #include "content/public/common/media_stream_request.h" |
22 #include "content/public/common/permission_status.mojom.h" | 22 #include "content/public/common/permission_status.mojom.h" |
23 #include "content/public/common/resource_type.h" | 23 #include "content/public/common/resource_type.h" |
24 #include "content/public/common/socket_permission_request.h" | 24 #include "content/public/common/socket_permission_request.h" |
25 #include "content/public/common/window_container_type.h" | 25 #include "content/public/common/window_container_type.h" |
26 #include "net/base/mime_util.h" | 26 #include "net/base/mime_util.h" |
27 #include "net/cookies/canonical_cookie.h" | 27 #include "net/cookies/canonical_cookie.h" |
28 #include "net/url_request/url_request_interceptor.h" | 28 #include "net/url_request/url_request_interceptor.h" |
29 #include "net/url_request/url_request_job_factory.h" | 29 #include "net/url_request/url_request_job_factory.h" |
30 #include "storage/browser/fileapi/file_system_context.h" | 30 #include "storage/browser/fileapi/file_system_context.h" |
| 31 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
31 #include "ui/base/window_open_disposition.h" | 32 #include "ui/base/window_open_disposition.h" |
32 | 33 |
33 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 34 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
34 #include "base/posix/global_descriptors.h" | 35 #include "base/posix/global_descriptors.h" |
35 #endif | 36 #endif |
36 | 37 |
37 #if defined(OS_POSIX) | 38 #if defined(OS_POSIX) |
38 #include "content/public/browser/file_descriptor_info.h" | 39 #include "content/public/browser/file_descriptor_info.h" |
39 #endif | 40 #endif |
40 | 41 |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 // camera. Note that this does not query the user. |type| must be | 582 // camera. Note that this does not query the user. |type| must be |
582 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | 583 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
583 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | 584 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
584 const GURL& security_origin, | 585 const GURL& security_origin, |
585 MediaStreamType type); | 586 MediaStreamType type); |
586 | 587 |
587 // Allows to override browser Mojo services exposed through the | 588 // Allows to override browser Mojo services exposed through the |
588 // RenderProcessHost. | 589 // RenderProcessHost. |
589 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} | 590 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} |
590 | 591 |
| 592 // Allows to override the visibility state of a RenderFrameHost. |
| 593 // |visibility_state| should not be null. It will only be set if needed. |
| 594 virtual void OverridePageVisibilityState( |
| 595 RenderFrameHost* render_frame_host, |
| 596 blink::WebPageVisibilityState* visibility_state) {} |
| 597 |
591 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 598 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
592 // Populates |mappings| with all files that need to be mapped before launching | 599 // Populates |mappings| with all files that need to be mapped before launching |
593 // a child process. | 600 // a child process. |
594 virtual void GetAdditionalMappedFilesForChildProcess( | 601 virtual void GetAdditionalMappedFilesForChildProcess( |
595 const base::CommandLine& command_line, | 602 const base::CommandLine& command_line, |
596 int child_process_id, | 603 int child_process_id, |
597 FileDescriptorInfo* mappings) {} | 604 FileDescriptorInfo* mappings) {} |
598 #endif | 605 #endif |
599 | 606 |
600 #if defined(OS_WIN) | 607 #if defined(OS_WIN) |
(...skipping 11 matching lines...) Expand all Loading... |
612 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 619 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
613 // implementation. Return nullptr to disable external surface video. | 620 // implementation. Return nullptr to disable external surface video. |
614 virtual ExternalVideoSurfaceContainer* | 621 virtual ExternalVideoSurfaceContainer* |
615 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 622 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
616 #endif | 623 #endif |
617 }; | 624 }; |
618 | 625 |
619 } // namespace content | 626 } // namespace content |
620 | 627 |
621 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 628 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |