Exemple #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));
            }
        }
Exemple #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);
 }
Exemple #4
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var sender = CfrApp.Wrap(this.sender);
     var e = new CfrOnRegisterCustomSchemesEventArgs(eventArgsId);
     sender.raise_OnRegisterCustomSchemes(sender, e);
 }
Exemple #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;
 }
Exemple #9
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxApi.LoadHandler.cfx_load_handler_ctor(gcHandlePtr, 1);
 }
Exemple #10
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var self_local = (CfxDomNode)RemoteProxy.Unwrap(self);

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

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

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

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

            __retval = self_local.IsSame((CfxDomNode)RemoteProxy.Unwrap(that));
        }
Exemple #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;
 }
Exemple #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);
 }
 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);
 }
Exemple #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();
 }
Exemple #25
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxOnBeforeCommandLineProcessingEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     value = e.ProcessType;
 }
Exemple #26
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.XmlReader.cfx_xml_reader_is_empty_element(@this);
 }
Exemple #27
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxOnRegisterCustomSchemesEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     value = RemoteProxy.Wrap(e.Registrar);
 }
Exemple #28
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.XmlReader.cfx_xml_reader_has_attributes(@this);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxV8Context.InContext();
 }
Exemple #30
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = (ulong)CfxApi.XmlReader.cfx_xml_reader_get_attribute_count(@this);
 }
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var self_local = (CfxRequest)RemoteProxy.Unwrap(self);
     self_local.Url = value;
 }
Exemple #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);
 }
Exemple #34
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = 0 != CfxApi.XmlReader.cfx_xml_reader_move_to_next_node(@this);
 }
Exemple #35
0
 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxRuntime.ExecuteProcessInternal((CfxApp)RemoteProxy.Unwrap(application));
 }
Exemple #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;
 }
Exemple #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);
 }
Exemple #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;
 }
Exemple #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));
 }
Exemple #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());
 }
Exemple #46
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var e = (CfxV8HandlerExecuteEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);

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

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