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 25 matching lines...) Expand all Loading... |
36 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 36 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
37 #include "third_party/WebKit/public/web/window_features.mojom.h" | 37 #include "third_party/WebKit/public/web/window_features.mojom.h" |
38 #include "ui/base/page_transition_types.h" | 38 #include "ui/base/page_transition_types.h" |
39 #include "ui/base/window_open_disposition.h" | 39 #include "ui/base/window_open_disposition.h" |
40 | 40 |
41 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 41 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
42 #include "base/posix/global_descriptors.h" | 42 #include "base/posix/global_descriptors.h" |
43 #endif | 43 #endif |
44 | 44 |
45 #if defined(OS_POSIX) | 45 #if defined(OS_POSIX) |
46 #include "content/public/browser/file_descriptor_info.h" | 46 #include "content/public/browser/posix_file_descriptor_info.h" |
47 #endif | 47 #endif |
48 | 48 |
49 class GURL; | 49 class GURL; |
50 | 50 |
51 namespace base { | 51 namespace base { |
52 class CommandLine; | 52 class CommandLine; |
53 class FilePath; | 53 class FilePath; |
54 } | 54 } |
55 | 55 |
56 namespace gfx { | 56 namespace gfx { |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 // Creates and returns a factory used for creating CDM instances for playing | 758 // Creates and returns a factory used for creating CDM instances for playing |
759 // protected content. | 759 // protected content. |
760 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); | 760 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); |
761 | 761 |
762 // Populates |mappings| with all files that need to be mapped before launching | 762 // Populates |mappings| with all files that need to be mapped before launching |
763 // a child process. | 763 // a child process. |
764 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 764 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
765 virtual void GetAdditionalMappedFilesForChildProcess( | 765 virtual void GetAdditionalMappedFilesForChildProcess( |
766 const base::CommandLine& command_line, | 766 const base::CommandLine& command_line, |
767 int child_process_id, | 767 int child_process_id, |
768 content::FileDescriptorInfo* mappings) {} | 768 content::PosixFileDescriptorInfo* mappings) {} |
769 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) | 769 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) |
770 | 770 |
771 #if defined(OS_WIN) | 771 #if defined(OS_WIN) |
772 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 772 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
773 // is launched. It gives the embedder a chance to add loosen the sandbox | 773 // is launched. It gives the embedder a chance to add loosen the sandbox |
774 // policy. | 774 // policy. |
775 virtual bool PreSpawnRenderer(sandbox::TargetPolicy* policy); | 775 virtual bool PreSpawnRenderer(sandbox::TargetPolicy* policy); |
776 | 776 |
777 // Returns the AppContainer SID for the specified sandboxed process type, or | 777 // Returns the AppContainer SID for the specified sandboxed process type, or |
778 // empty string if this sandboxed process type does not support living inside | 778 // empty string if this sandboxed process type does not support living inside |
(...skipping 25 matching lines...) Expand all Loading... |
804 // Allows the embedder to register one or more URLLoaderThrottles for a | 804 // Allows the embedder to register one or more URLLoaderThrottles for a |
805 // URL request. This is used only when --enable-network-service is in effect. | 805 // URL request. This is used only when --enable-network-service is in effect. |
806 // This is called on the IO thread. | 806 // This is called on the IO thread. |
807 virtual std::vector<std::unique_ptr<URLLoaderThrottle>> | 807 virtual std::vector<std::unique_ptr<URLLoaderThrottle>> |
808 CreateURLLoaderThrottles(const base::Callback<WebContents*()>& wc_getter); | 808 CreateURLLoaderThrottles(const base::Callback<WebContents*()>& wc_getter); |
809 }; | 809 }; |
810 | 810 |
811 } // namespace content | 811 } // namespace content |
812 | 812 |
813 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 813 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |