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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp

Issue 2494833002: Revert of Replaced cc::SurfaceId::nonce_ with base::UnguessableToken (Closed)
Patch Set: Created 4 years, 1 month 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "bindings/core/v8/serialization/V8ScriptValueSerializer.h" 5 #include "bindings/core/v8/serialization/V8ScriptValueSerializer.h"
6 6
7 #include "bindings/core/v8/ToV8.h" 7 #include "bindings/core/v8/ToV8.h"
8 #include "bindings/core/v8/V8Blob.h" 8 #include "bindings/core/v8/V8Blob.h"
9 #include "bindings/core/v8/V8CompositorProxy.h" 9 #include "bindings/core/v8/V8CompositorProxy.h"
10 #include "bindings/core/v8/V8File.h" 10 #include "bindings/core/v8/V8File.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 "because it had a rendering context."); 275 "because it had a rendering context.");
276 return false; 276 return false;
277 } 277 }
278 writeTag(OffscreenCanvasTransferTag); 278 writeTag(OffscreenCanvasTransferTag);
279 writeUint32(canvas->width()); 279 writeUint32(canvas->width());
280 writeUint32(canvas->height()); 280 writeUint32(canvas->height());
281 writeUint32(canvas->getAssociatedCanvasId()); 281 writeUint32(canvas->getAssociatedCanvasId());
282 writeUint32(canvas->clientId()); 282 writeUint32(canvas->clientId());
283 writeUint32(canvas->sinkId()); 283 writeUint32(canvas->sinkId());
284 writeUint32(canvas->localId()); 284 writeUint32(canvas->localId());
285 writeUint64(canvas->nonceHigh()); 285 writeUint64(canvas->nonce());
286 writeUint64(canvas->nonceLow());
287 return true; 286 return true;
288 } 287 }
289 return false; 288 return false;
290 } 289 }
291 290
292 bool V8ScriptValueSerializer::writeFile(File* file, 291 bool V8ScriptValueSerializer::writeFile(File* file,
293 ExceptionState& exceptionState) { 292 ExceptionState& exceptionState) {
294 if (file->isClosed()) { 293 if (file->isClosed()) {
295 exceptionState.throwDOMException( 294 exceptionState.throwDOMException(
296 DataCloneError, 295 DataCloneError,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 } 365 }
367 if (!exceptionState.hadException()) { 366 if (!exceptionState.hadException()) {
368 StringView interface = wrappable->wrapperTypeInfo()->interfaceName; 367 StringView interface = wrappable->wrapperTypeInfo()->interfaceName;
369 exceptionState.throwDOMException( 368 exceptionState.throwDOMException(
370 DataCloneError, interface + " object could not be cloned."); 369 DataCloneError, interface + " object could not be cloned.");
371 } 370 }
372 return v8::Nothing<bool>(); 371 return v8::Nothing<bool>();
373 } 372 }
374 373
375 } // namespace blink 374 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698