Remove DISALLOW_ macro from libcef/ (see issue #3234)

Also perform related C++ cleanup:
- Use =default instead of {} for default implementations of
  constructors/destructors.
- Replace typedef with using.
This commit is contained in:
Marshall Greenblatt
2021-12-06 15:40:25 -05:00
parent 83ffc1f00d
commit 9484d6528c
205 changed files with 944 additions and 542 deletions

View File

@@ -106,6 +106,9 @@ class AcceptWebSocketCallback : public CefCallback {
connection_id_(connection_id),
request_info_(request_info) {}
AcceptWebSocketCallback(const AcceptWebSocketCallback&) = delete;
AcceptWebSocketCallback& operator=(const AcceptWebSocketCallback&) = delete;
~AcceptWebSocketCallback() override {
if (impl_)
impl_->ContinueWebSocketRequest(connection_id_, request_info_, false);
@@ -141,7 +144,6 @@ class AcceptWebSocketCallback : public CefCallback {
net::HttpServerRequestInfo request_info_;
IMPLEMENT_REFCOUNTING_DELETE_ON_UIT(AcceptWebSocketCallback);
DISALLOW_COPY_AND_ASSIGN(AcceptWebSocketCallback);
};
} // namespace