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

Side by Side Diff: Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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
OLDNEW
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 if (exceptionCatcher.HasCaught() || json.IsEmpty()) 111 if (exceptionCatcher.HasCaught() || json.IsEmpty())
112 v8SetReturnValue(info, v8::Null(isolate)); 112 v8SetReturnValue(info, v8::Null(isolate));
113 else 113 else
114 v8SetReturnValue(info, json); 114 v8SetReturnValue(info, json);
115 115
116 return; 116 return;
117 } 117 }
118 118
119 case XMLHttpRequest::ResponseTypeDocument: 119 case XMLHttpRequest::ResponseTypeDocument:
120 { 120 {
121 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); 121 ExceptionState exceptionState(ExceptionState::GetterContext, "respon se", "XMLHttpRequest", info.Holder(), info.GetIsolate());
122 Document* document = xmlHttpRequest->responseXML(exceptionState); 122 Document* document = xmlHttpRequest->responseXML(exceptionState);
123 if (exceptionState.throwIfNeeded()) 123 if (exceptionState.throwIfNeeded())
124 return; 124 return;
125 v8SetReturnValueFast(info, document, xmlHttpRequest); 125 v8SetReturnValueFast(info, document, xmlHttpRequest);
126 return; 126 return;
127 } 127 }
128 128
129 case XMLHttpRequest::ResponseTypeBlob: 129 case XMLHttpRequest::ResponseTypeBlob:
130 { 130 {
131 Blob* blob = xmlHttpRequest->responseBlob(); 131 Blob* blob = xmlHttpRequest->responseBlob();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 } else { 244 } else {
245 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck> , argString, arg); 245 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck> , argString, arg);
246 xmlHttpRequest->send(argString, exceptionState); 246 xmlHttpRequest->send(argString, exceptionState);
247 } 247 }
248 } 248 }
249 249
250 exceptionState.throwIfNeeded(); 250 exceptionState.throwIfNeeded();
251 } 251 }
252 252
253 } // namespace WebCore 253 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8WorkerCustom.cpp ('k') | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698