Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: Source/core/xml/XMLHttpRequest.idl

Issue 14246006: Implementing timeout support for XHR (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@timeoutResourceHandle
Patch Set: Timeout support in DocumentThreadableLoader (speculative bot failure fix) Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/xml/XMLHttpRequest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 EventTarget 45 EventTarget
46 ] interface XMLHttpRequest { 46 ] interface XMLHttpRequest {
47 // From XMLHttpRequestEventTarget 47 // From XMLHttpRequestEventTarget
48 // event handler attributes 48 // event handler attributes
49 attribute EventListener onabort; 49 attribute EventListener onabort;
50 attribute EventListener onerror; 50 attribute EventListener onerror;
51 attribute EventListener onload; 51 attribute EventListener onload;
52 attribute EventListener onloadend; 52 attribute EventListener onloadend;
53 attribute EventListener onloadstart; 53 attribute EventListener onloadstart;
54 attribute EventListener onprogress; 54 attribute EventListener onprogress;
55 [Conditional=XHR_TIMEOUT] attribute EventListener ontimeout; 55 attribute EventListener ontimeout;
56 56
57 // event handler attributes 57 // event handler attributes
58 attribute EventListener onreadystatechange; 58 attribute EventListener onreadystatechange;
59 59
60 // state 60 // state
61 const unsigned short UNSENT = 0; 61 const unsigned short UNSENT = 0;
62 const unsigned short OPENED = 1; 62 const unsigned short OPENED = 1;
63 const unsigned short HEADERS_RECEIVED = 2; 63 const unsigned short HEADERS_RECEIVED = 2;
64 const unsigned short LOADING = 3; 64 const unsigned short LOADING = 3;
65 const unsigned short DONE = 4; 65 const unsigned short DONE = 4;
66 66
67 [Conditional=XHR_TIMEOUT, SetterRaisesException] attribute unsigned long tim eout; 67 [SetterRaisesException] attribute unsigned long timeout;
68 readonly attribute unsigned short readyState; 68 readonly attribute unsigned short readyState;
69 69
70 [SetterRaisesException] attribute boolean withCredentials; 70 [SetterRaisesException] attribute boolean withCredentials;
71 71
72 [Custom, ActivityLog=Access, RaisesException] void open(DOMString method, DO MString url, optional boolean async, optional DOMString user, optional DOMString password); 72 [Custom, ActivityLog=Access, RaisesException] void open(DOMString method, DO MString url, optional boolean async, optional DOMString user, optional DOMString password);
73 73
74 [ActivityLog=Access, RaisesException] void setRequestHeader(DOMString header , DOMString value); 74 [ActivityLog=Access, RaisesException] void setRequestHeader(DOMString header , DOMString value);
75 75
76 [Custom, RaisesException] void send(); 76 [Custom, RaisesException] void send();
77 77
(...skipping 18 matching lines...) Expand all
96 96
97 // EventTarget interface 97 // EventTarget interface
98 void addEventListener(DOMString type, 98 void addEventListener(DOMString type,
99 EventListener listener, 99 EventListener listener,
100 optional boolean useCapture); 100 optional boolean useCapture);
101 void removeEventListener(DOMString type, 101 void removeEventListener(DOMString type,
102 EventListener listener, 102 EventListener listener,
103 optional boolean useCapture); 103 optional boolean useCapture);
104 [RaisesException] boolean dispatchEvent(Event evt); 104 [RaisesException] boolean dispatchEvent(Event evt);
105 }; 105 };
OLDNEW
« no previous file with comments | « Source/core/xml/XMLHttpRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698