These change are being done to make use of `absl::StrFormat` in the future, and also to get some better codegen with these constants. There's also some harderning on upstream code to avoid unnecessary conversions involving constants, which can only be enforced in a `constexpr` constext.
27 lines
768 B
C++
27 lines
768 B
C++
/* Copyright (c) 2019 The Brave Authors. All rights reserved.
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef BRAVE_BROWSER_NET_BRAVE_SYSTEM_REQUEST_HANDLER_H_
|
|
#define BRAVE_BROWSER_NET_BRAVE_SYSTEM_REQUEST_HANDLER_H_
|
|
|
|
#include <string>
|
|
|
|
namespace network {
|
|
struct ResourceRequest;
|
|
}
|
|
|
|
namespace brave {
|
|
|
|
std::string BraveServicesKeyForTesting();
|
|
|
|
void AddBraveServicesKeyHeader(network::ResourceRequest* url_request);
|
|
|
|
network::ResourceRequest OnBeforeSystemRequest(
|
|
const network::ResourceRequest& url_request);
|
|
|
|
} // namespace brave
|
|
|
|
#endif // BRAVE_BROWSER_NET_BRAVE_SYSTEM_REQUEST_HANDLER_H_
|