Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: extensions/shell/browser/shell_content_browser_client.h

Issue 1164483003: Allow startup with missing V8 snapshot file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add natives_fd_exists and snapshot_fd_exists instead of checking for -1 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698