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

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

Issue 2297043002: Web expose FileSystemFileEntry, FileSystemDirectoryEntry and friends (Closed)
Patch Set: Rebased Created 4 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ScriptValueSerializer.h" 5 #include "bindings/core/v8/ScriptValueSerializer.h"
6 6
7 #include "bindings/core/v8/Transferables.h" 7 #include "bindings/core/v8/Transferables.h"
8 #include "bindings/core/v8/V8ArrayBuffer.h" 8 #include "bindings/core/v8/V8ArrayBuffer.h"
9 #include "bindings/core/v8/V8ArrayBufferView.h" 9 #include "bindings/core/v8/V8ArrayBufferView.h"
10 #include "bindings/core/v8/V8Blob.h" 10 #include "bindings/core/v8/V8Blob.h"
(...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 case ObjectReferenceTag: { 1718 case ObjectReferenceTag: {
1719 if (!m_version) 1719 if (!m_version)
1720 return false; 1720 return false;
1721 uint32_t reference; 1721 uint32_t reference;
1722 if (!doReadUint32(&reference)) 1722 if (!doReadUint32(&reference))
1723 return false; 1723 return false;
1724 if (!deserializer.tryGetObjectFromObjectReference(reference, value)) 1724 if (!deserializer.tryGetObjectFromObjectReference(reference, value))
1725 return false; 1725 return false;
1726 break; 1726 break;
1727 } 1727 }
1728 case DOMFileSystemTag: 1728 case FileSystemTag:
1729 case CryptoKeyTag: 1729 case CryptoKeyTag:
1730 ASSERT_NOT_REACHED(); 1730 ASSERT_NOT_REACHED();
1731 default: 1731 default:
1732 return false; 1732 return false;
1733 } 1733 }
1734 return !value->IsEmpty(); 1734 return !value->IsEmpty();
1735 } 1735 }
1736 1736
1737 bool SerializedScriptValueReader::readVersion(uint32_t& version) { 1737 bool SerializedScriptValueReader::readVersion(uint32_t& version) {
1738 SerializationTag tag; 1738 SerializationTag tag;
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
2652 m_openCompositeReferenceStack[m_openCompositeReferenceStack.size() - 1]; 2652 m_openCompositeReferenceStack[m_openCompositeReferenceStack.size() - 1];
2653 m_openCompositeReferenceStack.shrink(m_openCompositeReferenceStack.size() - 2653 m_openCompositeReferenceStack.shrink(m_openCompositeReferenceStack.size() -
2654 1); 2654 1);
2655 if (objectReference >= m_objectPool.size()) 2655 if (objectReference >= m_objectPool.size())
2656 return false; 2656 return false;
2657 *object = m_objectPool[objectReference]; 2657 *object = m_objectPool[objectReference];
2658 return true; 2658 return true;
2659 } 2659 }
2660 2660
2661 } // namespace blink 2661 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698