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> |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 | 756 |
757 // Allows the embedder to provide its own AudioManager implementation. | 757 // Allows the embedder to provide its own AudioManager implementation. |
758 // If this function returns nullptr, a default platform implementation | 758 // If this function returns nullptr, a default platform implementation |
759 // will be used. | 759 // will be used. |
760 virtual media::ScopedAudioManagerPtr CreateAudioManager( | 760 virtual media::ScopedAudioManagerPtr CreateAudioManager( |
761 media::AudioLogFactory* audio_log_factory); | 761 media::AudioLogFactory* audio_log_factory); |
762 // Creates and returns a factory used for creating CDM instances for playing | 762 // Creates and returns a factory used for creating CDM instances for playing |
763 // protected content. | 763 // protected content. |
764 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); | 764 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); |
765 | 765 |
| 766 // Reports that passive mixed content was found at the specified WebContents. |
| 767 virtual void PassiveInsecureContentFound(const GURL& resource_url); |
| 768 |
| 769 // Checks if running of mixed-content is allowed for the specified |
| 770 // WebContents/tab. |
| 771 virtual bool ShouldAllowRunningInsecureContent(bool allowed_per_settings, |
| 772 const url::Origin& origin, |
| 773 const GURL& resource_url, |
| 774 WebContents* web_contents); |
| 775 |
766 // Populates |mappings| with all files that need to be mapped before launching | 776 // Populates |mappings| with all files that need to be mapped before launching |
767 // a child process. | 777 // a child process. |
768 #if defined(OS_ANDROID) | 778 #if defined(OS_ANDROID) |
769 virtual void GetAdditionalMappedFilesForChildProcess( | 779 virtual void GetAdditionalMappedFilesForChildProcess( |
770 const base::CommandLine& command_line, | 780 const base::CommandLine& command_line, |
771 int child_process_id, | 781 int child_process_id, |
772 content::FileDescriptorInfo* mappings, | 782 content::FileDescriptorInfo* mappings, |
773 std::map<int, base::MemoryMappedFile::Region>* regions) {} | 783 std::map<int, base::MemoryMappedFile::Region>* regions) {} |
774 #elif defined(OS_POSIX) && !defined(OS_MACOSX) | 784 #elif defined(OS_POSIX) && !defined(OS_MACOSX) |
775 virtual void GetAdditionalMappedFilesForChildProcess( | 785 virtual void GetAdditionalMappedFilesForChildProcess( |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 831 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
822 | 832 |
823 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 833 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
824 // this platform will experimentally be redirected to TaskScheduler. | 834 // this platform will experimentally be redirected to TaskScheduler. |
825 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 835 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
826 }; | 836 }; |
827 | 837 |
828 } // namespace content | 838 } // namespace content |
829 | 839 |
830 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 840 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |