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

Side by Side Diff: Source/modules/indexeddb/IDBAny.cpp

Issue 257573002: Oilpan: Fix crash in content::WebIDBCursorImpl::~WebIDBCursorImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/indexeddb/IDBAny.h ('k') | Source/modules/indexeddb/IDBCursor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 : m_type(type) 53 : m_type(type)
54 , m_integer(0) 54 , m_integer(0)
55 { 55 {
56 ASSERT(type == UndefinedType || type == NullType); 56 ASSERT(type == UndefinedType || type == NullType);
57 } 57 }
58 58
59 IDBAny::~IDBAny() 59 IDBAny::~IDBAny()
60 { 60 {
61 } 61 }
62 62
63 void IDBAny::contextWillBeDestroyed()
64 {
65 if (m_idbCursor)
66 m_idbCursor->contextWillBeDestroyed();
67 }
68
63 DOMStringList* IDBAny::domStringList() const 69 DOMStringList* IDBAny::domStringList() const
64 { 70 {
65 ASSERT(m_type == DOMStringListType); 71 ASSERT(m_type == DOMStringListType);
66 return m_domStringList.get(); 72 return m_domStringList.get();
67 } 73 }
68 74
69 IDBCursor* IDBAny::idbCursor() const 75 IDBCursor* IDBAny::idbCursor() const
70 { 76 {
71 ASSERT(m_type == IDBCursorType); 77 ASSERT(m_type == IDBCursorType);
72 ASSERT_WITH_SECURITY_IMPLICATION(m_idbCursor->isKeyCursor()); 78 ASSERT_WITH_SECURITY_IMPLICATION(m_idbCursor->isKeyCursor());
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 { 219 {
214 } 220 }
215 221
216 IDBAny::IDBAny(int64_t value) 222 IDBAny::IDBAny(int64_t value)
217 : m_type(IntegerType) 223 : m_type(IntegerType)
218 , m_integer(value) 224 , m_integer(value)
219 { 225 {
220 } 226 }
221 227
222 } // namespace WebCore 228 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBAny.h ('k') | Source/modules/indexeddb/IDBCursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698