Home
last modified time | relevance | path

Searched full:origin (Results 1 – 25 of 4605) sorted by relevance

12345678910>>...185

/external/cronet/url/
Dorigin.h74 // Per https://html.spec.whatwg.org/multipage/origin.html#origin, an origin is
76 // - a tuple origin of (scheme, host, port) as described in RFC 6454.
77 // - an opaque origin with an internal value, and a memory of the tuple origin
80 // TL;DR: If you need to make a security-relevant decision, use 'url::Origin'.
84 // STL;SDR: If you aren't making actual network connections, use 'url::Origin'.
87 // are "same-origin", and when a canonical serialization of an origin is
88 // required. Note that the canonical serialization of an origin *must not* be
89 // used to determine if two resources are same-origin.
91 // A tuple origin, like 'SchemeHostPort', is composed of a tuple of (scheme,
94 // between contexts. Two tuple origins are same-origin if the tuples are equal.
[all …]
Dorigin.cc5 #include "url/origin.h"
33 Origin::Origin() : nonce_(Nonce()) {} in Origin() function in url::Origin
35 Origin Origin::Create(const GURL& url) { in Create()
37 return Origin(); in Create()
44 // If we're dealing with a 'blob:' URL, https://url.spec.whatwg.org/#origin in Create()
45 // defines the origin as the origin of the URL which results from parsing in Create()
60 return Origin(); in Create()
61 return Origin(std::move(tuple)); in Create()
64 Origin Origin::Resolve(const GURL& url, const Origin& base_origin) { in Resolve()
67 Origin result = Origin::Create(url); in Resolve()
[all …]
Dorigin_unittest.cc12 #include "url/origin.h"
32 // it's not committable as a non-opaque origin. in SetUp()
37 ::testing::AssertionResult DoEqualityComparisons(const url::Origin& a, in DoEqualityComparisons()
38 const url::Origin& b, in DoEqualityComparisons()
60 bool HasNonceTokenBeenInitialized(const url::Origin& origin) { in HasNonceTokenBeenInitialized() argument
61 EXPECT_TRUE(origin.opaque()); in HasNonceTokenBeenInitialized()
63 return !origin.nonce_->token_.is_empty(); in HasNonceTokenBeenInitialized()
66 Origin::Nonce CreateNonce() { return Origin::Nonce(); } in CreateNonce()
68 Origin::Nonce CreateNonce(base::UnguessableToken nonce) { in CreateNonce()
69 return Origin::Nonce(nonce); in CreateNonce()
[all …]
Dorigin_abstract_tests.h15 #include "url/origin.h"
23 // AbstractOriginTest below abstracts away differences between url::Origin and
28 using OriginType = Origin;
30 // Constructing an origin.
38 // Accessors for origin properties.
39 static bool IsOpaque(const OriginType& origin);
40 static std::string GetScheme(const OriginType& origin);
41 static std::string GetHost(const OriginType& origin);
42 static uint16_t GetPort(const OriginType& origin);
44 const OriginType& origin);
[all …]
Dorigin_abstract_tests.cc32 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
[all …]
/external/cronet/net/base/
Dschemeful_site_unittest.cc12 #include "url/origin.h"
19 url::Origin kTestOrigins[] = { in TEST()
20 url::Origin::Create(GURL("http://a.foo.test")), in TEST()
21 url::Origin::Create(GURL("http://b.foo.test")), in TEST()
22 url::Origin::Create(GURL("http://foo.test")), in TEST()
23 url::Origin::Create(GURL("http://a.b.foo.test"))}; in TEST()
35 url::Origin kTestOrigins[] = { in TEST()
36 url::Origin::Create(GURL("data:text/html,<body>Hello World</body>")), in TEST()
37 url::Origin::Create(GURL("file://foo")), in TEST()
38 url::Origin::Create(GURL("http://a.bar.test")), in TEST()
[all …]
Dschemeful_site.cc18 // * a new origin using the registerable domain of `origin` if possible and
19 // a port of 0; otherwise, the passed-in origin.
20 // * a bool indicating whether `origin` had a non-null registerable domain.
21 // (False if `origin` was opaque.)
24 // https://html.spec.whatwg.org/multipage/origin.html#obtain-a-site
26 const url::Origin& origin) { in ObtainASite() argument
27 // 1. If origin is an opaque origin, then return origin. in ObtainASite()
28 if (origin.opaque()) in ObtainASite()
29 return {origin, false /* used_registerable_domain */}; in ObtainASite()
38 if (IsStandardSchemeWithNetworkHost(origin.scheme())) { in ObtainASite()
[all …]
Dschemeful_site.h14 #include "url/origin.h"
41 // Class which represents a scheme and etld+1 for an origin, as specified by
42 // https://html.spec.whatwg.org/multipage/origin.html#obtain-a-site.
44 // A SchemefulSite is obtained from an input origin by normalizing, such that:
60 // The passed `origin` may not match the resulting internal representation in
63 explicit SchemefulSite(const url::Origin& origin);
65 // Using the origin constructor is preferred as this is less efficient.
66 // Should only be used if the origin for a given GURL is not readily
82 static bool FromWire(const url::Origin& site_as_origin, SchemefulSite* out);
84 // Creates a SchemefulSite iff the passed-in origin has a registerable domain.
[all …]
Disolation_info.cc22 // Checks that |origin| is consistent with |site_for_cookies|.
23 bool ValidateSameSite(const url::Origin& origin, in ValidateSameSite() argument
36 if (origin.opaque()) in ValidateSameSite()
41 return site_for_cookies.IsFirstParty(origin.GetURL()); in ValidateSameSite()
48 const absl::optional<url::Origin>& top_frame_origin, in IsConsistent()
49 const absl::optional<url::Origin>& frame_origin, in IsConsistent()
84 // For subframe navigations, the subframe's origin may not be consistent in IsConsistent()
89 // SiteForCookies must consistent with the frame origin as well for in IsConsistent()
113 const url::Origin& top_frame_origin) { in CreateForInternalRequest()
121 url::Origin opaque_origin; in CreateTransient()
[all …]
/external/cronet/url/android/java/src/org/chromium/url/
DOrigin.java11 /** An origin is either a (scheme, host, port) tuple or is opaque. */
13 public class Origin { class
25 * Constructs an opaque origin.
27 public static Origin createOpaqueOrigin() { in createOpaqueOrigin()
32 * See origin.h for many warnings about this method.
34 * Constructs an Origin from a GURL.
36 public static Origin create(GURL gurl) { in create()
41 * Parses a mojo Origin into a Java analogue of the c++ Origin class.
43 * `org.chromium.url.internal.mojom.Origin`s, are provided by Mojo-generated code but not
46 * @return A Java equivalent of the c++ Origin represented by the provided mojo Origin.
[all …]
/external/rust/crates/url/src/
Dorigin.rs14 pub fn url_origin(url: &Url) -> Origin { in url_origin() argument
21 Err(_) => Origin::new_opaque(), in url_origin()
24 "ftp" | "http" | "https" | "ws" | "wss" => Origin::Tuple( in url_origin()
30 "file" => Origin::new_opaque(), in url_origin()
31 _ => Origin::new_opaque(), in url_origin()
35 /// The origin of an URL
37 /// Two URLs with the same origin are considered
41 /// The origin is determined based on the scheme as follows:
43 /// - If the scheme is "blob" the origin is the origin of the
45 /// it is an opaque origin.
[all …]
/external/cronet/url/android/javatests/src/org/chromium/url/
DOriginJavaTest.java20 * Tests for {@link Origin}. Origin relies heavily on the native implementation, and the lion's
41 Origin opaque = Origin.createOpaqueOrigin(); in testCreateOpaqueOrigin()
54 org.chromium.url.internal.mojom.Origin mojom = new org.chromium.url.internal.mojom.Origin(); in testNonOpaqueMojomConstructor()
58 Origin origin = new Origin(mojom); in testNonOpaqueMojomConstructor() local
60 Assert.assertEquals(scheme, origin.getScheme()); in testNonOpaqueMojomConstructor()
61 Assert.assertEquals(host, origin.getHost()); in testNonOpaqueMojomConstructor()
62 Assert.assertEquals(port, origin.getPort()); in testNonOpaqueMojomConstructor()
63 Assert.assertFalse(origin.isOpaque()); in testNonOpaqueMojomConstructor()
72 org.chromium.url.internal.mojom.Origin mojom = new org.chromium.url.internal.mojom.Origin(); in testOpaqueMojomConstructor()
81 Origin origin = new Origin(mojom); in testOpaqueMojomConstructor() local
[all …]
/external/cronet/url/android/
Dorigin_android.cc5 #include "url/origin.h"
18 base::android::ScopedJavaLocalRef<jobject> Origin::CreateJavaObject() const { in CreateJavaObject()
20 const base::UnguessableToken* token = Origin::GetNonceForSerialization(); in CreateJavaObject()
29 Origin Origin::FromJavaObject( in FromJavaObject()
32 std::unique_ptr<Origin> origin = base::WrapUnique<Origin>( in FromJavaObject() local
33 reinterpret_cast<Origin*>(Java_Origin_toNativeOrigin(env, java_origin))); in FromJavaObject()
34 return std::move(*origin); in FromJavaObject()
38 jlong Origin::CreateNative(JNIEnv* env, in CreateNative()
52 Origin::Nonce nonce; in CreateNative()
54 nonce = Origin::Nonce(nonce_token.value()); in CreateNative()
[all …]
Dorigin_java_test_helper.cc11 #include "url/origin.h"
16 Origin cases[] = { in JNI_OriginJavaTestHelper_TestOriginEquivalence()
17 Origin(), in JNI_OriginJavaTestHelper_TestOriginEquivalence()
18 Origin::Create(GURL("http://a.com")), in JNI_OriginJavaTestHelper_TestOriginEquivalence()
19 Origin::Create(GURL("http://a.com:8000")), in JNI_OriginJavaTestHelper_TestOriginEquivalence()
20 Origin::Create(GURL("scheme:host")), in JNI_OriginJavaTestHelper_TestOriginEquivalence()
21 Origin::Create(GURL("http://a.com:8000")).DeriveNewOpaqueOrigin(), in JNI_OriginJavaTestHelper_TestOriginEquivalence()
23 for (const Origin& origin : cases) { in JNI_OriginJavaTestHelper_TestOriginEquivalence() local
25 origin.CreateJavaObject(); in JNI_OriginJavaTestHelper_TestOriginEquivalence()
26 Origin sameOrigin = Origin::FromJavaObject(j_origin); in JNI_OriginJavaTestHelper_TestOriginEquivalence()
[all …]
/external/kotlinc/license/
DREADME.md12 …- Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright …
16 …- Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright …
20 …- Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright …
24 …- Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright …
28 …- Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright …
32 …- Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright …
36 …- Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright …
40 …- Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright …
44 …- Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright …
48 - Origin: Originally part of the Dart compiler, (c) 2011 the Dart Project Authors,
[all …]
/external/apache-http/src/org/apache/http/impl/cookie/
DRFC2965Spec.java84 final String name, final String value, final CookieOrigin origin) { in createCookie() argument
86 cookie.setPath(getDefaultPath(origin)); in createCookie()
87 cookie.setDomain(getDefaultDomain(origin)); in createCookie()
92 final String name, final String value, final CookieOrigin origin) { in createCookie2() argument
94 cookie.setPath(getDefaultPath(origin)); in createCookie2()
95 cookie.setDomain(getDefaultDomain(origin)); in createCookie2()
96 cookie.setPorts(new int [] { origin.getPort() }); in createCookie2()
103 CookieOrigin origin) throws MalformedCookieException { in parse() argument
107 if (origin == null) { in parse()
108 throw new IllegalArgumentException("Cookie origin may not be null"); in parse()
[all …]
/external/compiler-rt/lib/msan/
Dmsan_origin.h10 // Origin id utils.
20 // Origin handling.
22 // Origin is a 32-bit identifier that is attached to any uninitialized value in
26 // There are 3 kinds of origin ids:
27 // 1xxx xxxx xxxx xxxx heap origin id
28 // 0000 xxxx xxxx xxxx stack origin id
29 // 0zzz xxxx xxxx xxxx chained origin id
31 // Heap origin id describes a heap memory allocation and contains (in the xxx
34 // Stack origin id describes a stack memory allocation and contains (in the xxx
38 // Chained origin id describes an event of storing an uninitialized value to
[all …]
Dmsan.h37 INVALID, APP, SHADOW, ORIGIN enumerator
49 {0x00c000000000ULL, 0x00e000000000ULL, MappingDesc::ORIGIN, "origin"},
69 {0x02000000000ULL, 0x03000000000ULL, MappingDesc::ORIGIN, "origin-2"},
71 {0x04000000000ULL, 0x05000000000ULL, MappingDesc::ORIGIN, "origin-1"},
78 {0x0A000000000ULL, 0x0B000000000ULL, MappingDesc::ORIGIN, "origin-3"},
85 {0x18000000000ULL, 0x19000000000ULL, MappingDesc::ORIGIN, "origin-4"},
90 {0x27000000000ULL, 0x28000000000ULL, MappingDesc::ORIGIN, "origin-5"},
92 {0x29000000000ULL, 0x2A000000000ULL, MappingDesc::ORIGIN, "origin-7"},
96 {0x2D000000000ULL, 0x2E000000000ULL, MappingDesc::ORIGIN, "origin-6"},
100 {0x3A000000000ULL, 0x3B000000000ULL, MappingDesc::ORIGIN, "origin-9"},
[all …]
/external/cronet/third_party/quic_trace/src/tools/render/
Dgeometry_util.h86 // A rectangle formed by vertices |origin| and |origin + size|.
88 vec2 origin; member
93 return lhs.origin == rhs.origin && lhs.size == rhs.size;
96 return lhs.origin != rhs.origin || lhs.size != rhs.size;
105 return BoundingBox(PointwiseMin(a.origin, b.origin), in BoundingBox()
106 PointwiseMax(a.origin + a.size, b.origin + b.size)); in BoundingBox()
110 vec2 corner_low = PointwiseMax(a.origin, b.origin); in IntersectBoxes()
111 vec2 corner_high = PointwiseMin(a.origin + a.size, b.origin + b.size); in IntersectBoxes()
120 const vec2 corner_inner = inner.origin + inner.size; in IsInside()
121 const vec2 corner_outer = outer.origin + outer.size; in IsInside()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/type/
DArrayType.java57 * The origin of a pair of array brackets [].
59 public enum Origin { enum in ArrayType
73 private Origin origin; field in ArrayType
76 public ArrayType(Type componentType, Origin origin, NodeList<AnnotationExpr> annotations) { in ArrayType() argument
77 this(null, componentType, origin, annotations); in ArrayType()
81 this(type, Origin.TYPE, nodeList(annotations)); in ArrayType()
88 …public ArrayType(TokenRange tokenRange, Type componentType, Origin origin, NodeList<AnnotationExpr… in ArrayType() argument
91 setOrigin(origin); in ArrayType()
177 private Origin origin; field in ArrayType.ArrayBracketPair
179 …public ArrayBracketPair(TokenRange tokenRange, Origin origin, NodeList<AnnotationExpr> annotations… in ArrayBracketPair() argument
[all …]
/external/llvm/test/Instrumentation/MemorySanitizer/
Dorigin-alignment.ll8 ; Check origin instrumentation of stores.
9 ; Check that debug info for origin propagation code is set correctly.
16 ; 8-aligned store => 8-aligned origin store, origin address is not realigned
24 ; CHECK-ORIGINS1: [[ORIGIN:%[01-9a-z]+]] = load {{.*}} @__msan_param_origin_tls
26 ; CHECK-ORIGINS2: [[ORIGIN:%[01-9a-z]+]] = call i32 @__msan_chain_origin(i32 [[ORIGIN0]])
27 ; CHECK: store i32 [[ORIGIN]], {{.*}}, align 8
31 ; 4-aligned store => 4-aligned origin store, origin address is not realigned
39 ; CHECK-ORIGINS1: [[ORIGIN:%[01-9a-z]+]] = load {{.*}} @__msan_param_origin_tls
41 ; CHECK-ORIGINS2: [[ORIGIN:%[01-9a-z]+]] = call i32 @__msan_chain_origin(i32 [[ORIGIN0]])
42 ; CHECK: store i32 [[ORIGIN]], {{.*}}, align 4
[all …]
/external/turbine/java/com/google/turbine/binder/
DResolve.java46 @Nullable ClassSymbol origin, in resolve() argument
49 return resolve(env, origin, sym, simpleName, new HashSet<>()); in resolve()
54 @Nullable ClassSymbol origin, in resolve() argument
72 result = resolve(env, origin, bound.superclass(), simpleName, seen); in resolve()
73 if (result != null && visible(origin, result, env.getNonNull(result))) { in resolve()
78 result = resolve(env, origin, i, simpleName, seen); in resolve()
79 if (result != null && visible(origin, result, env.getNonNull(result))) { in resolve()
88 * env} and {@code origin} symbol.
91 Env<ClassSymbol, ? extends HeaderBoundClass> env, @Nullable ClassSymbol origin) { in resolveFunction() argument
96 return Resolve.resolve(env, origin, base, name); in resolveFunction()
[all …]
/external/clang/test/Analysis/
Duninit-vals.m49 Point origin; field
66 testObj->origin = makePoint(0.0, 0.0);
69 // FIXME: Assigning to 'testObj->origin' kills the default binding for the
82 testObj->origin = makePoint(0.0, 0.0);
93 IntPoint origin; field
109 clang_analyzer_eval(testObj->origin.x == 0); // expected-warning{{TRUE}}
110 clang_analyzer_eval(testObj->origin.y == 0); // expected-warning{{TRUE}}
111 clang_analyzer_eval(testObj->origin.z == 0); // expected-warning{{TRUE}}
113 testObj->origin = makeIntPoint(1, 2);
116 // FIXME: Assigning to 'testObj->origin' kills the default binding for the
[all …]
/external/scudo/standalone/
Dwrappers_cpp.cpp25 return Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new()
28 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray); in operator new[]()
32 return Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new()
36 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray); in operator new[]()
39 return Allocator.allocate(size, scudo::Chunk::Origin::New, in operator new()
43 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator new[]()
48 return Allocator.allocate(size, scudo::Chunk::Origin::New, in operator new()
53 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator new[]()
58 Allocator.deallocate(ptr, scudo::Chunk::Origin::New); in operator delete()
61 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray); in operator delete[]()
[all …]
/external/oboe/samples/RhythmGame/third_party/glm/gtx/
Dextend.inl9 genType const & Origin, argument
14 return Origin + (Source - Origin) * Distance;
20 tvec2<T, P> const & Origin, argument
25 return Origin + (Source - Origin) * Distance;
31 tvec3<T, P> const & Origin, argument
36 return Origin + (Source - Origin) * Distance;
42 tvec4<T, P> const & Origin, argument
47 return Origin + (Source - Origin) * Distance;

12345678910>>...185