2013-04-12 01:46:58 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_APP_ATOM_MAIN_DELEGATE_
|
|
|
|
#define ATOM_APP_ATOM_MAIN_DELEGATE_
|
|
|
|
|
|
|
|
#include "brightray/common/main_delegate.h"
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
class AtomMainDelegate : public brightray::MainDelegate {
|
2013-04-12 15:16:16 +00:00
|
|
|
public:
|
2013-04-12 01:46:58 +00:00
|
|
|
AtomMainDelegate();
|
|
|
|
~AtomMainDelegate();
|
|
|
|
|
2013-04-20 06:03:55 +00:00
|
|
|
protected:
|
2013-07-08 03:09:53 +00:00
|
|
|
virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
|
2013-04-20 03:19:25 +00:00
|
|
|
virtual void PreSandboxStartup() OVERRIDE;
|
2013-09-12 09:51:45 +00:00
|
|
|
virtual void InitializeResourceBundle();
|
|
|
|
|
|
|
|
#if defined(OS_MACOSX)
|
|
|
|
virtual base::FilePath GetResourcesPakFilePath();
|
|
|
|
virtual void OverrideChildProcessPath();
|
|
|
|
virtual void OverrideFrameworkBundlePath();
|
|
|
|
#endif
|
2013-04-20 03:19:25 +00:00
|
|
|
|
2013-04-12 15:16:16 +00:00
|
|
|
private:
|
2013-04-12 01:46:58 +00:00
|
|
|
virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
|
|
|
|
virtual content::ContentRendererClient*
|
|
|
|
CreateContentRendererClient() OVERRIDE;
|
|
|
|
|
|
|
|
scoped_ptr<content::ContentBrowserClient> browser_client_;
|
|
|
|
scoped_ptr<content::ContentRendererClient> renderer_client_;
|
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomMainDelegate);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
|
|
|
#endif // ATOM_APP_ATOM_MAIN_DELEGATE_
|