mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
url: Remove perfetto tracing
This commit is contained in:
parent
7799439000
commit
ae6a1f5d17
@ -16,7 +16,6 @@
|
|||||||
#include "base/strings/string_piece.h"
|
#include "base/strings/string_piece.h"
|
||||||
#include "base/strings/string_util.h"
|
#include "base/strings/string_util.h"
|
||||||
#include "base/trace_event/memory_usage_estimator.h"
|
#include "base/trace_event/memory_usage_estimator.h"
|
||||||
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
|
|
||||||
#include "url/url_canon_stdstring.h"
|
#include "url/url_canon_stdstring.h"
|
||||||
#include "url/url_util.h"
|
#include "url/url_util.h"
|
||||||
|
|
||||||
@ -521,10 +520,6 @@ bool GURL::IsAboutPath(base::StringPiece actual_path,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GURL::WriteIntoTrace(perfetto::TracedValue context) const {
|
|
||||||
std::move(context).WriteString(possibly_invalid_spec());
|
|
||||||
}
|
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& out, const GURL& url) {
|
std::ostream& operator<<(std::ostream& out, const GURL& url) {
|
||||||
return out << url.possibly_invalid_spec();
|
return out << url.possibly_invalid_spec();
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
#include "base/debug/alias.h"
|
#include "base/debug/alias.h"
|
||||||
#include "base/debug/crash_logging.h"
|
#include "base/debug/crash_logging.h"
|
||||||
#include "base/strings/string_piece.h"
|
#include "base/strings/string_piece.h"
|
||||||
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
|
|
||||||
#include "url/third_party/mozilla/url_parse.h"
|
#include "url/third_party/mozilla/url_parse.h"
|
||||||
#include "url/url_canon.h"
|
#include "url/url_canon.h"
|
||||||
#include "url/url_canon_stdstring.h"
|
#include "url/url_canon_stdstring.h"
|
||||||
@ -449,8 +448,6 @@ class COMPONENT_EXPORT(URL) GURL {
|
|||||||
static bool IsAboutPath(base::StringPiece actual_path,
|
static bool IsAboutPath(base::StringPiece actual_path,
|
||||||
base::StringPiece allowed_path);
|
base::StringPiece allowed_path);
|
||||||
|
|
||||||
void WriteIntoTrace(perfetto::TracedValue context) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Variant of the string parsing constructor that allows the caller to elect
|
// Variant of the string parsing constructor that allows the caller to elect
|
||||||
// retain trailing whitespace, if any, on the passed URL spec, but only if
|
// retain trailing whitespace, if any, on the passed URL spec, but only if
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#include "base/strings/strcat.h"
|
#include "base/strings/strcat.h"
|
||||||
#include "base/strings/string_piece.h"
|
#include "base/strings/string_piece.h"
|
||||||
#include "base/unguessable_token.h"
|
#include "base/unguessable_token.h"
|
||||||
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
|
|
||||||
#include "url/gurl.h"
|
#include "url/gurl.h"
|
||||||
#include "url/scheme_host_port.h"
|
#include "url/scheme_host_port.h"
|
||||||
#include "url/url_constants.h"
|
#include "url/url_constants.h"
|
||||||
@ -388,10 +387,6 @@ absl::optional<Origin> Origin::Deserialize(const std::string& value) {
|
|||||||
return origin;
|
return origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Origin::WriteIntoTrace(perfetto::TracedValue context) const {
|
|
||||||
std::move(context).WriteString(GetDebugString());
|
|
||||||
}
|
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& out, const url::Origin& origin) {
|
std::ostream& operator<<(std::ostream& out, const url::Origin& origin) {
|
||||||
out << origin.GetDebugString();
|
out << origin.GetDebugString();
|
||||||
return out;
|
return out;
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#include "build/buildflag.h"
|
#include "build/buildflag.h"
|
||||||
#include "ipc/ipc_param_traits.h"
|
#include "ipc/ipc_param_traits.h"
|
||||||
#include "third_party/abseil-cpp/absl/types/optional.h"
|
#include "third_party/abseil-cpp/absl/types/optional.h"
|
||||||
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
|
|
||||||
#include "url/scheme_host_port.h"
|
#include "url/scheme_host_port.h"
|
||||||
|
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
#if BUILDFLAG(IS_ANDROID)
|
||||||
@ -313,8 +312,6 @@ class COMPONENT_EXPORT(URL) Origin {
|
|||||||
const base::android::JavaRef<jobject>& java_origin);
|
const base::android::JavaRef<jobject>& java_origin);
|
||||||
#endif // BUILDFLAG(IS_ANDROID)
|
#endif // BUILDFLAG(IS_ANDROID)
|
||||||
|
|
||||||
void WriteIntoTrace(perfetto::TracedValue context) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class blink::SecurityOrigin;
|
friend class blink::SecurityOrigin;
|
||||||
friend class blink::SecurityOriginTest;
|
friend class blink::SecurityOriginTest;
|
||||||
|
Loading…
Reference in New Issue
Block a user