| 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_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/platform/WebString.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
| 10 | 10 |
| 11 using WebKit::WebIDBKey; | 11 using WebKit::WebIDBKey; |
| 12 | 12 |
| 13 IndexedDBKey::IndexedDBKey() | 13 IndexedDBKey::IndexedDBKey() |
| 14 : type_(WebIDBKey::InvalidType), | 14 : type_(WebIDBKey::InvalidType), |
| 15 date_(0), | 15 date_(0), |
| 16 number_(0) { | 16 number_(0) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 IndexedDBKey::IndexedDBKey(const WebIDBKey& key) { | 19 IndexedDBKey::IndexedDBKey(const WebIDBKey& key) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 return WebIDBKey::createInvalid(); | 75 return WebIDBKey::createInvalid(); |
| 76 } | 76 } |
| 77 NOTREACHED(); | 77 NOTREACHED(); |
| 78 return WebIDBKey::createInvalid(); | 78 return WebIDBKey::createInvalid(); |
| 79 } | 79 } |
| OLD | NEW |