mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-07 15:53:08 +01:00
84f3ff2afd
As part of introducing the Chrome runtime we now need to distinguish between the classes that implement the current CEF runtime and the classes the implement the shared CEF library/runtime structure and public API. We choose the name Alloy for the current CEF runtime because it describes a combination of Chrome and other elements. Shared CEF library/runtime classes will continue to use the Cef prefix. Classes that implement the Alloy or Chrome runtime will use the Alloy or Chrome prefixes respectively. Classes that extend an existing Chrome-prefixed class will add the Cef or Alloy suffix, thereby following the existing naming pattern of Chrome-derived classes. This change applies the new naming pattern to an initial set of runtime-related classes. Additional classes/files will be renamed and moved as the Chrome runtime implementation progresses.
47 lines
1.6 KiB
C++
47 lines
1.6 KiB
C++
// Copyright 2020 The Chromium Embedded Framework Authors.
|
|
// Portions copyright 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 file.
|
|
|
|
#ifndef CEF_LIBCEF_COMMON_ALLOY_ALLOY_MAIN_RUNNER_DELEGATE_
|
|
#define CEF_LIBCEF_COMMON_ALLOY_ALLOY_MAIN_RUNNER_DELEGATE_
|
|
|
|
#include <memory>
|
|
|
|
#include "include/cef_base.h"
|
|
#include "libcef/common/main_runner_delegate.h"
|
|
#include "libcef/common/main_runner_handler.h"
|
|
|
|
class AlloyMainDelegate;
|
|
|
|
class AlloyMainRunnerDelegate : public CefMainRunnerDelegate {
|
|
public:
|
|
// |runner| and |settings| will be non-nullptr for the main process only, and
|
|
// will outlive this object.
|
|
AlloyMainRunnerDelegate(CefMainRunnerHandler* runner,
|
|
CefSettings* settings,
|
|
CefRefPtr<CefApp> application);
|
|
~AlloyMainRunnerDelegate() override;
|
|
|
|
protected:
|
|
// CefMainRunnerDelegate overrides.
|
|
content::ContentMainDelegate* GetContentMainDelegate() override;
|
|
void BeforeMainThreadInitialize(const CefMainArgs& args) override;
|
|
void BeforeMainThreadRun() override;
|
|
void AfterUIThreadInitialize() override;
|
|
void AfterUIThreadShutdown() override;
|
|
void BeforeMainThreadShutdown() override;
|
|
void AfterMainThreadShutdown() override;
|
|
|
|
private:
|
|
std::unique_ptr<AlloyMainDelegate> main_delegate_;
|
|
|
|
CefMainRunnerHandler* const runner_;
|
|
CefSettings* const settings_;
|
|
CefRefPtr<CefApp> application_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(AlloyMainRunnerDelegate);
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_COMMON_ALLOY_ALLOY_MAIN_RUNNER_DELEGATE_
|