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

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

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 1 month 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) 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 m_idbCursor->contextWillBeDestroyed(); 52 m_idbCursor->contextWillBeDestroyed();
53 } 53 }
54 54
55 DOMStringList* IDBAny::domStringList() const { 55 DOMStringList* IDBAny::domStringList() const {
56 ASSERT(m_type == DOMStringListType); 56 ASSERT(m_type == DOMStringListType);
57 return m_domStringList.get(); 57 return m_domStringList.get();
58 } 58 }
59 59
60 IDBCursor* IDBAny::idbCursor() const { 60 IDBCursor* IDBAny::idbCursor() const {
61 ASSERT(m_type == IDBCursorType); 61 ASSERT(m_type == IDBCursorType);
62 ASSERT_WITH_SECURITY_IMPLICATION(m_idbCursor->isKeyCursor()); 62 SECURITY_DCHECK(m_idbCursor->isKeyCursor());
63 return m_idbCursor.get(); 63 return m_idbCursor.get();
64 } 64 }
65 65
66 IDBCursorWithValue* IDBAny::idbCursorWithValue() const { 66 IDBCursorWithValue* IDBAny::idbCursorWithValue() const {
67 ASSERT(m_type == IDBCursorWithValueType); 67 ASSERT(m_type == IDBCursorWithValueType);
68 ASSERT_WITH_SECURITY_IMPLICATION(m_idbCursor->isCursorWithValue()); 68 SECURITY_DCHECK(m_idbCursor->isCursorWithValue());
69 return toIDBCursorWithValue(m_idbCursor.get()); 69 return toIDBCursorWithValue(m_idbCursor.get());
70 } 70 }
71 71
72 IDBDatabase* IDBAny::idbDatabase() const { 72 IDBDatabase* IDBAny::idbDatabase() const {
73 ASSERT(m_type == IDBDatabaseType); 73 ASSERT(m_type == IDBDatabaseType);
74 return m_idbDatabase.get(); 74 return m_idbDatabase.get();
75 } 75 }
76 76
77 IDBIndex* IDBAny::idbIndex() const { 77 IDBIndex* IDBAny::idbIndex() const {
78 ASSERT(m_type == IDBIndexType); 78 ASSERT(m_type == IDBIndexType);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 DEFINE_TRACE(IDBAny) { 134 DEFINE_TRACE(IDBAny) {
135 visitor->trace(m_domStringList); 135 visitor->trace(m_domStringList);
136 visitor->trace(m_idbCursor); 136 visitor->trace(m_idbCursor);
137 visitor->trace(m_idbDatabase); 137 visitor->trace(m_idbDatabase);
138 visitor->trace(m_idbIndex); 138 visitor->trace(m_idbIndex);
139 visitor->trace(m_idbObjectStore); 139 visitor->trace(m_idbObjectStore);
140 visitor->trace(m_idbKey); 140 visitor->trace(m_idbKey);
141 } 141 }
142 142
143 } // namespace blink 143 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698