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

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

Issue 78053006: [oilpan] Move IDBDatabase, IDBDatabaseCallbacks, IDBDatabaseBackendInterface and other related clas… (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years 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/heap/Visitor.h ('k') | Source/modules/indexeddb/IDBAny.cpp » ('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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 IntegerType, 87 IntegerType,
88 StringType, 88 StringType,
89 KeyPathType, 89 KeyPathType,
90 }; 90 };
91 91
92 Type type() const { return m_type; } 92 Type type() const { return m_type; }
93 // Use type() to figure out which one of these you're allowed to call. 93 // Use type() to figure out which one of these you're allowed to call.
94 PassRefPtr<DOMStringList> domStringList(); 94 PassRefPtr<DOMStringList> domStringList();
95 PassRefPtr<IDBCursor> idbCursor(); 95 PassRefPtr<IDBCursor> idbCursor();
96 PassRefPtr<IDBCursorWithValue> idbCursorWithValue(); 96 PassRefPtr<IDBCursorWithValue> idbCursorWithValue();
97 PassRefPtr<IDBDatabase> idbDatabase(); 97 IDBDatabase* idbDatabase();
98 IDBFactory* idbFactory(); 98 IDBFactory* idbFactory();
99 PassRefPtr<IDBIndex> idbIndex(); 99 PassRefPtr<IDBIndex> idbIndex();
100 PassRefPtr<IDBObjectStore> idbObjectStore(); 100 PassRefPtr<IDBObjectStore> idbObjectStore();
101 PassRefPtr<IDBTransaction> idbTransaction(); 101 PassRefPtr<IDBTransaction> idbTransaction();
102 const ScriptValue& scriptValue(); 102 const ScriptValue& scriptValue();
103 int64_t integer(); 103 int64_t integer();
104 const String& string(); 104 const String& string();
105 const IDBKeyPath& keyPath() { return m_idbKeyPath; }; 105 const IDBKeyPath& keyPath() { return m_idbKeyPath; };
106 106
107 private: 107 private:
108 explicit IDBAny(Type); 108 explicit IDBAny(Type);
109 explicit IDBAny(PassRefPtr<DOMStringList>); 109 explicit IDBAny(PassRefPtr<DOMStringList>);
110 explicit IDBAny(PassRefPtr<IDBCursor>); 110 explicit IDBAny(PassRefPtr<IDBCursor>);
111 explicit IDBAny(PassRefPtr<IDBCursorWithValue>); 111 explicit IDBAny(PassRefPtr<IDBCursorWithValue>);
112 explicit IDBAny(PassRefPtr<IDBDatabase>); 112 explicit IDBAny(IDBDatabase*);
113 explicit IDBAny(IDBFactory*); 113 explicit IDBAny(IDBFactory*);
114 explicit IDBAny(PassRefPtr<IDBIndex>); 114 explicit IDBAny(PassRefPtr<IDBIndex>);
115 explicit IDBAny(PassRefPtr<IDBObjectStore>); 115 explicit IDBAny(PassRefPtr<IDBObjectStore>);
116 explicit IDBAny(PassRefPtr<IDBTransaction>); 116 explicit IDBAny(PassRefPtr<IDBTransaction>);
117 explicit IDBAny(const IDBKeyPath&); 117 explicit IDBAny(const IDBKeyPath&);
118 explicit IDBAny(const String&); 118 explicit IDBAny(const String&);
119 explicit IDBAny(const ScriptValue&); 119 explicit IDBAny(const ScriptValue&);
120 explicit IDBAny(int64_t); 120 explicit IDBAny(int64_t);
121 121
122 const Type m_type; 122 const Type m_type;
123 123
124 // Only one of the following should ever be in use at any given time. 124 // Only one of the following should ever be in use at any given time.
125 const RefPtr<DOMStringList> m_domStringList; 125 const RefPtr<DOMStringList> m_domStringList;
126 const RefPtr<IDBCursor> m_idbCursor; 126 const RefPtr<IDBCursor> m_idbCursor;
127 const RefPtr<IDBCursorWithValue> m_idbCursorWithValue; 127 const RefPtr<IDBCursorWithValue> m_idbCursorWithValue;
128 const RefPtr<IDBDatabase> m_idbDatabase;
129 // FIXME(oilpan): Move IDBAny to the heap and use a Member.
130 const Persistent<IDBFactory> m_idbFactory;
131 const RefPtr<IDBIndex> m_idbIndex; 128 const RefPtr<IDBIndex> m_idbIndex;
132 const RefPtr<IDBObjectStore> m_idbObjectStore; 129 const RefPtr<IDBObjectStore> m_idbObjectStore;
133 const RefPtr<IDBTransaction> m_idbTransaction; 130 const RefPtr<IDBTransaction> m_idbTransaction;
131 // FIXME(oilpan): Move IDBAny to the heap and use Members.
132 const Persistent<IDBDatabase> m_idbDatabase;
133 const Persistent<IDBFactory> m_idbFactory;
134 const IDBKeyPath m_idbKeyPath; 134 const IDBKeyPath m_idbKeyPath;
135 const ScriptValue m_scriptValue; 135 const ScriptValue m_scriptValue;
136 const String m_string; 136 const String m_string;
137 const int64_t m_integer; 137 const int64_t m_integer;
138 }; 138 };
139 139
140 } // namespace WebCore 140 } // namespace WebCore
141 141
142 #endif // IDBAny_h 142 #endif // IDBAny_h
OLDNEW
« no previous file with comments | « Source/heap/Visitor.h ('k') | Source/modules/indexeddb/IDBAny.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698