electron/browser/atom_browser_main_parts.h

40 lines
1.1 KiB
C
Raw Normal View History

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_BROWSER_ATOM_BROWSER_MAIN_PARTS_
#define ATOM_BROWSER_ATOM_BROWSER_MAIN_PARTS_
#include "brightray/browser/browser_main_parts.h"
2013-04-13 10:39:09 +00:00
#include "common/node_bindings.h"
2013-04-12 01:46:58 +00:00
namespace atom {
class AtomBindings;
2013-04-13 10:39:09 +00:00
class NodeBindings;
2013-04-12 01:46:58 +00:00
class AtomBrowserMainParts : public brightray::BrowserMainParts {
2013-04-12 15:16:16 +00:00
public:
2013-04-12 01:46:58 +00:00
AtomBrowserMainParts();
2013-04-12 15:16:16 +00:00
virtual ~AtomBrowserMainParts();
2013-04-12 01:46:58 +00:00
2013-04-12 15:16:16 +00:00
protected:
// Implementations of brightray::BrowserMainParts.
virtual brightray::BrowserContext* CreateBrowserContext() OVERRIDE;
// Implementations of content::BrowserMainParts.
2013-04-13 10:39:09 +00:00
virtual void PostEarlyInitialization() OVERRIDE;
2013-04-14 09:33:44 +00:00
virtual void PreMainMessageLoopStart() OVERRIDE;
2013-04-12 01:46:58 +00:00
virtual void PreMainMessageLoopRun() OVERRIDE;
2013-04-13 10:39:09 +00:00
private:
scoped_ptr<AtomBindings> atom_bindings_;
2013-04-13 10:39:09 +00:00
scoped_ptr<NodeBindings> node_bindings_;
2013-04-12 01:46:58 +00:00
DISALLOW_COPY_AND_ASSIGN(AtomBrowserMainParts);
};
} // namespace atom
#endif // ATOM_BROWSER_ATOM_BROWSER_MAIN_PARTS_