• Home
  • Raw
  • Download

Lines Matching full:origin

16 #include "url/origin.h"
44 // Class which represents a scheme and etld+1 for an origin, as specified by
45 // https://html.spec.whatwg.org/multipage/origin.html#obtain-a-site.
47 // A SchemefulSite is obtained from an input origin by normalizing, such that:
63 // The passed `origin` may not match the resulting internal representation in
66 explicit SchemefulSite(const url::Origin& origin);
68 // Using the origin constructor is preferred as this is less efficient.
69 // Should only be used if the origin for a given GURL is not readily
85 static bool FromWire(const url::Origin& site_as_origin, SchemefulSite* out);
87 // Creates a SchemefulSite iff the passed-in origin has a registerable domain.
89 const url::Origin&);
102 // Returns a serialized version of `site_as_origin_`. If the underlying origin
108 // we want to preserve the Origin's host.
115 // Gets the underlying site as a GURL. If the internal Origin is opaque,
127 // `url::origin::SerializeWithNonce()` for usage information.
139 const url::Origin& GetInternalOriginForTesting() const;
158 // IPC serialization code needs to access internal origin.
165 // Create SiteForCookies from SchemefulSite needs to access internal origin,
169 // Needed to create a bogus origin from a site.
174 // Needed to create a bogus origin from a site.
185 static ObtainASiteResult ObtainASite(const url::Origin&);
187 explicit SchemefulSite(ObtainASiteResult, const url::Origin&);
196 // `url::origin::SerializeWithNonce()` for usage information.
205 // Returns the host of the underlying `origin`, which will usually be the
212 // This should not be used casually, it's an opaque Origin or an scheme+eTLD+1
213 // packed into an Origin. If you extract this value SchemefulSite is not
215 const url::Origin& internal_value() const { return site_as_origin_; }
217 // Origin which stores the result of running the steps documented at
218 // https://html.spec.whatwg.org/multipage/origin.html#obtain-a-site.
219 // This is not an arbitrary origin. It must either be an opaque origin, or a
222 // The `origin` passed into the SchemefulSite(const url::Origin&) constructor
225 // if, e.g., the passed `origin` has an eTLD+1 that is not equal to its
230 url::Origin site_as_origin_;