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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBValue.cpp

Issue 2857143005: Gather serialization-related code into a directory. (Closed)
Patch Set: 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "modules/indexeddb/IDBValue.h" 5 #include "modules/indexeddb/IDBValue.h"
6 6
7 #include "bindings/core/v8/SerializedScriptValue.h" 7 #include "bindings/core/v8/serialization/SerializedScriptValue.h"
8 #include "platform/blob/BlobData.h" 8 #include "platform/blob/BlobData.h"
9 #include "platform/wtf/PtrUtil.h" 9 #include "platform/wtf/PtrUtil.h"
10 #include "public/platform/WebBlobInfo.h" 10 #include "public/platform/WebBlobInfo.h"
11 #include "public/platform/modules/indexeddb/WebIDBValue.h" 11 #include "public/platform/modules/indexeddb/WebIDBValue.h"
12 #include "v8/include/v8.h" 12 #include "v8/include/v8.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 IDBValue::IDBValue() = default; 16 IDBValue::IDBValue() = default;
17 17
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 RefPtr<SerializedScriptValue> IDBValue::CreateSerializedValue() const { 91 RefPtr<SerializedScriptValue> IDBValue::CreateSerializedValue() const {
92 return SerializedScriptValue::Create(data_->Data(), data_->size()); 92 return SerializedScriptValue::Create(data_->Data(), data_->size());
93 } 93 }
94 94
95 bool IDBValue::IsNull() const { 95 bool IDBValue::IsNull() const {
96 return !data_.Get(); 96 return !data_.Get();
97 } 97 }
98 98
99 } // namespace blink 99 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698