chore: add ELECTRON_ prefix to C++ include guards (#31925)

This commit is contained in:
Milan Burda 2021-11-22 08:34:31 +01:00 committed by GitHub
parent 0865267387
commit c4ea33d1bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
358 changed files with 1080 additions and 1079 deletions

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_ASAR_ASAR_FILE_VALIDATOR_H_
#define SHELL_BROWSER_NET_ASAR_ASAR_FILE_VALIDATOR_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_ASAR_ASAR_FILE_VALIDATOR_H_
#define ELECTRON_SHELL_BROWSER_NET_ASAR_ASAR_FILE_VALIDATOR_H_
#include <algorithm>
#include <memory>
@ -60,4 +60,4 @@ class AsarFileValidator : public mojo::FilteredDataSource::Filter {
} // namespace asar
#endif // SHELL_BROWSER_NET_ASAR_ASAR_FILE_VALIDATOR_H_
#endif // ELECTRON_SHELL_BROWSER_NET_ASAR_ASAR_FILE_VALIDATOR_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_H_
#define SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_H_
#define ELECTRON_SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_H_
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "services/network/public/cpp/resource_request.h"
@ -19,4 +19,4 @@ void CreateAsarURLLoader(
} // namespace asar
#endif // SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_H_
#endif // ELECTRON_SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_FACTORY_H_
#define SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_FACTORY_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_FACTORY_H_
#define ELECTRON_SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_FACTORY_H_
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
@ -34,4 +34,4 @@ class AsarURLLoaderFactory : public network::SelfDeletingURLLoaderFactory {
} // namespace electron
#endif // SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_FACTORY_H_
#endif // ELECTRON_SHELL_BROWSER_NET_ASAR_ASAR_URL_LOADER_FACTORY_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_CERT_VERIFIER_CLIENT_H_
#define SHELL_BROWSER_NET_CERT_VERIFIER_CLIENT_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_CERT_VERIFIER_CLIENT_H_
#define ELECTRON_SHELL_BROWSER_NET_CERT_VERIFIER_CLIENT_H_
#include <string>
@ -49,4 +49,4 @@ class CertVerifierClient : public network::mojom::CertVerifierClient {
} // namespace electron
#endif // SHELL_BROWSER_NET_CERT_VERIFIER_CLIENT_H_
#endif // ELECTRON_SHELL_BROWSER_NET_CERT_VERIFIER_CLIENT_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_ELECTRON_URL_LOADER_FACTORY_H_
#define SHELL_BROWSER_NET_ELECTRON_URL_LOADER_FACTORY_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_ELECTRON_URL_LOADER_FACTORY_H_
#define ELECTRON_SHELL_BROWSER_NET_ELECTRON_URL_LOADER_FACTORY_H_
#include <map>
#include <string>
@ -177,4 +177,4 @@ class ElectronURLLoaderFactory : public network::SelfDeletingURLLoaderFactory {
} // namespace electron
#endif // SHELL_BROWSER_NET_ELECTRON_URL_LOADER_FACTORY_H_
#endif // ELECTRON_SHELL_BROWSER_NET_ELECTRON_URL_LOADER_FACTORY_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_H_
#define SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_H_
#define ELECTRON_SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_H_
#include "base/files/file_path.h"
#include "chrome/browser/net/proxy_config_monitor.h"
@ -42,4 +42,4 @@ class NetworkContextService : public KeyedService {
} // namespace electron
#endif // SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_H_
#endif // ELECTRON_SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_FACTORY_H_
#define SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_FACTORY_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_FACTORY_H_
#define ELECTRON_SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_FACTORY_H_
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
@ -47,4 +47,4 @@ class NetworkContextServiceFactory : public BrowserContextKeyedServiceFactory {
} // namespace electron
#endif // SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_FACTORY_H_
#endif // ELECTRON_SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_FACTORY_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_NODE_STREAM_LOADER_H_
#define SHELL_BROWSER_NET_NODE_STREAM_LOADER_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_NODE_STREAM_LOADER_H_
#define ELECTRON_SHELL_BROWSER_NET_NODE_STREAM_LOADER_H_
#include <map>
#include <memory>
@ -103,4 +103,4 @@ class NodeStreamLoader : public network::mojom::URLLoader {
} // namespace electron
#endif // SHELL_BROWSER_NET_NODE_STREAM_LOADER_H_
#endif // ELECTRON_SHELL_BROWSER_NET_NODE_STREAM_LOADER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_PROXYING_URL_LOADER_FACTORY_H_
#define SHELL_BROWSER_NET_PROXYING_URL_LOADER_FACTORY_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_PROXYING_URL_LOADER_FACTORY_H_
#define ELECTRON_SHELL_BROWSER_NET_PROXYING_URL_LOADER_FACTORY_H_
#include <cstdint>
#include <map>
@ -281,4 +281,4 @@ class ProxyingURLLoaderFactory
} // namespace electron
#endif // SHELL_BROWSER_NET_PROXYING_URL_LOADER_FACTORY_H_
#endif // ELECTRON_SHELL_BROWSER_NET_PROXYING_URL_LOADER_FACTORY_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_PROXYING_WEBSOCKET_H_
#define SHELL_BROWSER_NET_PROXYING_WEBSOCKET_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_PROXYING_WEBSOCKET_H_
#define ELECTRON_SHELL_BROWSER_NET_PROXYING_WEBSOCKET_H_
#include <set>
#include <string>
@ -178,4 +178,4 @@ class ProxyingWebSocket : public network::mojom::WebSocketHandshakeClient,
} // namespace electron
#endif // SHELL_BROWSER_NET_PROXYING_WEBSOCKET_H_
#endif // ELECTRON_SHELL_BROWSER_NET_PROXYING_WEBSOCKET_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_RESOLVE_PROXY_HELPER_H_
#define SHELL_BROWSER_NET_RESOLVE_PROXY_HELPER_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_RESOLVE_PROXY_HELPER_H_
#define ELECTRON_SHELL_BROWSER_NET_RESOLVE_PROXY_HELPER_H_
#include <deque>
#include <string>
@ -75,4 +75,4 @@ class ResolveProxyHelper
} // namespace electron
#endif // SHELL_BROWSER_NET_RESOLVE_PROXY_HELPER_H_
#endif // ELECTRON_SHELL_BROWSER_NET_RESOLVE_PROXY_HELPER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_SYSTEM_NETWORK_CONTEXT_MANAGER_H_
#define SHELL_BROWSER_NET_SYSTEM_NETWORK_CONTEXT_MANAGER_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_SYSTEM_NETWORK_CONTEXT_MANAGER_H_
#define ELECTRON_SHELL_BROWSER_NET_SYSTEM_NETWORK_CONTEXT_MANAGER_H_
#include "base/memory/ref_counted.h"
#include "chrome/browser/net/proxy_config_monitor.h"
@ -106,4 +106,4 @@ class SystemNetworkContextManager {
mojo::Remote<network::mojom::URLLoaderFactory> url_loader_factory_;
};
#endif // SHELL_BROWSER_NET_SYSTEM_NETWORK_CONTEXT_MANAGER_H_
#endif // ELECTRON_SHELL_BROWSER_NET_SYSTEM_NETWORK_CONTEXT_MANAGER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_URL_PIPE_LOADER_H_
#define SHELL_BROWSER_NET_URL_PIPE_LOADER_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_URL_PIPE_LOADER_H_
#define ELECTRON_SHELL_BROWSER_NET_URL_PIPE_LOADER_H_
#include <memory>
#include <string>
@ -85,4 +85,4 @@ class URLPipeLoader : public network::mojom::URLLoader,
} // namespace electron
#endif // SHELL_BROWSER_NET_URL_PIPE_LOADER_H_
#endif // ELECTRON_SHELL_BROWSER_NET_URL_PIPE_LOADER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_NET_WEB_REQUEST_API_INTERFACE_H_
#define SHELL_BROWSER_NET_WEB_REQUEST_API_INTERFACE_H_
#ifndef ELECTRON_SHELL_BROWSER_NET_WEB_REQUEST_API_INTERFACE_H_
#define ELECTRON_SHELL_BROWSER_NET_WEB_REQUEST_API_INTERFACE_H_
#include <set>
#include <string>
@ -59,4 +59,4 @@ class WebRequestAPI {
} // namespace electron
#endif // SHELL_BROWSER_NET_WEB_REQUEST_API_INTERFACE_H_
#endif // ELECTRON_SHELL_BROWSER_NET_WEB_REQUEST_API_INTERFACE_H_