| 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/content_client.h" | 22 #include "content/public/common/content_client.h" |
| 23 #include "content/public/common/media_stream_request.h" | 23 #include "content/public/common/media_stream_request.h" |
| 24 #include "content/public/common/resource_type.h" | 24 #include "content/public/common/resource_type.h" |
| 25 #include "content/public/common/service_info.h" | 25 #include "content/public/common/service_info.h" |
| 26 #include "content/public/common/socket_permission_request.h" | 26 #include "content/public/common/socket_permission_request.h" |
| 27 #include "content/public/common/window_container_type.mojom.h" | 27 #include "content/public/common/window_container_type.mojom.h" |
| 28 #include "media/audio/audio_manager.h" | |
| 29 #include "media/media_features.h" | 28 #include "media/media_features.h" |
| 30 #include "media/mojo/interfaces/remoting.mojom.h" | 29 #include "media/mojo/interfaces/remoting.mojom.h" |
| 31 #include "net/base/mime_util.h" | 30 #include "net/base/mime_util.h" |
| 32 #include "net/cookies/canonical_cookie.h" | 31 #include "net/cookies/canonical_cookie.h" |
| 33 #include "storage/browser/fileapi/file_system_context.h" | 32 #include "storage/browser/fileapi/file_system_context.h" |
| 34 #include "storage/browser/quota/quota_manager.h" | 33 #include "storage/browser/quota/quota_manager.h" |
| 35 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 34 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 36 #include "third_party/WebKit/public/web/window_features.mojom.h" | 35 #include "third_party/WebKit/public/web/window_features.mojom.h" |
| 37 #include "ui/base/page_transition_types.h" | 36 #include "ui/base/page_transition_types.h" |
| 38 #include "ui/base/window_open_disposition.h" | 37 #include "ui/base/window_open_disposition.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 54 | 53 |
| 55 namespace gfx { | 54 namespace gfx { |
| 56 class ImageSkia; | 55 class ImageSkia; |
| 57 } | 56 } |
| 58 | 57 |
| 59 namespace gpu { | 58 namespace gpu { |
| 60 class GpuChannelEstablishFactory; | 59 class GpuChannelEstablishFactory; |
| 61 } | 60 } |
| 62 | 61 |
| 63 namespace media { | 62 namespace media { |
| 63 class AudioLogFactory; |
| 64 class AudioManager; |
| 64 class CdmFactory; | 65 class CdmFactory; |
| 65 } | 66 } |
| 66 | 67 |
| 67 namespace service_manager { | 68 namespace service_manager { |
| 68 class BinderRegistry; | 69 class BinderRegistry; |
| 69 class InterfaceRegistry; | 70 class InterfaceRegistry; |
| 70 class Service; | 71 class Service; |
| 71 struct ServiceInfo; | 72 struct ServiceInfo; |
| 72 } | 73 } |
| 73 | 74 |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 | 766 |
| 766 // PlzNavigate | 767 // PlzNavigate |
| 767 // Called at the start of the navigation to get opaque data the embedder | 768 // Called at the start of the navigation to get opaque data the embedder |
| 768 // wants to see passed to the corresponding URLRequest on the IO thread. | 769 // wants to see passed to the corresponding URLRequest on the IO thread. |
| 769 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( | 770 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( |
| 770 NavigationHandle* navigation_handle); | 771 NavigationHandle* navigation_handle); |
| 771 | 772 |
| 772 // Allows the embedder to provide its own AudioManager implementation. | 773 // Allows the embedder to provide its own AudioManager implementation. |
| 773 // If this function returns nullptr, a default platform implementation | 774 // If this function returns nullptr, a default platform implementation |
| 774 // will be used. | 775 // will be used. |
| 775 virtual media::ScopedAudioManagerPtr CreateAudioManager( | 776 virtual std::unique_ptr<media::AudioManager> CreateAudioManager( |
| 776 media::AudioLogFactory* audio_log_factory); | 777 media::AudioLogFactory* audio_log_factory); |
| 777 // Creates and returns a factory used for creating CDM instances for playing | 778 // Creates and returns a factory used for creating CDM instances for playing |
| 778 // protected content. | 779 // protected content. |
| 779 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); | 780 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); |
| 780 | 781 |
| 781 // Populates |mappings| with all files that need to be mapped before launching | 782 // Populates |mappings| with all files that need to be mapped before launching |
| 782 // a child process. | 783 // a child process. |
| 783 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 784 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 784 virtual void GetAdditionalMappedFilesForChildProcess( | 785 virtual void GetAdditionalMappedFilesForChildProcess( |
| 785 const base::CommandLine& command_line, | 786 const base::CommandLine& command_line, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 829 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
| 829 | 830 |
| 830 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 831 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
| 831 // this platform will experimentally be redirected to TaskScheduler. | 832 // this platform will experimentally be redirected to TaskScheduler. |
| 832 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 833 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
| 833 }; | 834 }; |
| 834 | 835 |
| 835 } // namespace content | 836 } // namespace content |
| 836 | 837 |
| 837 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 838 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |