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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 53
54 class MODULES_EXPORT IDBAny : public GarbageCollectedFinalized<IDBAny> { 54 class MODULES_EXPORT IDBAny : public GarbageCollectedFinalized<IDBAny> {
55 public: 55 public:
56 static IDBAny* createUndefined(); 56 static IDBAny* createUndefined();
57 static IDBAny* createNull(); 57 static IDBAny* createNull();
58 template<typename T> 58 template<typename T>
59 static IDBAny* create(T* idbObject) 59 static IDBAny* create(T* idbObject)
60 { 60 {
61 return new IDBAny(idbObject); 61 return new IDBAny(idbObject);
62 } 62 }
63 static IDBAny* create(PassRefPtrWillBeRawPtr<DOMStringList> domStringList) 63 static IDBAny* create(RawPtr<DOMStringList> domStringList)
64 { 64 {
65 return new IDBAny(domStringList); 65 return new IDBAny(domStringList);
66 } 66 }
67 static IDBAny* create(int64_t value) 67 static IDBAny* create(int64_t value)
68 { 68 {
69 return new IDBAny(value); 69 return new IDBAny(value);
70 } 70 }
71 static IDBAny* create(PassRefPtr<IDBValue> value) 71 static IDBAny* create(PassRefPtr<IDBValue> value)
72 { 72 {
73 return new IDBAny(value); 73 return new IDBAny(value);
(...skipping 29 matching lines...) Expand all
103 IDBDatabase* idbDatabase() const; 103 IDBDatabase* idbDatabase() const;
104 IDBIndex* idbIndex() const; 104 IDBIndex* idbIndex() const;
105 IDBObjectStore* idbObjectStore() const; 105 IDBObjectStore* idbObjectStore() const;
106 IDBValue* value() const; 106 IDBValue* value() const;
107 const Vector<RefPtr<IDBValue>>* values() const; 107 const Vector<RefPtr<IDBValue>>* values() const;
108 int64_t integer() const; 108 int64_t integer() const;
109 const IDBKey* key() const; 109 const IDBKey* key() const;
110 110
111 private: 111 private:
112 explicit IDBAny(Type); 112 explicit IDBAny(Type);
113 explicit IDBAny(PassRefPtrWillBeRawPtr<DOMStringList>); 113 explicit IDBAny(RawPtr<DOMStringList>);
114 explicit IDBAny(IDBCursor*); 114 explicit IDBAny(IDBCursor*);
115 explicit IDBAny(IDBDatabase*); 115 explicit IDBAny(IDBDatabase*);
116 explicit IDBAny(IDBIndex*); 116 explicit IDBAny(IDBIndex*);
117 explicit IDBAny(IDBObjectStore*); 117 explicit IDBAny(IDBObjectStore*);
118 explicit IDBAny(IDBKey*); 118 explicit IDBAny(IDBKey*);
119 explicit IDBAny(const Vector<RefPtr<IDBValue>>&); 119 explicit IDBAny(const Vector<RefPtr<IDBValue>>&);
120 explicit IDBAny(PassRefPtr<IDBValue>); 120 explicit IDBAny(PassRefPtr<IDBValue>);
121 explicit IDBAny(int64_t); 121 explicit IDBAny(int64_t);
122 122
123 const Type m_type; 123 const Type m_type;
124 124
125 // Only one of the following should ever be in use at any given time. 125 // Only one of the following should ever be in use at any given time.
126 const RefPtrWillBeMember<DOMStringList> m_domStringList; 126 const Member<DOMStringList> m_domStringList;
127 const Member<IDBCursor> m_idbCursor; 127 const Member<IDBCursor> m_idbCursor;
128 const Member<IDBDatabase> m_idbDatabase; 128 const Member<IDBDatabase> m_idbDatabase;
129 const Member<IDBIndex> m_idbIndex; 129 const Member<IDBIndex> m_idbIndex;
130 const Member<IDBObjectStore> m_idbObjectStore; 130 const Member<IDBObjectStore> m_idbObjectStore;
131 const Member<IDBKey> m_idbKey; 131 const Member<IDBKey> m_idbKey;
132 const RefPtr<IDBValue> m_idbValue; 132 const RefPtr<IDBValue> m_idbValue;
133 const Vector<RefPtr<IDBValue>> m_idbValues; 133 const Vector<RefPtr<IDBValue>> m_idbValues;
134 const int64_t m_integer = 0; 134 const int64_t m_integer = 0;
135 }; 135 };
136 136
137 } // namespace blink 137 } // namespace blink
138 138
139 #endif // IDBAny_h 139 #endif // IDBAny_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698