This change updates how brave/chromium_src overrides can reference original files: it adds ability to use #include <...> along with #include "src/...". This is enabled by replacing -I../../brave/chromium_src with -iquote../../brave_chromium_src, which adds an include search path only for #include "..." directives. With this approach, other files in the build tree can reference brave/chromium_src overrides using #include "...", while the overrides themselves can reference original Chromium files using #include <...>. Since Chromium uses #include "..." for all in-tree files, we can leverage this convention and configure our overrides so that we can drop support for #include "src/" later by removing -I../../.. and making rbe_exec_root modification obsolete (the main goal).
25 lines
719 B
C++
25 lines
719 B
C++
/* Copyright (c) 2024 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 https://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "net/http/http_util.h"
|
|
|
|
#include "base/strings/string_util.h"
|
|
|
|
#define IsNonCoalescingHeader IsNonCoalescingHeader_ChromiumImpl
|
|
#include <net/http/http_util.cc>
|
|
#undef IsNonCoalescingHeader
|
|
|
|
namespace net {
|
|
|
|
// static
|
|
bool HttpUtil::IsNonCoalescingHeader(std::string_view name) {
|
|
if (base::EqualsCaseInsensitiveASCII(name, "onion-location")) {
|
|
return true;
|
|
}
|
|
return IsNonCoalescingHeader_ChromiumImpl(name);
|
|
}
|
|
|
|
} // namespace net
|