net: Remove dependency on mojo

This commit is contained in:
klzgrad 2024-05-12 22:51:35 +08:00
parent 9ea98b4637
commit 8e812d3d54
3 changed files with 5 additions and 5 deletions

View File

@ -1654,7 +1654,7 @@ component("net") {
configs += [ "//build/config/compiler:optimize_max" ] configs += [ "//build/config/compiler:optimize_max" ]
} }
if (!is_cronet_build) { if (false) {
deps += [ "//mojo/public/cpp/bindings:default_construct_tag" ] deps += [ "//mojo/public/cpp/bindings:default_construct_tag" ]
} }
} }

View File

@ -16,7 +16,7 @@
#include "net/cookies/cookie_util.h" #include "net/cookies/cookie_util.h"
#include "net/cookies/site_for_cookies.h" #include "net/cookies/site_for_cookies.h"
#if !BUILDFLAG(CRONET_BUILD) #if 0
#include "mojo/public/cpp/bindings/default_construct_tag.h" #include "mojo/public/cpp/bindings/default_construct_tag.h"
#endif #endif
@ -60,7 +60,7 @@ std::string CookiePartitionKey::SerializedCookiePartitionKey::GetDebugString()
return out; return out;
} }
#if !BUILDFLAG(CRONET_BUILD) #if 0
CookiePartitionKey::CookiePartitionKey(mojo::DefaultConstruct::Tag) {} CookiePartitionKey::CookiePartitionKey(mojo::DefaultConstruct::Tag) {}
#endif #endif
bool CookiePartitionKey::SerializedCookiePartitionKey::has_cross_site_ancestor() bool CookiePartitionKey::SerializedCookiePartitionKey::has_cross_site_ancestor()

View File

@ -16,7 +16,7 @@
#include "net/base/schemeful_site.h" #include "net/base/schemeful_site.h"
#include "url/gurl.h" #include "url/gurl.h"
#if !BUILDFLAG(CRONET_BUILD) #if 0
#include "mojo/public/cpp/bindings/default_construct_tag.h" #include "mojo/public/cpp/bindings/default_construct_tag.h"
#endif #endif
@ -60,7 +60,7 @@ class NET_EXPORT CookiePartitionKey {
static AncestorChainBit BoolToAncestorChainBit(bool val); static AncestorChainBit BoolToAncestorChainBit(bool val);
CookiePartitionKey() = delete; CookiePartitionKey() = delete;
#if !BUILDFLAG(CRONET_BUILD) #if 0
explicit CookiePartitionKey(mojo::DefaultConstruct::Tag); explicit CookiePartitionKey(mojo::DefaultConstruct::Tag);
#endif #endif
CookiePartitionKey(const CookiePartitionKey& other); CookiePartitionKey(const CookiePartitionKey& other);