OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/common/indexed_db_key.h" | 5 #include "content/common/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/WebString.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
9 | 9 |
10 using WebKit::WebIDBKey; | 10 using WebKit::WebIDBKey; |
11 | 11 |
12 IndexedDBKey::IndexedDBKey() | 12 IndexedDBKey::IndexedDBKey() |
13 : type_(WebIDBKey::InvalidType), | 13 : type_(WebIDBKey::InvalidType), |
14 date_(0), | 14 date_(0), |
15 number_(0) { | 15 number_(0) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 case WebIDBKey::DateType: | 62 case WebIDBKey::DateType: |
63 return WebIDBKey::createDate(date_); | 63 return WebIDBKey::createDate(date_); |
64 case WebIDBKey::NumberType: | 64 case WebIDBKey::NumberType: |
65 return WebIDBKey::createNumber(number_); | 65 return WebIDBKey::createNumber(number_); |
66 case WebIDBKey::InvalidType: | 66 case WebIDBKey::InvalidType: |
67 return WebIDBKey::createInvalid(); | 67 return WebIDBKey::createInvalid(); |
68 } | 68 } |
69 NOTREACHED(); | 69 NOTREACHED(); |
70 return WebIDBKey::createInvalid(); | 70 return WebIDBKey::createInvalid(); |
71 } | 71 } |
OLD | NEW |