mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
cefclient: Fix invalid cast to ClientHandlerStd (see #3499)
This commit is contained in:
@@ -18,7 +18,15 @@ class ClientHandlerStd : public ClientHandler {
|
||||
bool with_controls,
|
||||
const std::string& startup_url);
|
||||
|
||||
// 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 const int kTypeKey = 0;
|
||||
|
||||
// Include the default reference counting implementation.
|
||||
IMPLEMENT_REFCOUNTING(ClientHandlerStd);
|
||||
DISALLOW_COPY_AND_ASSIGN(ClientHandlerStd);
|
||||
|
Reference in New Issue
Block a user