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