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

Side by Side Diff: Source/bindings/core/v8/SerializedScriptValue.h

Issue 900773003: Revert of Upgrade Blink to milliseconds-based last modified filetimes, part 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sof-fileinfo-modtime-in-ms-1
Patch Set: Created 5 years, 10 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) 2009, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 class SerializedScriptValue : public ThreadSafeRefCounted<SerializedScriptValue> { 58 class SerializedScriptValue : public ThreadSafeRefCounted<SerializedScriptValue> {
59 public: 59 public:
60 // Increment this for each incompatible change to the wire format. 60 // Increment this for each incompatible change to the wire format.
61 // Version 2: Added StringUCharTag for UChar v8 strings. 61 // Version 2: Added StringUCharTag for UChar v8 strings.
62 // Version 3: Switched to using uuids as blob data identifiers. 62 // Version 3: Switched to using uuids as blob data identifiers.
63 // Version 4: Extended File serialization to be complete. 63 // Version 4: Extended File serialization to be complete.
64 // Version 5: Added CryptoKeyTag for Key objects. 64 // Version 5: Added CryptoKeyTag for Key objects.
65 // Version 6: Added indexed serialization for File, Blob, and FileList. 65 // Version 6: Added indexed serialization for File, Blob, and FileList.
66 // Version 7: Extended File serialization with user visibility. 66 // Version 7: Extended File serialization with user visibility.
67 // Version 8: File.lastModified in milliseconds (seconds-based in earlier ve rsions.) 67 static const uint32_t wireFormatVersion = 7;
68 static const uint32_t wireFormatVersion = 8;
69 68
70 // VarInt encoding constants. 69 // VarInt encoding constants.
71 static const int varIntShift = 7; 70 static const int varIntShift = 7;
72 static const int varIntMask = (1 << varIntShift) - 1; 71 static const int varIntMask = (1 << varIntShift) - 1;
73 72
74 virtual ~SerializedScriptValue(); 73 virtual ~SerializedScriptValue();
75 74
76 static PassRefPtr<SerializedScriptValue> nullValue(); 75 static PassRefPtr<SerializedScriptValue> nullValue();
77 76
78 String toWireString() const { return m_data; } 77 String toWireString() const { return m_data; }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; 118 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray;
120 BlobDataHandleMap m_blobDataHandles; 119 BlobDataHandleMap m_blobDataHandles;
121 intptr_t m_externallyAllocatedMemory; 120 intptr_t m_externallyAllocatedMemory;
122 121
123 friend class SerializedScriptValueFactory; 122 friend class SerializedScriptValueFactory;
124 }; 123 };
125 124
126 } // namespace blink 125 } // namespace blink
127 126
128 #endif // SerializedScriptValue_h 127 #endif // SerializedScriptValue_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptValueSerializer.cpp ('k') | Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698