From 7064728e0616580ec5ceac357645bed26a25dcc7 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 24 Apr 2021 08:18:21 +0800 Subject: [PATCH] url: Remove perfetto tracing --- src/url/gurl.cc | 5 ----- src/url/gurl.h | 3 --- src/url/origin.cc | 5 ----- src/url/origin.h | 3 --- 4 files changed, 16 deletions(-) diff --git a/src/url/gurl.cc b/src/url/gurl.cc index d619669581..06bcfb5457 100644 --- a/src/url/gurl.cc +++ b/src/url/gurl.cc @@ -15,7 +15,6 @@ #include "base/strings/string_piece.h" #include "base/strings/string_util.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_util.h" @@ -509,10 +508,6 @@ bool GURL::IsAboutPath(base::StringPiece actual_path, return false; } -void GURL::WriteIntoTracedValue(perfetto::TracedValue context) const { - std::move(context).WriteString(possibly_invalid_spec()); -} - std::ostream& operator<<(std::ostream& out, const GURL& url) { return out << url.possibly_invalid_spec(); } diff --git a/src/url/gurl.h b/src/url/gurl.h index baa2ad328b..f9e43e58a5 100644 --- a/src/url/gurl.h +++ b/src/url/gurl.h @@ -15,7 +15,6 @@ #include "base/debug/alias.h" #include "base/strings/string16.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/url_canon.h" #include "url/url_canon_stdstring.h" @@ -439,8 +438,6 @@ class COMPONENT_EXPORT(URL) GURL { static bool IsAboutPath(base::StringPiece actual_path, base::StringPiece allowed_path); - void WriteIntoTracedValue(perfetto::TracedValue context) const; - private: // 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 diff --git a/src/url/origin.cc b/src/url/origin.cc index 10099725d7..43db9dbaf6 100644 --- a/src/url/origin.cc +++ b/src/url/origin.cc @@ -17,7 +17,6 @@ #include "base/strings/strcat.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" -#include "third_party/perfetto/include/perfetto/tracing/traced_value.h" #include "url/gurl.h" #include "url/url_canon.h" #include "url/url_canon_stdstring.h" @@ -373,10 +372,6 @@ base::Optional Origin::Deserialize(const std::string& value) { return origin; } -void Origin::WriteIntoTracedValue(perfetto::TracedValue context) const { - std::move(context).WriteString(GetDebugString()); -} - std::ostream& operator<<(std::ostream& out, const url::Origin& origin) { out << origin.GetDebugString(); return out; diff --git a/src/url/origin.h b/src/url/origin.h index 4f3e01790f..ff05102efc 100644 --- a/src/url/origin.h +++ b/src/url/origin.h @@ -20,7 +20,6 @@ #include "base/unguessable_token.h" #include "build/build_config.h" #include "ipc/ipc_param_traits.h" -#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h" #include "url/scheme_host_port.h" #include "url/third_party/mozilla/url_parse.h" #include "url/url_canon.h" @@ -296,8 +295,6 @@ class COMPONENT_EXPORT(URL) Origin { const base::android::JavaRef& java_origin); #endif // OS_ANDROID - void WriteIntoTracedValue(perfetto::TracedValue context) const; - private: friend class blink::SecurityOrigin; // SchemefulSite needs access to the serialization/deserialization logic which