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

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

Issue 2031113002: IndexedDB Observers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: expected files updated Created 4 years, 6 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 "platform/blob/BlobData.h" 7 #include "platform/blob/BlobData.h"
8 #include "public/platform/WebBlobInfo.h" 8 #include "public/platform/WebBlobInfo.h"
9 #include "public/platform/modules/indexeddb/WebIDBValue.h" 9 #include "public/platform/modules/indexeddb/WebIDBValue.h"
10 10
(...skipping 25 matching lines...) Expand all
36 , m_blobInfo(adoptPtr(new Vector<WebBlobInfo>(value->m_blobInfo->size()))) 36 , m_blobInfo(adoptPtr(new Vector<WebBlobInfo>(value->m_blobInfo->size())))
37 , m_primaryKey(primaryKey) 37 , m_primaryKey(primaryKey)
38 , m_keyPath(keyPath) 38 , m_keyPath(keyPath)
39 { 39 {
40 for (size_t i = 0; i < value->m_blobInfo->size(); ++i) { 40 for (size_t i = 0; i < value->m_blobInfo->size(); ++i) {
41 const WebBlobInfo& info = (*m_blobInfo)[i] = value->m_blobInfo->at(i); 41 const WebBlobInfo& info = (*m_blobInfo)[i] = value->m_blobInfo->at(i);
42 m_blobData->append(BlobDataHandle::create(info.uuid(), info.type(), info .size())); 42 m_blobData->append(BlobDataHandle::create(info.uuid(), info.type(), info .size()));
43 } 43 }
44 } 44 }
45 45
46 IDBValue::~IDBValue() {}
47
46 PassRefPtr<IDBValue> IDBValue::create() 48 PassRefPtr<IDBValue> IDBValue::create()
47 { 49 {
48 return adoptRef(new IDBValue()); 50 return adoptRef(new IDBValue());
49 } 51 }
50 52
51 PassRefPtr<IDBValue> IDBValue::create(const WebIDBValue& value) 53 PassRefPtr<IDBValue> IDBValue::create(const WebIDBValue& value)
52 { 54 {
53 return adoptRef(new IDBValue(value)); 55 return adoptRef(new IDBValue(value));
54 } 56 }
55 57
(...skipping 15 matching lines...) Expand all
71 { 73 {
72 return m_data.get(); 74 return m_data.get();
73 } 75 }
74 76
75 bool IDBValue::isNull() const 77 bool IDBValue::isNull() const
76 { 78 {
77 return !m_data.get(); 79 return !m_data.get();
78 } 80 }
79 81
80 } // namespace blink 82 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBValue.h ('k') | third_party/WebKit/Source/modules/indexeddb/IndexedDBNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698