refactor: replace deprecated DISALLOW_COPY_AND_ASSIGN (#31633)
This commit is contained in:
parent
2a2a1a834c
commit
65a980c673
231 changed files with 918 additions and 576 deletions
|
@ -12,7 +12,6 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "content/public/browser/content_browser_client.h"
|
||||
#include "content/public/browser/render_frame_host.h"
|
||||
|
@ -69,6 +68,10 @@ class ProxyingURLLoaderFactory
|
|||
const network::ResourceRequest& request);
|
||||
~InProgressRequest() override;
|
||||
|
||||
// disable copy
|
||||
InProgressRequest(const InProgressRequest&) = delete;
|
||||
InProgressRequest& operator=(const InProgressRequest&) = delete;
|
||||
|
||||
void Restart();
|
||||
|
||||
// network::mojom::URLLoader:
|
||||
|
@ -175,13 +178,13 @@ class ProxyingURLLoaderFactory
|
|||
net::HttpRequestHeaders modified_cors_exempt_headers;
|
||||
absl::optional<GURL> new_url;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(FollowRedirectParams);
|
||||
// disable copy
|
||||
FollowRedirectParams(const FollowRedirectParams&) = delete;
|
||||
FollowRedirectParams& operator=(const FollowRedirectParams&) = delete;
|
||||
};
|
||||
std::unique_ptr<FollowRedirectParams> pending_follow_redirect_params_;
|
||||
|
||||
base::WeakPtrFactory<InProgressRequest> weak_factory_{this};
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(InProgressRequest);
|
||||
};
|
||||
|
||||
ProxyingURLLoaderFactory(
|
||||
|
@ -202,6 +205,10 @@ class ProxyingURLLoaderFactory
|
|||
|
||||
~ProxyingURLLoaderFactory() override;
|
||||
|
||||
// disable copy
|
||||
ProxyingURLLoaderFactory(const ProxyingURLLoaderFactory&) = delete;
|
||||
ProxyingURLLoaderFactory& operator=(const ProxyingURLLoaderFactory&) = delete;
|
||||
|
||||
// network::mojom::URLLoaderFactory:
|
||||
void CreateLoaderAndStart(
|
||||
mojo::PendingReceiver<network::mojom::URLLoader> loader,
|
||||
|
@ -270,8 +277,6 @@ class ProxyingURLLoaderFactory
|
|||
std::map<int32_t, uint64_t> network_request_id_to_web_request_id_;
|
||||
|
||||
std::vector<std::string> ignore_connections_limit_domains_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(ProxyingURLLoaderFactory);
|
||||
};
|
||||
|
||||
} // namespace electron
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue