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

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: Fix misplaced ifdef for Windows 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 net::URLRequestContextGetter* CreateRequestContext( 45 net::URLRequestContextGetter* CreateRequestContext(
46 content::BrowserContext* browser_context, 46 content::BrowserContext* browser_context,
47 content::ProtocolHandlerMap* protocol_handlers, 47 content::ProtocolHandlerMap* protocol_handlers,
48 content::URLRequestInterceptorScopedVector request_interceptors) override; 48 content::URLRequestInterceptorScopedVector request_interceptors) override;
49 // TODO(jamescook): Quota management? 49 // TODO(jamescook): Quota management?
50 bool IsHandledURL(const GURL& url) override; 50 bool IsHandledURL(const GURL& url) override;
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 void AppendMappedFileCommandLineSwitches(
56 base::CommandLine* command_line) override;
55 content::SpeechRecognitionManagerDelegate* 57 content::SpeechRecognitionManagerDelegate*
56 CreateSpeechRecognitionManagerDelegate() override; 58 CreateSpeechRecognitionManagerDelegate() override;
57 content::BrowserPpapiHost* GetExternalBrowserPpapiHost( 59 content::BrowserPpapiHost* GetExternalBrowserPpapiHost(
58 int plugin_process_id) override; 60 int plugin_process_id) override;
59 void GetAdditionalAllowedSchemesForFileSystem( 61 void GetAdditionalAllowedSchemesForFileSystem(
60 std::vector<std::string>* additional_schemes) override; 62 std::vector<std::string>* additional_schemes) override;
61 #if defined(OS_POSIX) && !defined(OS_MACOSX) 63 #if defined(OS_POSIX) && !defined(OS_MACOSX)
62 void GetAdditionalMappedFilesForChildProcess( 64 void GetAdditionalMappedFilesForChildProcess(
63 const base::CommandLine& command_line, 65 const base::CommandLine& command_line,
64 int child_process_id, 66 int child_process_id,
(...skipping 11 matching lines...) Expand all
76 private: 78 private:
77 // Appends command line switches for a renderer process. 79 // Appends command line switches for a renderer process.
78 void AppendRendererSwitches(base::CommandLine* command_line); 80 void AppendRendererSwitches(base::CommandLine* command_line);
79 81
80 // Returns the extension or app associated with |site_instance| or NULL. 82 // Returns the extension or app associated with |site_instance| or NULL.
81 const Extension* GetExtension(content::SiteInstance* site_instance); 83 const Extension* GetExtension(content::SiteInstance* site_instance);
82 84
83 #if defined(OS_POSIX) && !defined(OS_MACOSX) 85 #if defined(OS_POSIX) && !defined(OS_MACOSX)
84 base::ScopedFD v8_natives_fd_; 86 base::ScopedFD v8_natives_fd_;
85 base::ScopedFD v8_snapshot_fd_; 87 base::ScopedFD v8_snapshot_fd_;
88 bool natives_fd_exists() { return v8_natives_fd_ != -1; }
89 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; }
86 #endif 90 #endif
87 91
88 // Owned by content::BrowserMainLoop. 92 // Owned by content::BrowserMainLoop.
89 ShellBrowserMainParts* browser_main_parts_; 93 ShellBrowserMainParts* browser_main_parts_;
90 94
91 // Owned by ShellBrowserMainParts. 95 // Owned by ShellBrowserMainParts.
92 ShellBrowserMainDelegate* browser_main_delegate_; 96 ShellBrowserMainDelegate* browser_main_delegate_;
93 97
94 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); 98 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient);
95 }; 99 };
96 100
97 } // namespace extensions 101 } // namespace extensions
98 102
99 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 103 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/test/test_blink_web_unit_test_support.cc ('k') | extensions/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698