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

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

Issue 1019483002: Add support to extension_shell and ash_shell to use external V8 snapshot files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac and Win 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 | « extensions/shell/browser/DEPS ('k') | extensions/shell/browser/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 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void SiteInstanceGotProcess(content::SiteInstance* site_instance) override; 51 void SiteInstanceGotProcess(content::SiteInstance* site_instance) override;
52 void SiteInstanceDeleting(content::SiteInstance* site_instance) override; 52 void SiteInstanceDeleting(content::SiteInstance* site_instance) override;
53 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, 53 void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
54 int child_process_id) override; 54 int child_process_id) override;
55 content::SpeechRecognitionManagerDelegate* 55 content::SpeechRecognitionManagerDelegate*
56 CreateSpeechRecognitionManagerDelegate() override; 56 CreateSpeechRecognitionManagerDelegate() override;
57 content::BrowserPpapiHost* GetExternalBrowserPpapiHost( 57 content::BrowserPpapiHost* GetExternalBrowserPpapiHost(
58 int plugin_process_id) override; 58 int plugin_process_id) override;
59 void GetAdditionalAllowedSchemesForFileSystem( 59 void GetAdditionalAllowedSchemesForFileSystem(
60 std::vector<std::string>* additional_schemes) override; 60 std::vector<std::string>* additional_schemes) override;
61 #if defined(OS_POSIX) && !defined(OS_MACOSX)
62 void GetAdditionalMappedFilesForChildProcess(
63 const base::CommandLine& command_line,
64 int child_process_id,
65 content::FileDescriptorInfo* mappings) override;
66 #endif
67
61 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; 68 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override;
62 69
63 protected: 70 protected:
64 // Subclasses may wish to provide their own ShellBrowserMainParts. 71 // Subclasses may wish to provide their own ShellBrowserMainParts.
65 virtual ShellBrowserMainParts* CreateShellBrowserMainParts( 72 virtual ShellBrowserMainParts* CreateShellBrowserMainParts(
66 const content::MainFunctionParams& parameters, 73 const content::MainFunctionParams& parameters,
67 ShellBrowserMainDelegate* browser_main_delegate); 74 ShellBrowserMainDelegate* browser_main_delegate);
68 75
69 private: 76 private:
70 // Appends command line switches for a renderer process. 77 // Appends command line switches for a renderer process.
71 void AppendRendererSwitches(base::CommandLine* command_line); 78 void AppendRendererSwitches(base::CommandLine* command_line);
72 79
73 // Returns the extension or app associated with |site_instance| or NULL. 80 // Returns the extension or app associated with |site_instance| or NULL.
74 const Extension* GetExtension(content::SiteInstance* site_instance); 81 const Extension* GetExtension(content::SiteInstance* site_instance);
75 82
83 #if defined(OS_POSIX) && !defined(OS_MACOSX)
84 base::ScopedFD v8_natives_fd_;
85 base::ScopedFD v8_snapshot_fd_;
86 #endif
87
76 // Owned by content::BrowserMainLoop. 88 // Owned by content::BrowserMainLoop.
77 ShellBrowserMainParts* browser_main_parts_; 89 ShellBrowserMainParts* browser_main_parts_;
78 90
79 // Owned by ShellBrowserMainParts. 91 // Owned by ShellBrowserMainParts.
80 ShellBrowserMainDelegate* browser_main_delegate_; 92 ShellBrowserMainDelegate* browser_main_delegate_;
81 93
82 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); 94 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient);
83 }; 95 };
84 96
85 } // namespace extensions 97 } // namespace extensions
86 98
87 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 99 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/DEPS ('k') | extensions/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698