| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "V8Blob.h" | 36 #include "V8Blob.h" |
| 37 #include "V8Document.h" | 37 #include "V8Document.h" |
| 38 #include "V8FormData.h" | 38 #include "V8FormData.h" |
| 39 #include "V8HTMLDocument.h" | 39 #include "V8HTMLDocument.h" |
| 40 #include "bindings/v8/V8Binding.h" | 40 #include "bindings/v8/V8Binding.h" |
| 41 #include "bindings/v8/V8Utilities.h" | 41 #include "bindings/v8/V8Utilities.h" |
| 42 #include "bindings/v8/custom/V8ArrayBufferCustom.h" | 42 #include "bindings/v8/custom/V8ArrayBufferCustom.h" |
| 43 #include "core/dom/Document.h" | 43 #include "core/dom/Document.h" |
| 44 #include "core/inspector/InspectorInstrumentation.h" | 44 #include "core/inspector/InspectorInstrumentation.h" |
| 45 #include "core/page/Frame.h" | 45 #include "core/page/Frame.h" |
| 46 #include "core/workers/WorkerContext.h" | 46 #include "core/workers/WorkerGlobalScope.h" |
| 47 #include "core/xml/XMLHttpRequest.h" | 47 #include "core/xml/XMLHttpRequest.h" |
| 48 #include "wtf/ArrayBuffer.h" | 48 #include "wtf/ArrayBuffer.h" |
| 49 | 49 |
| 50 namespace WebCore { | 50 namespace WebCore { |
| 51 | 51 |
| 52 void V8XMLHttpRequest::constructorCustom(const v8::FunctionCallbackInfo<v8::Valu
e>& args) | 52 void V8XMLHttpRequest::constructorCustom(const v8::FunctionCallbackInfo<v8::Valu
e>& args) |
| 53 { | 53 { |
| 54 ScriptExecutionContext* context = getScriptExecutionContext(); | 54 ScriptExecutionContext* context = getScriptExecutionContext(); |
| 55 | 55 |
| 56 RefPtr<SecurityOrigin> securityOrigin; | 56 RefPtr<SecurityOrigin> securityOrigin; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 xmlHttpRequest->send(toWebCoreStringWithNullCheck(arg), ec); | 227 xmlHttpRequest->send(toWebCoreStringWithNullCheck(arg), ec); |
| 228 } | 228 } |
| 229 | 229 |
| 230 if (!ec) | 230 if (!ec) |
| 231 return; | 231 return; |
| 232 | 232 |
| 233 setDOMException(ec, args.GetIsolate()); | 233 setDOMException(ec, args.GetIsolate()); |
| 234 } | 234 } |
| 235 | 235 |
| 236 } // namespace WebCore | 236 } // namespace WebCore |
| OLD | NEW |