Give user a chance to override child process and framework path.
This commit is contained in:
parent
d5283b2337
commit
aba65c23f6
1 changed files with 8 additions and 5 deletions
|
@ -38,6 +38,14 @@ class MainDelegate : public content::ContentMainDelegate {
|
||||||
// included in the ui::ResourceBundle.
|
// included in the ui::ResourceBundle.
|
||||||
virtual void AddPakPaths(std::vector<base::FilePath>* pak_paths) {}
|
virtual void AddPakPaths(std::vector<base::FilePath>* pak_paths) {}
|
||||||
|
|
||||||
|
#if defined(OS_MACOSX)
|
||||||
|
// Subclasses can override this to custom the paths of child process and
|
||||||
|
// framework bundle.
|
||||||
|
virtual base::FilePath GetResourcesPakFilePath();
|
||||||
|
virtual void OverrideChildProcessPath();
|
||||||
|
virtual void OverrideFrameworkBundlePath();
|
||||||
|
#endif
|
||||||
|
|
||||||
virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
|
virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
|
||||||
virtual void PreSandboxStartup() OVERRIDE;
|
virtual void PreSandboxStartup() OVERRIDE;
|
||||||
|
|
||||||
|
@ -45,11 +53,6 @@ class MainDelegate : public content::ContentMainDelegate {
|
||||||
virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
|
virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
|
||||||
|
|
||||||
void InitializeResourceBundle();
|
void InitializeResourceBundle();
|
||||||
#if defined(OS_MACOSX)
|
|
||||||
static base::FilePath GetResourcesPakFilePath();
|
|
||||||
static void OverrideChildProcessPath();
|
|
||||||
static void OverrideFrameworkBundlePath();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
scoped_ptr<ContentClient> content_client_;
|
scoped_ptr<ContentClient> content_client_;
|
||||||
scoped_ptr<BrowserClient> browser_client_;
|
scoped_ptr<BrowserClient> browser_client_;
|
||||||
|
|
Loading…
Add table
Reference in a new issue