Files
cef/tests/cefclient/browser/client_handler_std.h
Marshall Greenblatt f3f516c2d1 Replace DISALLOW_COPY_AND_ASSIGN with explicit deleted declarations (see #3590)
Apply the DISALLOW_COPY_AND_ASSIGN transformation to all CEF source files.
Per Chromium style guide, deleted copy/move declarations are placed in
the public section after constructors.

Changes:
- Transform 97 files in tests/ceftests/, tests/cefclient/, tests/shared/
- Update code examples in tools/claude/*.md documentation
2026-01-22 12:08:50 -05:00

40 lines
1.3 KiB
C++

// Copyright (c) 2015 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.
#ifndef CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_HANDLER_STD_H_
#define CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_HANDLER_STD_H_
#pragma once
#include "tests/cefclient/browser/client_handler.h"
namespace client {
// Client handler implementation for windowed browsers. There will only ever be
// one browser per handler instance.
class ClientHandlerStd : public ClientHandler {
public:
ClientHandlerStd(Delegate* delegate,
bool with_controls,
const std::string& startup_url);
ClientHandlerStd(const ClientHandlerStd&) = delete;
ClientHandlerStd& operator=(const ClientHandlerStd&) = delete;
// Returns the ClientHandlerStd for |client|, or nullptr if |client| is not a
// ClientHandlerStd.
static CefRefPtr<ClientHandlerStd> GetForClient(CefRefPtr<CefClient> client);
private:
// Used to determine the object type.
virtual const void* GetTypeKey() const override { return &kTypeKey; }
static constexpr int kTypeKey = 0;
// Include the default reference counting implementation.
IMPLEMENT_REFCOUNTING(ClientHandlerStd);
};
} // namespace client
#endif // CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_HANDLER_STD_H_