mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 04:30:46 +01:00
20 lines
594 B
C++
20 lines
594 B
C++
|
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
||
|
// reserved. Use of this source code is governed by a BSD-style license that
|
||
|
// can be found in the LICENSE file.
|
||
|
|
||
|
#include "tests/cefclient/browser/default_client_handler.h"
|
||
|
|
||
|
namespace client {
|
||
|
|
||
|
// static
|
||
|
CefRefPtr<DefaultClientHandler> DefaultClientHandler::GetForClient(
|
||
|
CefRefPtr<CefClient> client) {
|
||
|
auto base = BaseClientHandler::GetForClient(client);
|
||
|
if (base && base->GetTypeKey() == &kTypeKey) {
|
||
|
return static_cast<DefaultClientHandler*>(base.get());
|
||
|
}
|
||
|
return nullptr;
|
||
|
}
|
||
|
|
||
|
} // namespace client
|