Example #1
0
        internal void ReadRequest(RemoteConnection connection)
        {
            if(returnImmediately) {
                ReadArgs(connection.streamHandler);
                WorkerPool.EnqueueTask(() => ExecutionThreadEntry(connection));
                return;
            }

            var h = connection.streamHandler;

            h.Read(out remoteThreadId);
            h.Read(out localThreadId);
            ReadArgs(h);

            if(localThreadId != 0) {
                var call = connection.callStack.Peek(localThreadId);
                lock(call.waitLock) {
                    call.reentryCall = this;
                    System.Threading.Monitor.PulseAll(call.waitLock);
                }
            } else {
                WorkerPool.EnqueueTask(() => ExecutionThreadEntry(connection));
            }
        }
Example #2
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.TaskRunner.cfx_task_runner_post_delayed_task(@this, task, delayMs);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     CfxV8Value retval_local;
     CfxV8Exception exception_local;
     var self_local = (CfxV8Context)RemoteProxy.Unwrap(self);
     __retval = self_local.Eval(code, out retval_local, out exception_local);
     retval = RemoteProxy.Wrap(retval_local);
     exception = RemoteProxy.Wrap(exception_local);
 }
Example #4
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var sender = CfrApp.Wrap(this.sender);
     var e = new CfrOnRegisterCustomSchemesEventArgs(eventArgsId);
     sender.raise_OnRegisterCustomSchemes(sender, e);
 }
Example #5
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var sender = CfrApp.Wrap(this.sender);
     var e = new CfrOnBeforeCommandLineProcessingEventArgs(eventArgsId);
     sender.raise_OnBeforeCommandLineProcessing(sender, e);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var self_local = (CfxBinaryValue)RemoteProxy.Unwrap(self);
     __retval = self_local.GetData(buffer, bufferSize, dataOffset);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxOnLoadingStateChangeEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     value = e.IsLoading;
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxOnLoadEndEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     value = e.HttpStatusCode;
 }
Example #9
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxApi.LoadHandler.cfx_load_handler_ctor(gcHandlePtr, 1);
 }
Example #10
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var self_local = (CfxDomNode)RemoteProxy.Unwrap(self);

            __retval = self_local.ElementInnerText;
        }
Example #11
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var self_local = (CfxDomNode)RemoteProxy.Unwrap(self);

            __retval = self_local.SetElementAttribute(attrName, value);
        }
Example #12
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var self_local = (CfxDomNode)RemoteProxy.Unwrap(self);

            __retval = RemoteProxy.Wrap(self_local.LastChild);
        }
Example #13
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var self_local = (CfxDomNode)RemoteProxy.Unwrap(self);

            __retval = (int)self_local.Type;
        }
Example #14
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var self_local = (CfxDomNode)RemoteProxy.Unwrap(self);

            __retval = self_local.IsSame((CfxDomNode)RemoteProxy.Unwrap(that));
        }
Example #15
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxApi.TaskRunner.cfx_task_runner_get_for_thread((int)threadId);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = RemoteProxy.Wrap(CfxProcessMessage.Create(name));
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var self_local = (CfxProcessMessage)RemoteProxy.Unwrap(self);
     __retval = self_local.IsValid;
 }
Example #18
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     CfxLoadHandlerRemoteClient.SetCallback(self, index, active);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxOnLoadErrorEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     value = RemoteProxy.Wrap(e.Frame);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxApi.V8Context.cfx_v8context_get_global(@this);
 }
Example #21
0
 internal CfxRemoteCallContext(RemoteConnection connection, int threadId)
 {
     this.connection = connection;
     ThreadId = threadId;
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.V8Context.cfx_v8context_is_same(@this, that);
 }
Example #23
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var sender = CfrApp.Wrap(this.sender);
     var e = new CfrGetResourceBundleHandlerEventArgs(eventArgsId);
     sender.raise_GetResourceBundleHandler(sender, e);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxApi.V8Context.cfx_v8context_get_entered_context();
 }
Example #25
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxOnBeforeCommandLineProcessingEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     value = e.ProcessType;
 }
Example #26
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.XmlReader.cfx_xml_reader_is_empty_element(@this);
 }
Example #27
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxOnRegisterCustomSchemesEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     value = RemoteProxy.Wrap(e.Registrar);
 }
Example #28
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.XmlReader.cfx_xml_reader_has_attributes(@this);
 }
Example #29
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxV8Context.InContext();
 }
Example #30
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = (ulong)CfxApi.XmlReader.cfx_xml_reader_get_attribute_count(@this);
 }
Example #31
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var self_local = (CfxRequest)RemoteProxy.Unwrap(self);
     self_local.Url = value;
 }
Example #32
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = StringFunctions.ConvertStringUserfree(CfxApi.XmlReader.cfx_xml_reader_get_outer_xml(@this));
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var self_local = (CfxProcessMessage)RemoteProxy.Unwrap(self);
     __retval = RemoteProxy.Wrap(self_local.ArgumentList);
 }
Example #34
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.XmlReader.cfx_xml_reader_move_to_next_node(@this);
 }
Example #35
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxRuntime.ExecuteProcessInternal((CfxApp)RemoteProxy.Unwrap(application));
 }
Example #36
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxApi.XmlReader.cfx_xml_reader_get_line_number(@this);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxOnLoadErrorEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     value = e.FailedUrl;
 }
Example #38
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.XmlReader.cfx_xml_reader_move_to_attribute_byindex(@this, index);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var sender = CfrLoadHandler.Wrap(this.sender);
     var e = new CfrOnLoadingStateChangeEventArgs(eventArgsId);
     sender.raise_OnLoadingStateChange(sender, e);
 }
Example #40
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var sender = (CfxV8Handler)RemoteProxy.Unwrap(this.sender);

            sender.Execute -= CfxV8HandlerExecuteBrowserProcessCall.EventCall;
        }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var sender = (CfxLoadHandler)RemoteProxy.Unwrap(this.sender);
     sender.OnLoadEnd += CfxOnLoadEndBrowserProcessCall.EventCall;
 }
Example #42
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var e = (CfxV8HandlerExecuteEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);

            value = RemoteProxy.Wrap(e.Object);
        }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = RemoteProxy.Wrap(CfxBinaryValue.Create(data, dataSize));
 }
Example #44
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var e = (CfxV8HandlerExecuteEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);

            value = CfxArray.GetProxyIds <CfxV8Value>(e.Arguments);
        }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var self_local = (CfxBinaryValue)RemoteProxy.Unwrap(self);
     __retval = RemoteProxy.Wrap(self_local.Copy());
 }
Example #46
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var e = (CfxV8HandlerExecuteEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);

            e.Exception = value;
        }
Example #47
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxGetResourceBundleHandlerEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     e.SetReturnValue((CfxResourceBundleHandler)RemoteProxy.Unwrap(value));
 }
Example #48
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var e = (CfxV8HandlerExecuteEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);

            e.SetReturnValue((CfxV8Value)RemoteProxy.Unwrap(value));
        }
Example #49
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var sender = (CfxApp)RemoteProxy.Unwrap(this.sender);
     sender.OnBeforeCommandLineProcessing -= CfxOnBeforeCommandLineProcessingBrowserProcessCall.EventCall;
 }
Example #50
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = RemoteProxy.Wrap(new CfxV8Handler());
 }
Example #51
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = RemoteProxy.Wrap(new CfxApp());
 }
Example #52
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.PostData.cfx_post_data_has_excluded_elements(@this);
 }
Example #53
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var sender = (CfxApp)RemoteProxy.Unwrap(this.sender);
     sender.OnRegisterCustomSchemes -= CfxOnRegisterCustomSchemesBrowserProcessCall.EventCall;
 }
Example #54
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = (ulong)CfxApi.PostData.cfx_post_data_get_element_count(@this);
 }
Example #55
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var sender = (CfxApp)RemoteProxy.Unwrap(this.sender);
     sender.GetRenderProcessHandler += CfxGetRenderProcessHandlerBrowserProcessCall.EventCall;
 }
Example #56
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.PostData.cfx_post_data_add_element(@this, element);
 }
Example #57
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = RemoteProxy.Wrap(CfxV8Context.GetEnteredContext());
 }
Example #58
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     CfxApi.PostData.cfx_post_data_remove_elements(@this);
 }
Example #59
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var self_local = (CfxV8Context)RemoteProxy.Unwrap(self);
     __retval = self_local.Enter();
 }
Example #60
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.TaskRunner.cfx_task_runner_belongs_to_thread(@this, (int)threadId);
 }