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

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

Issue 2848963002: Clean up bindings/core/v8 (Part 1) (Closed)
Patch Set: Fix build Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "bindings/core/v8/SerializedScriptValue.h" 31 #include "bindings/core/v8/SerializedScriptValue.h"
32 32
33 #include <memory> 33 #include <memory>
34 #include "bindings/core/v8/DOMDataStore.h"
35 #include "bindings/core/v8/DOMWrapperWorld.h"
36 #include "bindings/core/v8/ExceptionState.h" 34 #include "bindings/core/v8/ExceptionState.h"
37 #include "bindings/core/v8/IDLTypes.h" 35 #include "bindings/core/v8/IDLTypes.h"
38 #include "bindings/core/v8/NativeValueTraitsImpl.h" 36 #include "bindings/core/v8/NativeValueTraitsImpl.h"
39 #include "bindings/core/v8/ScriptState.h" 37 #include "bindings/core/v8/ScriptState.h"
40 #include "bindings/core/v8/SerializationTag.h" 38 #include "bindings/core/v8/SerializationTag.h"
41 #include "bindings/core/v8/SerializedScriptValueFactory.h" 39 #include "bindings/core/v8/SerializedScriptValueFactory.h"
42 #include "bindings/core/v8/Transferables.h" 40 #include "bindings/core/v8/Transferables.h"
43 #include "bindings/core/v8/V8ArrayBuffer.h" 41 #include "bindings/core/v8/V8ArrayBuffer.h"
44 #include "bindings/core/v8/V8ImageBitmap.h" 42 #include "bindings/core/v8/V8ImageBitmap.h"
45 #include "bindings/core/v8/V8MessagePort.h" 43 #include "bindings/core/v8/V8MessagePort.h"
46 #include "bindings/core/v8/V8OffscreenCanvas.h" 44 #include "bindings/core/v8/V8OffscreenCanvas.h"
47 #include "bindings/core/v8/V8SharedArrayBuffer.h" 45 #include "bindings/core/v8/V8SharedArrayBuffer.h"
48 #include "core/dom/DOMArrayBuffer.h" 46 #include "core/dom/DOMArrayBuffer.h"
49 #include "core/dom/DOMSharedArrayBuffer.h" 47 #include "core/dom/DOMSharedArrayBuffer.h"
50 #include "core/dom/ExceptionCode.h" 48 #include "core/dom/ExceptionCode.h"
51 #include "core/dom/MessagePort.h" 49 #include "core/dom/MessagePort.h"
52 #include "core/frame/ImageBitmap.h" 50 #include "core/frame/ImageBitmap.h"
53 #include "platform/SharedBuffer.h" 51 #include "platform/SharedBuffer.h"
52 #include "platform/bindings/DOMDataStore.h"
53 #include "platform/bindings/DOMWrapperWorld.h"
54 #include "platform/blob/BlobData.h" 54 #include "platform/blob/BlobData.h"
55 #include "platform/heap/Handle.h" 55 #include "platform/heap/Handle.h"
56 #include "platform/wtf/Assertions.h" 56 #include "platform/wtf/Assertions.h"
57 #include "platform/wtf/ByteOrder.h" 57 #include "platform/wtf/ByteOrder.h"
58 #include "platform/wtf/PtrUtil.h" 58 #include "platform/wtf/PtrUtil.h"
59 #include "platform/wtf/Vector.h" 59 #include "platform/wtf/Vector.h"
60 #include "platform/wtf/dtoa/utils.h" 60 #include "platform/wtf/dtoa/utils.h"
61 #include "platform/wtf/text/StringBuffer.h" 61 #include "platform/wtf/text/StringBuffer.h"
62 #include "platform/wtf/text/StringHash.h" 62 #include "platform/wtf/text/StringHash.h"
63 63
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // Only (re)register allocation cost for transferables if this 528 // Only (re)register allocation cost for transferables if this
529 // SerializedScriptValue has explicitly unregistered them before. 529 // SerializedScriptValue has explicitly unregistered them before.
530 if (array_buffer_contents_array_ && 530 if (array_buffer_contents_array_ &&
531 transferables_need_external_allocation_registration_) { 531 transferables_need_external_allocation_registration_) {
532 for (auto& buffer : *array_buffer_contents_array_) 532 for (auto& buffer : *array_buffer_contents_array_)
533 buffer.RegisterExternalAllocationWithCurrentContext(); 533 buffer.RegisterExternalAllocationWithCurrentContext();
534 } 534 }
535 } 535 }
536 536
537 } // namespace blink 537 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698