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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 // Creates and returns a factory used for creating CDM instances for playing | 757 // Creates and returns a factory used for creating CDM instances for playing |
758 // protected content. | 758 // protected content. |
759 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); | 759 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); |
760 | 760 |
761 // Populates |mappings| with all files that need to be mapped before launching | 761 // Populates |mappings| with all files that need to be mapped before launching |
762 // a child process. | 762 // a child process. |
763 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 763 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
764 virtual void GetAdditionalMappedFilesForChildProcess( | 764 virtual void GetAdditionalMappedFilesForChildProcess( |
765 const base::CommandLine& command_line, | 765 const base::CommandLine& command_line, |
766 int child_process_id, | 766 int child_process_id, |
767 content::FileDescriptorInfo* mappings) {} | 767 content::PosixFileDescriptorInfo* mappings) {} |
768 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) | 768 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) |
769 | 769 |
770 #if defined(OS_WIN) | 770 #if defined(OS_WIN) |
771 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 771 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
772 // is launched. It gives the embedder a chance to add loosen the sandbox | 772 // is launched. It gives the embedder a chance to add loosen the sandbox |
773 // policy. | 773 // policy. |
774 virtual bool PreSpawnRenderer(sandbox::TargetPolicy* policy); | 774 virtual bool PreSpawnRenderer(sandbox::TargetPolicy* policy); |
775 | 775 |
776 // Returns the AppContainer SID for the specified sandboxed process type, or | 776 // Returns the AppContainer SID for the specified sandboxed process type, or |
777 // empty string if this sandboxed process type does not support living inside | 777 // empty string if this sandboxed process type does not support living inside |
(...skipping 25 matching lines...) Expand all Loading... |
803 // Allows the embedder to register one or more URLLoaderThrottles for a | 803 // Allows the embedder to register one or more URLLoaderThrottles for a |
804 // URL request. This is used only when --enable-network-service is in effect. | 804 // URL request. This is used only when --enable-network-service is in effect. |
805 // This is called on the IO thread. | 805 // This is called on the IO thread. |
806 virtual std::vector<std::unique_ptr<URLLoaderThrottle>> | 806 virtual std::vector<std::unique_ptr<URLLoaderThrottle>> |
807 CreateURLLoaderThrottles(const base::Callback<WebContents*()>& wc_getter); | 807 CreateURLLoaderThrottles(const base::Callback<WebContents*()>& wc_getter); |
808 }; | 808 }; |
809 | 809 |
810 } // namespace content | 810 } // namespace content |
811 | 811 |
812 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 812 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |