OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 net::NetLog* GetNetLog() override; | 64 net::NetLog* GetNetLog() override; |
65 bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, | 65 bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, |
66 const GURL& current_url, | 66 const GURL& current_url, |
67 const GURL& new_url) override; | 67 const GURL& new_url) override; |
68 DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; | 68 DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; |
69 | 69 |
70 void OpenURL(BrowserContext* browser_context, | 70 void OpenURL(BrowserContext* browser_context, |
71 const OpenURLParams& params, | 71 const OpenURLParams& params, |
72 const base::Callback<void(WebContents*)>& callback) override; | 72 const base::Callback<void(WebContents*)>& callback) override; |
73 | 73 |
74 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 74 #if defined(OS_ANDROID) |
75 void GetAdditionalMappedFilesForChildProcess( | 75 void GetAdditionalMappedFilesForChildProcess( |
76 const base::CommandLine& command_line, | 76 const base::CommandLine& command_line, |
77 int child_process_id, | 77 int child_process_id, |
78 FileDescriptorInfo* mappings) override; | 78 content::FileDescriptorInfo* mappings, |
79 #endif | 79 std::map<int, base::MemoryMappedFile::Region>* regions) override; |
| 80 #elif defined(OS_POSIX) && !defined(OS_MACOSX) |
| 81 void GetAdditionalMappedFilesForChildProcess( |
| 82 const base::CommandLine& command_line, |
| 83 int child_process_id, |
| 84 content::FileDescriptorInfo* mappings) override; |
| 85 #endif // defined(OS_ANDROID) |
80 #if defined(OS_WIN) | 86 #if defined(OS_WIN) |
81 void PreSpawnRenderer(sandbox::TargetPolicy* policy, bool* success) override; | 87 void PreSpawnRenderer(sandbox::TargetPolicy* policy, bool* success) override; |
82 #endif | 88 #endif |
83 | 89 |
84 ShellBrowserContext* browser_context(); | 90 ShellBrowserContext* browser_context(); |
85 ShellBrowserContext* off_the_record_browser_context(); | 91 ShellBrowserContext* off_the_record_browser_context(); |
86 ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { | 92 ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { |
87 return resource_dispatcher_host_delegate_.get(); | 93 return resource_dispatcher_host_delegate_.get(); |
88 } | 94 } |
89 ShellBrowserMainParts* shell_browser_main_parts() { | 95 ShellBrowserMainParts* shell_browser_main_parts() { |
(...skipping 14 matching lines...) Expand all Loading... |
104 resource_dispatcher_host_delegate_; | 110 resource_dispatcher_host_delegate_; |
105 | 111 |
106 base::Closure select_client_certificate_callback_; | 112 base::Closure select_client_certificate_callback_; |
107 | 113 |
108 ShellBrowserMainParts* shell_browser_main_parts_; | 114 ShellBrowserMainParts* shell_browser_main_parts_; |
109 }; | 115 }; |
110 | 116 |
111 } // namespace content | 117 } // namespace content |
112 | 118 |
113 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 119 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |