OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/indexed_db/indexed_db_key.h" | 5 #include "content/common/indexed_db/indexed_db_key.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 switch (type_) { | 65 switch (type_) { |
66 case WebIDBKey::ArrayType: | 66 case WebIDBKey::ArrayType: |
67 return WebIDBKey::createArray(array_); | 67 return WebIDBKey::createArray(array_); |
68 case WebIDBKey::StringType: | 68 case WebIDBKey::StringType: |
69 return WebIDBKey::createString(string_); | 69 return WebIDBKey::createString(string_); |
70 case WebIDBKey::DateType: | 70 case WebIDBKey::DateType: |
71 return WebIDBKey::createDate(date_); | 71 return WebIDBKey::createDate(date_); |
72 case WebIDBKey::NumberType: | 72 case WebIDBKey::NumberType: |
73 return WebIDBKey::createNumber(number_); | 73 return WebIDBKey::createNumber(number_); |
74 case WebIDBKey::InvalidType: | 74 case WebIDBKey::InvalidType: |
| 75 default: |
| 76 // TODO(jsbell): Remove "default" label once WebKit bug 76487 has rolled. |
| 77 // http://crbug.com/110956 |
75 return WebIDBKey::createInvalid(); | 78 return WebIDBKey::createInvalid(); |
76 } | 79 } |
77 NOTREACHED(); | 80 NOTREACHED(); |
78 return WebIDBKey::createInvalid(); | 81 return WebIDBKey::createInvalid(); |
79 } | 82 } |
OLD | NEW |