| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "content/public/browser/content_browser_client.h" | 9 #include "content/public/browser/content_browser_client.h" |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 private: | 76 private: |
| 77 // Appends command line switches for a renderer process. | 77 // Appends command line switches for a renderer process. |
| 78 void AppendRendererSwitches(base::CommandLine* command_line); | 78 void AppendRendererSwitches(base::CommandLine* command_line); |
| 79 | 79 |
| 80 // Returns the extension or app associated with |site_instance| or NULL. | 80 // Returns the extension or app associated with |site_instance| or NULL. |
| 81 const Extension* GetExtension(content::SiteInstance* site_instance); | 81 const Extension* GetExtension(content::SiteInstance* site_instance); |
| 82 | 82 |
| 83 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 83 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 84 base::ScopedFD v8_natives_fd_; | 84 base::ScopedFD v8_natives_fd_; |
| 85 base::ScopedFD v8_snapshot_fd_; | 85 base::ScopedFD v8_snapshot_fd_; |
| 86 bool natives_fd_exists() { return v8_natives_fd_ != -1; } |
| 87 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; } |
| 86 #endif | 88 #endif |
| 87 | 89 |
| 88 // Owned by content::BrowserMainLoop. | 90 // Owned by content::BrowserMainLoop. |
| 89 ShellBrowserMainParts* browser_main_parts_; | 91 ShellBrowserMainParts* browser_main_parts_; |
| 90 | 92 |
| 91 // Owned by ShellBrowserMainParts. | 93 // Owned by ShellBrowserMainParts. |
| 92 ShellBrowserMainDelegate* browser_main_delegate_; | 94 ShellBrowserMainDelegate* browser_main_delegate_; |
| 93 | 95 |
| 94 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); | 96 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 } // namespace extensions | 99 } // namespace extensions |
| 98 | 100 |
| 99 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 101 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |