Replace DISALLOW_COPY_AND_ASSIGN in ppapi/
This replaces DISALLOW_COPY_AND_ASSIGN with explicit constructor deletes
where a local script is able to detect its insertion place (~Foo() is
public => insert before this line).
This is incomplete as not all classes have a public ~Foo() declared, so
not all DISALLOW_COPY_AND_ASSIGN occurrences are replaced.
IWYU cleanup is left as a separate pass that is easier when these macros
go away.
Bug: 1010217
Change-Id: Iab44b67c7ca86cf5cfb1f6b27de5c18769d36632
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3177680
Auto-Submit: Peter Boström <[email protected]>
Commit-Queue: Lei Zhang <[email protected]>
Reviewed-by: Lei Zhang <[email protected]>
Owners-Override: Lei Zhang <[email protected]>
Cr-Commit-Position: refs/heads/main@{#924479}
diff --git a/ppapi/proxy/file_ref_resource.h b/ppapi/proxy/file_ref_resource.h
index 1639655..38e4c172 100644
--- a/ppapi/proxy/file_ref_resource.h
+++ b/ppapi/proxy/file_ref_resource.h
@@ -32,6 +32,9 @@
PP_Instance instance,
const FileRefCreateInfo& info);
+ FileRefResource(const FileRefResource&) = delete;
+ FileRefResource& operator=(const FileRefResource&) = delete;
+
~FileRefResource() override;
// Resource implementation.
@@ -93,8 +96,6 @@
scoped_refptr<StringVar> name_var_;
scoped_refptr<StringVar> path_var_;
scoped_refptr<StringVar> absolute_path_var_;
-
- DISALLOW_COPY_AND_ASSIGN(FileRefResource);
};
} // namespace proxy