electron/brightray/common/main_delegate.h

39 lines
930 B
C
Raw Normal View History

2013-03-13 19:12:05 +00:00
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#ifndef BRIGHTRAY_COMMON_MAIN_DELEGATE_H_
#define BRIGHTRAY_COMMON_MAIN_DELEGATE_H_
2013-03-13 19:12:05 +00:00
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "content/public/app/content_main_delegate.h"
namespace brightray {
class ContentClient;
2013-03-13 19:12:05 +00:00
class MainDelegate : public content::ContentMainDelegate {
public:
MainDelegate();
~MainDelegate();
protected:
virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
virtual void PreSandboxStartup() OVERRIDE;
2013-03-13 19:12:05 +00:00
private:
static void InitializeResourceBundle();
2013-03-13 19:12:05 +00:00
#if defined(OS_MACOSX)
static void OverrideChildProcessPath();
static void OverrideFrameworkBundlePath();
#endif
scoped_ptr<ContentClient> content_client_;
2013-03-13 19:12:05 +00:00
DISALLOW_COPY_AND_ASSIGN(MainDelegate);
};
}
#endif