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

Side by Side Diff: content/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 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 private: 99 private:
100 ShellBrowserContext* ShellBrowserContextForBrowserContext( 100 ShellBrowserContext* ShellBrowserContextForBrowserContext(
101 BrowserContext* content_browser_context); 101 BrowserContext* content_browser_context);
102 102
103 scoped_ptr<ShellResourceDispatcherHostDelegate> 103 scoped_ptr<ShellResourceDispatcherHostDelegate>
104 resource_dispatcher_host_delegate_; 104 resource_dispatcher_host_delegate_;
105 105
106 #if defined(OS_POSIX) && !defined(OS_MACOSX) 106 #if defined(OS_POSIX) && !defined(OS_MACOSX)
107 base::ScopedFD v8_natives_fd_; 107 base::ScopedFD v8_natives_fd_;
108 base::ScopedFD v8_snapshot_fd_; 108 base::ScopedFD v8_snapshot_fd_;
109 bool natives_fd_exists() { return v8_natives_fd_ != -1; }
110 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; }
109 #endif 111 #endif
110 112
111 base::Closure select_client_certificate_callback_; 113 base::Closure select_client_certificate_callback_;
112 114
113 ShellBrowserMainParts* shell_browser_main_parts_; 115 ShellBrowserMainParts* shell_browser_main_parts_;
114 }; 116 };
115 117
116 } // namespace content 118 } // namespace content
117 119
118 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 120 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698