| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, | 62 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, |
| 63 const GURL& current_url, | 63 const GURL& current_url, |
| 64 const GURL& new_url) OVERRIDE; | 64 const GURL& new_url) OVERRIDE; |
| 65 | 65 |
| 66 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 66 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 67 virtual void GetAdditionalMappedFilesForChildProcess( | 67 virtual void GetAdditionalMappedFilesForChildProcess( |
| 68 const base::CommandLine& command_line, | 68 const base::CommandLine& command_line, |
| 69 int child_process_id, | 69 int child_process_id, |
| 70 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; | 70 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; |
| 71 #endif | 71 #endif |
| 72 #if defined(OS_WIN) |
| 73 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
| 74 bool* success) OVERRIDE; |
| 75 #endif |
| 72 | 76 |
| 73 ShellBrowserContext* browser_context(); | 77 ShellBrowserContext* browser_context(); |
| 74 ShellBrowserContext* off_the_record_browser_context(); | 78 ShellBrowserContext* off_the_record_browser_context(); |
| 75 ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { | 79 ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { |
| 76 return resource_dispatcher_host_delegate_.get(); | 80 return resource_dispatcher_host_delegate_.get(); |
| 77 } | 81 } |
| 78 ShellBrowserMainParts* shell_browser_main_parts() { | 82 ShellBrowserMainParts* shell_browser_main_parts() { |
| 79 return shell_browser_main_parts_; | 83 return shell_browser_main_parts_; |
| 80 } | 84 } |
| 81 | 85 |
| 82 private: | 86 private: |
| 83 ShellBrowserContext* ShellBrowserContextForBrowserContext( | 87 ShellBrowserContext* ShellBrowserContextForBrowserContext( |
| 84 BrowserContext* content_browser_context); | 88 BrowserContext* content_browser_context); |
| 85 | 89 |
| 86 scoped_ptr<ShellResourceDispatcherHostDelegate> | 90 scoped_ptr<ShellResourceDispatcherHostDelegate> |
| 87 resource_dispatcher_host_delegate_; | 91 resource_dispatcher_host_delegate_; |
| 88 | 92 |
| 89 base::FilePath webkit_source_dir_; | 93 base::FilePath webkit_source_dir_; |
| 90 | 94 |
| 91 ShellBrowserMainParts* shell_browser_main_parts_; | 95 ShellBrowserMainParts* shell_browser_main_parts_; |
| 92 }; | 96 }; |
| 93 | 97 |
| 94 } // namespace content | 98 } // namespace content |
| 95 | 99 |
| 96 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 100 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |