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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/task_scheduler/task_scheduler.h" | 17 #include "base/task_scheduler/task_scheduler.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "content/public/browser/certificate_request_result_type.h" | 20 #include "content/public/browser/certificate_request_result_type.h" |
21 #include "content/public/browser/navigation_throttle.h" | 21 #include "content/public/browser/navigation_throttle.h" |
| 22 #include "content/public/common/associated_interface_registry.h" |
22 #include "content/public/common/content_client.h" | 23 #include "content/public/common/content_client.h" |
23 #include "content/public/common/media_stream_request.h" | 24 #include "content/public/common/media_stream_request.h" |
24 #include "content/public/common/resource_type.h" | 25 #include "content/public/common/resource_type.h" |
25 #include "content/public/common/service_info.h" | 26 #include "content/public/common/service_info.h" |
26 #include "content/public/common/socket_permission_request.h" | 27 #include "content/public/common/socket_permission_request.h" |
27 #include "content/public/common/window_container_type.mojom.h" | 28 #include "content/public/common/window_container_type.mojom.h" |
28 #include "media/audio/audio_manager.h" | 29 #include "media/audio/audio_manager.h" |
29 #include "media/media_features.h" | 30 #include "media/media_features.h" |
30 #include "media/mojo/interfaces/remoting.mojom.h" | 31 #include "media/mojo/interfaces/remoting.mojom.h" |
31 #include "net/base/mime_util.h" | 32 #include "net/base/mime_util.h" |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 // returning a random GUID. | 659 // returning a random GUID. |
659 virtual std::string GetServiceUserIdForBrowserContext( | 660 virtual std::string GetServiceUserIdForBrowserContext( |
660 BrowserContext* browser_context); | 661 BrowserContext* browser_context); |
661 | 662 |
662 // Allows to register browser interfaces exposed through the | 663 // Allows to register browser interfaces exposed through the |
663 // RenderProcessHost. Note that interface factory callbacks added to | 664 // RenderProcessHost. Note that interface factory callbacks added to |
664 // |registry| will by default be run immediately on the IO thread, unless a | 665 // |registry| will by default be run immediately on the IO thread, unless a |
665 // task runner is provided. | 666 // task runner is provided. |
666 virtual void ExposeInterfacesToRenderer( | 667 virtual void ExposeInterfacesToRenderer( |
667 service_manager::BinderRegistry* registry, | 668 service_manager::BinderRegistry* registry, |
| 669 AssociatedInterfaceRegistry* associated_registry, |
668 RenderProcessHost* render_process_host) {} | 670 RenderProcessHost* render_process_host) {} |
669 | 671 |
670 // Called when RenderFrameHostImpl connects to the Media service. Expose | 672 // Called when RenderFrameHostImpl connects to the Media service. Expose |
671 // interfaces to the service using |registry|. | 673 // interfaces to the service using |registry|. |
672 virtual void ExposeInterfacesToMediaService( | 674 virtual void ExposeInterfacesToMediaService( |
673 service_manager::InterfaceRegistry* registry, | 675 service_manager::InterfaceRegistry* registry, |
674 RenderFrameHost* render_frame_host) {} | 676 RenderFrameHost* render_frame_host) {} |
675 | 677 |
676 // Allows to register browser Mojo interfaces exposed through the | 678 // Allows to register browser Mojo interfaces exposed through the |
677 // RenderFrameHost. | 679 // RenderFrameHost. |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 833 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
832 | 834 |
833 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 835 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
834 // this platform will experimentally be redirected to TaskScheduler. | 836 // this platform will experimentally be redirected to TaskScheduler. |
835 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 837 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
836 }; | 838 }; |
837 | 839 |
838 } // namespace content | 840 } // namespace content |
839 | 841 |
840 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 842 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |