Remove DISALLOW_* macros from net/
This inlines all remaining DISALLOW_* macros in net/. This is done
manually (vim regex + manually finding insertion position).
IWYU cleanup is left as a separate pass that is easier when these macros
go away.
Bug: 1010217
Change-Id: I7fade65cf1fd0f08e1c3baeff35dfbf3beb3ebce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3202538
Commit-Queue: Peter Boström <[email protected]>
Reviewed-by: Lei Zhang <[email protected]>
Owners-Override: Lei Zhang <[email protected]>
Cr-Commit-Position: refs/heads/main@{#929037}
diff --git a/net/cert/internal/trust_store_mac.cc b/net/cert/internal/trust_store_mac.cc
index 50f94d875..7fe2987 100644
--- a/net/cert/internal/trust_store_mac.cc
+++ b/net/cert/internal/trust_store_mac.cc
@@ -370,6 +370,9 @@
DCHECK(policy_oid_);
}
+ TrustDomainCache(const TrustDomainCache&) = delete;
+ TrustDomainCache& operator=(const TrustDomainCache&) = delete;
+
// (Re-)Initializes the cache with the certs in |domain_| set to UNKNOWN trust
// status.
void Initialize() {
@@ -437,8 +440,6 @@
const SecTrustSettingsDomain domain_;
const CFStringRef policy_oid_;
base::flat_map<SHA256HashValue, TrustStatusDetails> trust_status_cache_;
-
- DISALLOW_COPY_AND_ASSIGN(TrustDomainCache);
};
SHA256HashValue CalculateFingerprint256(const der::Input& buffer) {
@@ -454,6 +455,11 @@
// function pointer and different contexts.
class KeychainTrustSettingsChangedNotifier {
public:
+ KeychainTrustSettingsChangedNotifier(
+ const KeychainTrustSettingsChangedNotifier&) = delete;
+ KeychainTrustSettingsChangedNotifier& operator=(
+ const KeychainTrustSettingsChangedNotifier&) = delete;
+
// Registers |callback| to be run when the keychain trust settings change.
// Must be called on the network notification thread. |callback| will be run
// on the network notification thread. The returned subscription must be
@@ -493,8 +499,6 @@
}
base::RepeatingClosureList callback_list_;
-
- DISALLOW_COPY_AND_ASSIGN(KeychainTrustSettingsChangedNotifier);
};
// Observes keychain events and increments the value returned by Iteration()