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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 | 589 |
589 // Allows to override browser Mojo services exposed through the | 590 // Allows to override browser Mojo services exposed through the |
590 // RenderProcessHost. | 591 // RenderProcessHost. |
591 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} | 592 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} |
592 | 593 |
593 // Registers additional navigator.connect service factories available in a | 594 // Registers additional navigator.connect service factories available in a |
594 // particular NavigatorConnectContext. | 595 // particular NavigatorConnectContext. |
595 virtual void GetAdditionalNavigatorConnectServices( | 596 virtual void GetAdditionalNavigatorConnectServices( |
596 const scoped_refptr<NavigatorConnectContext>& context) {} | 597 const scoped_refptr<NavigatorConnectContext>& context) {} |
597 | 598 |
| 599 // Allows to override the visibility state of a RenderFrameHost. |
| 600 // |visibility_state| should not be null. It will only be set if needed. |
| 601 virtual void OverridePageVisibilityState( |
| 602 RenderFrameHost* render_frame_host, |
| 603 blink::WebPageVisibilityState* visibility_state) {} |
| 604 |
598 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 605 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
599 // Populates |mappings| with all files that need to be mapped before launching | 606 // Populates |mappings| with all files that need to be mapped before launching |
600 // a child process. | 607 // a child process. |
601 virtual void GetAdditionalMappedFilesForChildProcess( | 608 virtual void GetAdditionalMappedFilesForChildProcess( |
602 const base::CommandLine& command_line, | 609 const base::CommandLine& command_line, |
603 int child_process_id, | 610 int child_process_id, |
604 FileDescriptorInfo* mappings) {} | 611 FileDescriptorInfo* mappings) {} |
605 #endif | 612 #endif |
606 | 613 |
607 #if defined(OS_WIN) | 614 #if defined(OS_WIN) |
(...skipping 11 matching lines...) Expand all Loading... |
619 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 626 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
620 // implementation. Return nullptr to disable external surface video. | 627 // implementation. Return nullptr to disable external surface video. |
621 virtual ExternalVideoSurfaceContainer* | 628 virtual ExternalVideoSurfaceContainer* |
622 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 629 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
623 #endif | 630 #endif |
624 }; | 631 }; |
625 | 632 |
626 } // namespace content | 633 } // namespace content |
627 | 634 |
628 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 635 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |