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

Side by Side Diff: ash/shell/content_client/shell_content_browser_client.h

Issue 1071173002: Use command line to signal whether a child process was passed V8 snapshot files via file descriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8_ext_cast
Patch Set: Fix compile error Created 5 years, 8 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
« no previous file with comments | « no previous file | ash/shell/content_client/shell_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_
6 #define ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_ 6 #define ASH_SHELL_CONTENT_CLIENT_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 15 matching lines...) Expand all
26 ShellContentBrowserClient(); 26 ShellContentBrowserClient();
27 ~ShellContentBrowserClient() override; 27 ~ShellContentBrowserClient() override;
28 28
29 // Overridden from content::ContentBrowserClient: 29 // Overridden from content::ContentBrowserClient:
30 content::BrowserMainParts* CreateBrowserMainParts( 30 content::BrowserMainParts* CreateBrowserMainParts(
31 const content::MainFunctionParams& parameters) override; 31 const content::MainFunctionParams& parameters) override;
32 net::URLRequestContextGetter* CreateRequestContext( 32 net::URLRequestContextGetter* CreateRequestContext(
33 content::BrowserContext* browser_context, 33 content::BrowserContext* browser_context,
34 content::ProtocolHandlerMap* protocol_handlers, 34 content::ProtocolHandlerMap* protocol_handlers,
35 content::URLRequestInterceptorScopedVector request_interceptors) override; 35 content::URLRequestInterceptorScopedVector request_interceptors) override;
36 void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
37 int child_process_id) override;
36 #if defined(OS_POSIX) && !defined(OS_MACOSX) 38 #if defined(OS_POSIX) && !defined(OS_MACOSX)
37 void GetAdditionalMappedFilesForChildProcess( 39 void GetAdditionalMappedFilesForChildProcess(
38 const base::CommandLine& command_line, 40 const base::CommandLine& command_line,
39 int child_process_id, 41 int child_process_id,
40 content::FileDescriptorInfo* mappings) override; 42 content::FileDescriptorInfo* mappings) override;
41 #endif 43 #endif
42 44
43 content::ShellBrowserContext* browser_context(); 45 content::ShellBrowserContext* browser_context();
44 46
45 private: 47 private:
46 #if defined(OS_POSIX) && !defined(OS_MACOSX) 48 #if defined(OS_POSIX) && !defined(OS_MACOSX)
47 base::ScopedFD v8_natives_fd_; 49 base::ScopedFD v8_natives_fd_;
48 base::ScopedFD v8_snapshot_fd_; 50 base::ScopedFD v8_snapshot_fd_;
49 #endif 51 #endif
50 52
51 ShellBrowserMainParts* shell_browser_main_parts_; 53 ShellBrowserMainParts* shell_browser_main_parts_;
52 54
53 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); 55 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient);
54 }; 56 };
55 57
56 } // namespace shell 58 } // namespace shell
57 } // namespace ash 59 } // namespace ash
58 60
59 #endif // ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_ 61 #endif // ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shell/content_client/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698