/third_party/nghttp2/src/ |
D | shrpx_mruby_module_request.cc | 46 mrb_value request_init(mrb_state *mrb, mrb_value self) { return self; } in request_init() argument 50 mrb_value request_get_http_version_major(mrb_state *mrb, mrb_value self) { in request_get_http_version_major() argument 51 auto data = static_cast<MRubyAssocData *>(mrb->ud); in request_get_http_version_major() 59 mrb_value request_get_http_version_minor(mrb_state *mrb, mrb_value self) { in request_get_http_version_minor() argument 60 auto data = static_cast<MRubyAssocData *>(mrb->ud); in request_get_http_version_minor() 68 mrb_value request_get_method(mrb_state *mrb, mrb_value self) { in request_get_method() argument 69 auto data = static_cast<MRubyAssocData *>(mrb->ud); in request_get_method() 74 return mrb_str_new(mrb, method.c_str(), method.size()); in request_get_method() 79 mrb_value request_set_method(mrb_state *mrb, mrb_value self) { in request_set_method() argument 80 auto data = static_cast<MRubyAssocData *>(mrb->ud); in request_set_method() [all …]
|
D | shrpx_mruby_module_env.cc | 44 mrb_value env_init(mrb_state *mrb, mrb_value self) { return self; } in env_init() argument 48 mrb_value env_get_req(mrb_state *mrb, mrb_value self) { in env_get_req() argument 49 return mrb_iv_get(mrb, self, mrb_intern_lit(mrb, "req")); in env_get_req() 54 mrb_value env_get_resp(mrb_state *mrb, mrb_value self) { in env_get_resp() argument 55 return mrb_iv_get(mrb, self, mrb_intern_lit(mrb, "resp")); in env_get_resp() 60 mrb_value env_get_ctx(mrb_state *mrb, mrb_value self) { in env_get_ctx() argument 61 auto data = reinterpret_cast<MRubyAssocData *>(mrb->ud); in env_get_ctx() 64 auto dsym = intern_ptr(mrb, downstream); in env_get_ctx() 66 auto ctx = mrb_iv_get(mrb, self, dsym); in env_get_ctx() 68 ctx = mrb_hash_new(mrb); in env_get_ctx() [all …]
|
D | shrpx_mruby_module.cc | 44 mrb_value create_env(mrb_state *mrb) { in create_env() argument 45 auto module = mrb_module_get(mrb, "Nghttpx"); in create_env() 47 auto env_class = mrb_class_get_under(mrb, module, "Env"); in create_env() 48 auto request_class = mrb_class_get_under(mrb, module, "Request"); in create_env() 49 auto response_class = mrb_class_get_under(mrb, module, "Response"); in create_env() 51 auto env = mrb_obj_new(mrb, env_class, 0, nullptr); in create_env() 52 auto req = mrb_obj_new(mrb, request_class, 0, nullptr); in create_env() 53 auto resp = mrb_obj_new(mrb, response_class, 0, nullptr); in create_env() 55 mrb_iv_set(mrb, env, mrb_intern_lit(mrb, "req"), req); in create_env() 56 mrb_iv_set(mrb, env, mrb_intern_lit(mrb, "resp"), resp); in create_env() [all …]
|
D | shrpx_mruby_module_response.cc | 46 mrb_value response_init(mrb_state *mrb, mrb_value self) { return self; } in response_init() argument 50 mrb_value response_get_http_version_major(mrb_state *mrb, mrb_value self) { in response_get_http_version_major() argument 51 auto data = static_cast<MRubyAssocData *>(mrb->ud); in response_get_http_version_major() 59 mrb_value response_get_http_version_minor(mrb_state *mrb, mrb_value self) { in response_get_http_version_minor() argument 60 auto data = static_cast<MRubyAssocData *>(mrb->ud); in response_get_http_version_minor() 68 mrb_value response_get_status(mrb_state *mrb, mrb_value self) { in response_get_status() argument 69 auto data = static_cast<MRubyAssocData *>(mrb->ud); in response_get_status() 77 mrb_value response_set_status(mrb_state *mrb, mrb_value self) { in response_set_status() argument 78 auto data = static_cast<MRubyAssocData *>(mrb->ud); in response_set_status() 83 mrb_get_args(mrb, "i", &status); in response_set_status() [all …]
|
D | shrpx_mruby.cc | 40 MRubyContext::MRubyContext(mrb_state *mrb, mrb_value app, mrb_value env) in MRubyContext() argument 41 : mrb_(mrb), app_(std::move(app)), env_(std::move(env)) {} in MRubyContext() 118 mrb_value instantiate_app(mrb_state *mrb, RProc *proc) { in instantiate_app() argument 119 mrb->ud = nullptr; in instantiate_app() 121 auto res = mrb_top_run(mrb, proc, mrb_top_self(mrb), 0); in instantiate_app() 123 if (mrb->exc) { in instantiate_app() 124 auto exc = mrb_obj_value(mrb->exc); in instantiate_app() 125 auto inspect = mrb_inspect(mrb, exc); in instantiate_app() 128 << mrb_str_to_cstr(mrb, inspect); in instantiate_app() 142 RProc *compile(mrb_state *mrb, const StringRef &filename) { in compile() argument [all …]
|
D | shrpx_mruby.h | 47 MRubyContext(mrb_state *mrb, mrb_value app, mrb_value env); 74 RProc *compile(mrb_state *mrb, const StringRef &filename); 79 mrb_sym intern_ptr(mrb_state *mrb, void *ptr); 83 void check_phase(mrb_state *mrb, int phase, int phase_mask);
|
D | shrpx_mruby_module.h | 42 mrb_value init_module(mrb_state *mrb); 44 void delete_downstream_from_module(mrb_state *mrb, Downstream *downstream); 46 mrb_value create_headers_hash(mrb_state *mrb, const HeaderRefs &headers);
|
D | shrpx_mruby_module_request.h | 36 void init_request_class(mrb_state *mrb, RClass *module);
|
D | shrpx_mruby_module_env.h | 36 void init_env_class(mrb_state *mrb, RClass *module);
|
D | shrpx_mruby_module_response.h | 36 void init_response_class(mrb_state *mrb, RClass *module);
|
/third_party/skia/src/core/ |
D | SkBitmap.cpp | 115 int64_t mrb = info.minRowBytes64(); in setInfo() local 116 if (!SkTFitsIn<int32_t>(mrb)) { in setInfo() 130 rowBytes = (size_t)mrb; in setInfo()
|
/third_party/flutter/skia/src/core/ |
D | SkBitmap.cpp | 117 int64_t mrb = info.minRowBytes64(); in setInfo() local 118 if (!SkTFitsIn<int32_t>(mrb)) { in setInfo() 132 rowBytes = (size_t)mrb; in setInfo()
|
/third_party/chromium/patch/ |
D | 0001-cve.patch | 47144 zCkQjh5n>JDTV2VvRxs@`c<*ShP*!pka`Ij&mrb)OW|uALjk~Nqm(6KY%$hBk5oRPj
|