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

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

Issue 1156873002: Load v8 snapshots directly from APK (and store them uncompressed) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8initializer
Patch Set: Keep extracting for components/ 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 #include "gin/v8_initializer.h"
10 11
11 class GURL; 12 class GURL;
12 13
13 namespace base { 14 namespace base {
14 class CommandLine; 15 class CommandLine;
15 } 16 }
16 17
17 namespace content { 18 namespace content {
18 class BrowserContext; 19 class BrowserContext;
19 } 20 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ShellBrowserMainDelegate* browser_main_delegate); 81 ShellBrowserMainDelegate* browser_main_delegate);
81 82
82 private: 83 private:
83 // Appends command line switches for a renderer process. 84 // Appends command line switches for a renderer process.
84 void AppendRendererSwitches(base::CommandLine* command_line); 85 void AppendRendererSwitches(base::CommandLine* command_line);
85 86
86 // Returns the extension or app associated with |site_instance| or NULL. 87 // Returns the extension or app associated with |site_instance| or NULL.
87 const Extension* GetExtension(content::SiteInstance* site_instance); 88 const Extension* GetExtension(content::SiteInstance* site_instance);
88 89
89 #if defined(OS_POSIX) && !defined(OS_MACOSX) 90 #if defined(OS_POSIX) && !defined(OS_MACOSX)
90 base::ScopedFD v8_natives_fd_; 91 gin::V8Initializer::V8Files v8_files_;
91 base::ScopedFD v8_snapshot_fd_;
92 bool natives_fd_exists() { return v8_natives_fd_ != -1; }
93 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; }
94 #endif 92 #endif
95 93
96 // Owned by content::BrowserMainLoop. 94 // Owned by content::BrowserMainLoop.
97 ShellBrowserMainParts* browser_main_parts_; 95 ShellBrowserMainParts* browser_main_parts_;
98 96
99 // Owned by ShellBrowserMainParts. 97 // Owned by ShellBrowserMainParts.
100 ShellBrowserMainDelegate* browser_main_delegate_; 98 ShellBrowserMainDelegate* browser_main_delegate_;
101 99
102 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); 100 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient);
103 }; 101 };
104 102
105 } // namespace extensions 103 } // namespace extensions
106 104
107 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 105 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698