| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef IDBKeyPath_h | 26 #ifndef IDBKeyPath_h |
| 27 #define IDBKeyPath_h | 27 #define IDBKeyPath_h |
| 28 | 28 |
| 29 #include "wtf/Vector.h" | 29 #include "wtf/Vector.h" |
| 30 #include "wtf/text/WTFString.h" | 30 #include "wtf/text/WTFString.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace blink { |
| 33 | 33 |
| 34 enum IDBKeyPathParseError { | 34 enum IDBKeyPathParseError { |
| 35 IDBKeyPathParseErrorNone, | 35 IDBKeyPathParseErrorNone, |
| 36 IDBKeyPathParseErrorStart, | 36 IDBKeyPathParseErrorStart, |
| 37 IDBKeyPathParseErrorIdentifier, | 37 IDBKeyPathParseErrorIdentifier, |
| 38 IDBKeyPathParseErrorDot, | 38 IDBKeyPathParseErrorDot, |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 void IDBParseKeyPath(const String&, Vector<String>&, IDBKeyPathParseError&); | 41 void IDBParseKeyPath(const String&, Vector<String>&, IDBKeyPathParseError&); |
| 42 | 42 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 69 bool isNull() const { return m_type == NullType; } | 69 bool isNull() const { return m_type == NullType; } |
| 70 bool isValid() const; | 70 bool isValid() const; |
| 71 bool operator==(const IDBKeyPath& other) const; | 71 bool operator==(const IDBKeyPath& other) const; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 Type m_type; | 74 Type m_type; |
| 75 String m_string; | 75 String m_string; |
| 76 Vector<String> m_array; | 76 Vector<String> m_array; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace WebCore | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // IDBKeyPath_h | 81 #endif // IDBKeyPath_h |
| OLD | NEW |