• Home
  • Raw
  • Download

Lines Matching full:origin

32 Origin UrlOriginTestTraits::CreateOriginFromString(base::StringPiece s) {  in CreateOriginFromString()
33 return Origin::Create(GURL(s)); in CreateOriginFromString()
37 Origin UrlOriginTestTraits::CreateUniqueOpaqueOrigin() { in CreateUniqueOpaqueOrigin()
38 return Origin(); in CreateUniqueOpaqueOrigin()
42 Origin UrlOriginTestTraits::CreateWithReferenceOrigin( in CreateWithReferenceOrigin()
44 const Origin& reference_origin) { in CreateWithReferenceOrigin()
45 return Origin::Resolve(GURL(url), reference_origin); in CreateWithReferenceOrigin()
49 Origin UrlOriginTestTraits::DeriveNewOpaqueOrigin( in DeriveNewOpaqueOrigin()
50 const Origin& reference_origin) { in DeriveNewOpaqueOrigin()
55 bool UrlOriginTestTraits::IsOpaque(const Origin& origin) { in IsOpaque() argument
56 return origin.opaque(); in IsOpaque()
60 std::string UrlOriginTestTraits::GetScheme(const Origin& origin) { in GetScheme() argument
61 return origin.scheme(); in GetScheme()
65 std::string UrlOriginTestTraits::GetHost(const Origin& origin) { in GetHost() argument
66 return origin.host(); in GetHost()
70 uint16_t UrlOriginTestTraits::GetPort(const Origin& origin) { in GetPort() argument
71 return origin.port(); in GetPort()
76 const Origin& origin) { in GetTupleOrPrecursorTupleIfOpaque() argument
77 return origin.GetTupleOrPrecursorTupleIfOpaque(); in GetTupleOrPrecursorTupleIfOpaque()
81 bool UrlOriginTestTraits::IsSameOrigin(const Origin& a, const Origin& b) { in IsSameOrigin()
86 std::string UrlOriginTestTraits::Serialize(const Origin& origin) { in Serialize() argument
87 std::string serialized = origin.Serialize(); in Serialize()
91 ExpectParsedUrlsEqual(GURL(serialized), origin.GetURL()); in Serialize()