/third_party/skia/third_party/externals/microhttpd/src/examples/ |
H A D | mhd2spdy_http.c | 20 * @brief HTTP part of the proxy. libmicrohttpd is used for the server side. 87 struct Proxy *proxy = (struct Proxy *)cls; in http_cb_response() local 92 PRINT_INFO2("http_cb_response for %s", proxy->url); in http_cb_response() 94 if(proxy->spdy_error) in http_cb_response() 97 if(0 == proxy->http_body_size && (proxy->done || !proxy->spdy_active)) in http_cb_response() 103 if(!proxy->http_body_size)//nothing to write now in http_cb_response() 106 info = MHD_get_connection_info (proxy->http_connection, in http_cb_response() 117 if(max >= proxy in http_cb_response() 171 struct Proxy *proxy; http_cb_request() local 324 http_create_response(struct Proxy* proxy, char **nv) http_create_response() argument 380 struct Proxy *proxy; http_cb_request_completed() local [all...] |
H A D | mhd2spdy_spdy.c | 27 * @brief SPDY part of the proxy. libspdylay is used for the client side. 76 struct Proxy *proxy = (struct Proxy *)(source->ptr); in spdy_cb_data_source_read() local 86 if(!proxy->received_body_size)//nothing to write now in spdy_cb_data_source_read() 88 if(proxy->receiving_done) in spdy_cb_data_source_read() 97 if(length >= proxy->received_body_size) in spdy_cb_data_source_read() 99 ret = proxy->received_body_size; in spdy_cb_data_source_read() 105 if(NULL == (newbody = malloc(proxy->received_body_size - length))) in spdy_cb_data_source_read() 110 memcpy(newbody, proxy->received_body + length, proxy->received_body_size - length); in spdy_cb_data_source_read() 112 memcpy(buf, proxy in spdy_cb_data_source_read() 294 struct Proxy *proxy; spdy_cb_before_ctrl_send() local 330 struct Proxy * proxy; spdy_cb_on_ctrl_recv() local 394 struct Proxy * proxy = spdylay_session_get_stream_user_data(session, stream_id); spdy_cb_on_stream_close() local 429 struct Proxy *proxy; spdy_cb_on_data_chunk_recv() local 475 struct Proxy *proxy; spdy_cb_on_data_recv() local 815 struct Proxy *proxy; spdy_free_connection() local 842 spdy_request(const char **nv, struct Proxy *proxy, bool with_body) spdy_request() argument [all...] |
/third_party/skia/third_party/externals/microhttpd/src/spdy2http/ |
H A D | proxy.c | 20 * @file proxy.c 412 struct Proxy *proxy = (struct Proxy *)SPDY_get_cls_from_request(request); in spdy_post_data_cb() local 414 if(!store_in_buffer(buf, size, &proxy->received_body, &proxy->received_body_size)) in spdy_post_data_cb() 420 proxy->receiving_done = !more; in spdy_post_data_cb() 426 if(proxy->is_curl_read_paused) in spdy_post_data_cb() 428 if(CURLE_OK != (ret = curl_easy_pause(proxy->curl_handle, CURLPAUSE_CONT))) in spdy_post_data_cb() 447 struct Proxy *proxy = (struct Proxy *)cls; in response_callback() local 451 assert(!proxy->spdy_error); in response_callback() 453 if(proxy in response_callback() 483 cleanup(struct Proxy *proxy) cleanup() argument 513 struct Proxy *proxy = (struct Proxy *)cls; response_done_callback() local 531 struct Proxy *proxy = (struct Proxy *)userp; curl_header_cb() local 686 struct Proxy *proxy = (struct Proxy *)userp; curl_write_cb() local 731 struct Proxy *proxy = (struct Proxy *)userp; curl_read_cb() local 792 struct Proxy *proxy = (struct Proxy *)cls; iterate_cb() local 846 struct Proxy *proxy; standard_request_handler() local 989 struct Proxy *proxy; run() local [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | proxy_own_keys.js | 32 var proxy = new Proxy(target, handler); 36 Array.prototype.sort.call(proxy); 44 Object.keys(proxy); 52 Object.getOwnPropertyNames(proxy); 60 Object.getOwnPropertySymbols(proxy); 77 var proxy = new Proxy(target, handler); 79 array_check(Reflect.ownKeys(proxy), ["foo", "bar", symA]); 80 array_check(Object.getOwnPropertyNames(proxy), ["foo", "bar"]); 81 array_check(Object.keys(proxy), ["foo", "bar"]); 82 array_check(Object.getOwnPropertySymbols(proxy), [sym [all...] |
H A D | proxy_call.js | 24 var proxy = new Proxy (target, handler); 28 proxy (5) 36 proxy = new Proxy(revocable.proxy, {}) 38 proxy (5) 60 var proxy = new Proxy ({},{}); 62 proxy() 68 var proxy2 = new Proxy(proxy, {}); 81 var proxy = new Proxy (target, {}); 83 proxy(); [all...] |
H A D | proxy_get.js | 24 var proxy = new Proxy(target, handler); 28 proxy.a 36 proxy[2]; 44 proxy + "foo"; 57 var proxy = new Proxy(target, handler); 59 assert(proxy.prop === "value"); 60 assert(proxy.nothing === undefined); 61 assert(proxy.handler === undefined); 65 assert(proxy.prop === "value 2"); 66 assert(proxy [all...] |
H A D | proxy_get_prototoype_of.js | 24 var proxy = new Proxy(target, handler); 28 Object.getPrototypeOf(proxy); 36 Object.prototype.isPrototypeOf(proxy); 47 Object.setPrototypeOf(g, proxy); 68 Function.prototype.bind.call(proxy); 81 var proxy = new Proxy(target, handler); 83 assert(Object.getPrototypeOf(proxy) === Array.prototype); 84 assert(Reflect.getPrototypeOf(proxy) === Array.prototype); 85 assert(Array.prototype.isPrototypeOf(proxy)); 86 assert(proxy instanceo [all...] |
H A D | proxy_has.js | 24 var proxy = new Proxy(target, handler); 28 "foo" in proxy; 36 with (proxy) { 47 with (proxy) { 67 var proxy = new Proxy(target, handler); 69 assert("present" in proxy === true); 70 assert("non_present" in proxy === false); 86 var proxy = new Proxy(target, handler); 88 assert("foo" in proxy === false); 89 assert("bar" in proxy [all...] |
H A D | proxy_is_extensible.js | 25 var proxy = new Proxy(target, handler); 29 Object.isFrozen(proxy) 37 Object.isSealed(proxy) 45 Object.isExtensible(proxy) 54 var proxy = new Proxy(target, handler); 56 assert(Object.isExtensible(proxy) === true); 59 assert(Object.isExtensible(proxy) === false); 64 var proxy = new Proxy(target, handler); 66 assert(Object.isExtensible(proxy) === true); 69 assert(Object.isExtensible(proxy) 125 var proxy = revocable.proxy; global() variable [all...] |
H A D | proxy_define_own_property.js | 26 var proxy = new Proxy(target, handler); 29 Array.of.call(proxy, 5) 43 var proxy = new Proxy(target, handler); 46 Object.defineProperty(proxy, "foo", desc); 57 var proxy = new Proxy(target, handler); 59 Object.defineProperty(proxy, "bar", desc); 61 assert(proxy.bar === 1); 64 proxy.bar = 2; 65 assert(proxy.bar === 2); 68 delete proxy [all...] |
H A D | proxy_delete.js | 28 var proxy = new Proxy(target, handler); 33 with (proxy) { 39 Array.prototype.pop.call(proxy); 53 var proxy = new Proxy(target, handler); 56 assert(proxy.foo === "bar"); 58 assert(delete proxy.foo === false); 61 assert(proxy.foo === undefined); 64 assert(delete proxy.bar == false); 74 var proxy = new Proxy(target, handler2); 77 assert(delete proxy 112 var proxy = revocable.proxy; global() variable [all...] |
H A D | proxy_prevent_extensions.js | 24 var proxy = new Proxy(target, handler); 28 Object.freeze(proxy) 36 Object.seal(proxy) 45 var proxy = new Proxy(target, handler); 48 assert(Object.isExtensible(proxy) === true); 49 Object.preventExtensions(proxy); 51 assert(Object.isExtensible(proxy) === false); 56 var proxy = new Proxy(target, handler); 59 assert(Object.isExtensible(proxy) === true); 60 Object.preventExtensions(proxy); [all...] |
H A D | proxy_get_own_property_descriptor.js | 24 var proxy = new Proxy(target, handler); 28 Object.prototype.hasOwnProperty.call(proxy); 36 Object.prototype.propertyIsEnumerable.call(proxy) 44 Object.getOwnPropertyDescriptor(proxy) 89 var proxy = new Proxy(target, handler); 94 var configurable_obj = Object.getOwnPropertyDescriptor(proxy, "configurable"); 101 var nonconfigurable_obj = Object.getOwnPropertyDescriptor(proxy, "nonconfigurable"); 111 var proxied_obj = Object.getOwnPropertyDescriptor(proxy, "proxied"); 133 Object.getOwnPropertyDescriptor(proxy, "return_null"); 146 Object.getOwnPropertyDescriptor(proxy, "nonconfigurabl [all...] |
H A D | proxy_set.js | 35 var proxy = new Proxy(monster, handler); 37 proxy.eyeCount = 1; 38 proxy.foo = "bar"; 49 var proxy = new Proxy(target, handler); 51 proxy.foo = 12; 58 var proxy = new Proxy(target, handler); 63 proxy.p = 42; 74 proxy.p = 42; 78 // test when target is a proxy 86 var proxy 102 var proxy = revocable.proxy; global() variable [all...] |
H A D | proxy_construct.js | 24 var proxy = new Proxy(target, handler); 28 new proxy(5) 36 Array.of.call(proxy); 43 var proxy = new Proxy({},{}); 46 new proxy(); 52 var proxy2 = new Proxy(proxy, {}); 69 var proxy = new Proxy(Target, {}); 73 var instance = new proxy(); 79 var proxy2 = new Proxy(proxy, {}); 95 var proxy [all...] |
H A D | proxy_set_prototoype_of.js | 24 var proxy = new Proxy(target, handler); 28 Object.setPrototypeOf(proxy, {}); 47 var proxy = new Proxy(target, handler); 49 assert(Reflect.setPrototypeOf(proxy, targetProto) === false); 53 Object.setPrototypeOf(proxy, targetProto); 60 Object.setPrototypeOf(proxy, undefined); 67 Object.setPrototypeOf(proxy, 1); 77 var proxy = new Proxy(target, handler); 79 Object.setPrototypeOf(proxy, prototype); 87 Object.setPrototypeOf(proxy, {}); [all...] |
/third_party/skia/tests/ |
H A D | ProxyRefTest.cpp | 51 sk_sp<GrTextureProxy> proxy((*make)(dContext)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 52 if (proxy) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 53 sk_sp<GrTextureProxy> extraRef(proxy); // NOLINT(performance-unnecessary-copy-initialization) in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 55 int backingRefs = proxy->isInstantiated() ? 1 : -1; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 57 CheckSingleThreadedProxyRefs(reporter, proxy.get(), 2, backingRefs); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 59 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 61 CheckSingleThreadedProxyRefs(reporter, proxy.get(), 2, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 63 CheckSingleThreadedProxyRefs(reporter, proxy.get(), 1, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 68 sk_sp<GrTextureProxy> proxy((*make)(dContext)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 69 if (proxy) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all...] |
H A D | TextureProxyTest.cpp | 48 sk_sp<GrTextureProxy> proxy = in deferred_tex() local 52 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_tex() 53 return proxy; in deferred_tex() 64 sk_sp<GrTextureProxy> proxy = in deferred_texRT() local 68 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_texRT() 69 return proxy; in deferred_texRT() 74 sk_sp<GrTextureProxy> proxy = proxyProvider->testingOnly_createInstantiatedProxy( in wrapped() local 77 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in wrapped() 78 return proxy; in wrapped() 93 sk_sp<GrTextureProxy> proxy in wrapped_with_key() local 122 basic_test(GrDirectContext* dContext, skiatest::Reporter* reporter, sk_sp<GrTextureProxy> proxy, int cacheEntriesPerProxy) basic_test() argument 301 sk_sp<GrTextureProxy> proxy = deferred_tex(reporter, dContext, proxyProvider, invalidation_and_instantiation_test() local [all...] |
/third_party/skia/src/gpu/ |
H A D | GrResourceAllocator.cpp | 46 void GrResourceAllocator::addInterval(GrSurfaceProxy* proxy, unsigned int start, unsigned int end, in addInterval() argument 52 if (proxy->canSkipResourceAllocator()) { in addInterval() 56 // If a proxy is read only it must refer to a texture with specific content that cannot be in addInterval() 57 // recycled. We don't need to assign a texture to it and no other proxy can be instantiated in addInterval() 59 if (proxy->readOnly()) { in addInterval() 61 if (proxy->isLazy() && !proxy->priv().doLazyInstantiation(resourceProvider)) { in addInterval() 64 // Since we aren't going to add an interval we won't revisit this proxy in assign(). So in addInterval() 65 // must already be instantiated or it must be a lazy proxy that we instantiated above. in addInterval() 66 SkASSERT(proxy in addInterval() 104 can_proxy_use_scratch(const GrCaps& caps, GrSurfaceProxy* proxy) can_proxy_use_scratch() argument 108 user_cache_proxy(GrSurfaceProxy* proxy) user_cache_proxy() argument 136 isRecyclable(const GrCaps& caps, GrSurfaceProxy* proxy, int knownUseCount) const isRecyclable() argument 154 instantiateSurface(GrSurfaceProxy* proxy, GrResourceProvider* resourceProvider) instantiateSurface() argument 281 findOrCreateRegisterFor(GrSurfaceProxy* proxy) findOrCreateRegisterFor() argument 379 GrSurfaceProxy* proxy = cur->proxy(); makeBudgetHeadroom() local [all...] |
H A D | GrProxyProvider.cpp | 46 // In DDL-mode a proxy provider can still have extant uniquely keyed proxies (since in ~GrProxyProvider() 53 bool GrProxyProvider::assignUniqueKeyToProxy(const GrUniqueKey& key, GrTextureProxy* proxy) { in assignUniqueKeyToProxy() argument 56 if (this->isAbandoned() || !proxy) { in assignUniqueKeyToProxy() 60 // Only the proxyProvider that created a proxy should be assigning unique keys to it. in assignUniqueKeyToProxy() 61 SkASSERT(this->isDDLProvider() == proxy->creatingProvider()); in assignUniqueKeyToProxy() 78 proxy->cacheAccess().setUniqueKey(this, key); in assignUniqueKeyToProxy() 79 SkASSERT(proxy->getUniqueKey() == key); in assignUniqueKeyToProxy() 80 fUniquelyKeyedProxies.add(proxy); in assignUniqueKeyToProxy() 85 sk_sp<T> GrProxyProvider::assignTagToProxy(sk_sp<T> proxy) { in assignTagToProxy() argument 86 if (!proxy) { in assignTagToProxy() 96 adoptUniqueKeyFromSurface(GrTextureProxy* proxy, const GrSurface* surf) adoptUniqueKeyFromSurface() argument 105 removeUniqueKeyFromProxy(GrTextureProxy* proxy) removeUniqueKeyFromProxy() argument 124 GrTextureProxy* proxy = fUniquelyKeyedProxies.find(key); findProxyByUniqueKey() local 268 auto proxy = this->findOrCreateProxyByUniqueKey(key); findCachedProxyWithColorTypeFallback() local 315 sk_sp<GrTextureProxy> proxy; createProxyFromBitmap() local 351 sk_sp<GrTextureProxy> proxy = this->createLazyProxy( createNonMippedProxyFromBitmap() local 395 sk_sp<GrTextureProxy> proxy = this->createLazyProxy( createMippedProxyFromBitmap() local 511 sk_sp<GrTextureProxy> proxy = this->createLazyProxy( createCompressedTextureProxy() local 747 auto proxy = sk_sp<GrTextureProxy>(new GrTextureProxy(std::move(callback), CreatePromiseProxy() local 879 processInvalidUniqueKey(const GrUniqueKey& key, GrTextureProxy* proxy, InvalidateGPUResource invalidateGPUResource) processInvalidUniqueKey() argument 884 processInvalidUniqueKeyImpl(const GrUniqueKey& key, GrTextureProxy* proxy, InvalidateGPUResource invalidateGPUResource, RemoveTableEntry removeTableEntry) processInvalidUniqueKeyImpl() argument [all...] |
/third_party/node/deps/npm/node_modules/socks/build/common/ |
H A D | helpers.js | 27 // Check SOCKS proxy to use 28 if (!isValidSocksProxy(options.proxy)) { 32 validateCustomProxyAuth(options.proxy, options); 64 options.proxies.forEach((proxy) => { 65 if (!isValidSocksProxy(proxy)) { 69 validateCustomProxyAuth(proxy, options); 77 function validateCustomProxyAuth(proxy, options) { 78 if (proxy.custom_auth_method !== undefined) { 80 if (proxy.custom_auth_method < constants_1.SOCKS5_CUSTOM_AUTH_START || 81 proxy [all...] |
/third_party/libwebsockets/lib/core-net/client/ |
H A D | client.c | 30 lws_set_proxy(struct lws_vhost *vhost, const char *proxy) in lws_set_proxy() argument 36 if (!proxy) in lws_set_proxy() 40 if (!strncmp(proxy, "http://", 7)) in lws_set_proxy() 41 proxy += 7; in lws_set_proxy() 43 p = strrchr(proxy, '@'); in lws_set_proxy() 46 if (lws_ptr_diff_size_t(p, proxy) > sizeof(authstring) - 1) in lws_set_proxy() 49 lws_strncpy(authstring, proxy, lws_ptr_diff_size_t(p, proxy) + 1); in lws_set_proxy() 51 if (lws_b64_encode_string(authstring, lws_ptr_diff(p, proxy), in lws_set_proxy() 59 proxy in lws_set_proxy() [all...] |
/third_party/python/Objects/ |
H A D | weakrefobject.c | 227 * two callback-less refs (ref and proxy). Used to determine if the 295 PyWeakReference *ref, *proxy; in weakref___new__() local 307 get_basic_refs(*list, &ref, &proxy); in weakref___new__() 318 proxy pointers we got back earlier may have been collected, in weakref___new__() 330 get_basic_refs(*list, &ref, &proxy); in weakref___new__() 331 prev = (proxy == NULL) ? ref : proxy; in weakref___new__() 393 proxy_checkref(PyWeakReference *proxy) in proxy_checkref() argument 395 if (PyWeakref_GET_OBJECT(proxy) == Py_None) { in proxy_checkref() 404 /* If a parameter is a proxy, chec 476 proxy_repr(PyWeakReference *proxy) proxy_repr() argument 487 proxy_setattr(PyWeakReference *proxy, PyObject *name, PyObject *value) proxy_setattr() argument 499 proxy_richcompare(PyObject *proxy, PyObject *v, int op) proxy_richcompare() argument 543 proxy_bool(PyWeakReference *proxy) proxy_bool() argument 568 proxy_contains(PyWeakReference *proxy, PyObject *value) proxy_contains() argument 583 proxy_length(PyWeakReference *proxy) proxy_length() argument 598 proxy_setitem(PyWeakReference *proxy, PyObject *key, PyObject *value) proxy_setitem() argument 618 proxy_iter(PyWeakReference *proxy) proxy_iter() argument 630 proxy_iternext(PyWeakReference *proxy) proxy_iternext() argument 791 PyWeakReference *ref, *proxy; PyWeakref_NewRef() local 850 PyWeakReference *ref, *proxy; PyWeakref_NewProxy() local [all...] |
/third_party/node/deps/npm/node_modules/http-proxy-agent/dist/ |
H A D | index.js | 36 const debug = (0, debug_1.default)('http-proxy-agent'); 39 * to the specified "HTTP proxy server" in order to proxy HTTP requests. 42 constructor(proxy, opts) { 44 this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy; 46 debug('Creating new HttpProxyAgent instance: %o', this.proxy.href); 48 const host = (this.proxy [all...] |
/third_party/node/deps/npm/node_modules/https-proxy-agent/dist/ |
H A D | index.js | 36 const parse_proxy_response_1 = require("./parse-proxy-response"); 37 const debug = (0, debug_1.default)('https-proxy-agent'); 40 * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. 42 * Outgoing HTTP requests are first tunneled through the proxy server using the 43 * `CONNECT` HTTP request method to establish a connection to the proxy server, 44 * and then the proxy server connects to the destination target and issues the 45 * HTTP request from the proxy server. 48 * the connection to the proxy server has been established. 51 constructor(proxy, opt [all...] |