| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 |
| 11 namespace content { |
| 12 |
| 11 using WebKit::WebIDBKey; | 13 using WebKit::WebIDBKey; |
| 12 using WebKit::WebVector; | 14 using WebKit::WebVector; |
| 13 | 15 |
| 14 IndexedDBKey::IndexedDBKey() | 16 IndexedDBKey::IndexedDBKey() |
| 15 : type_(WebIDBKey::NullType), | 17 : type_(WebIDBKey::NullType), |
| 16 date_(0), | 18 date_(0), |
| 17 number_(0) { | 19 number_(0) { |
| 18 } | 20 } |
| 19 | 21 |
| 20 IndexedDBKey::IndexedDBKey(const WebIDBKey& key) { | 22 IndexedDBKey::IndexedDBKey(const WebIDBKey& key) { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 case WebIDBKey::NumberType: | 80 case WebIDBKey::NumberType: |
| 79 return WebIDBKey::createNumber(number_); | 81 return WebIDBKey::createNumber(number_); |
| 80 case WebIDBKey::InvalidType: | 82 case WebIDBKey::InvalidType: |
| 81 return WebIDBKey::createInvalid(); | 83 return WebIDBKey::createInvalid(); |
| 82 case WebIDBKey::NullType: | 84 case WebIDBKey::NullType: |
| 83 return WebIDBKey::createNull(); | 85 return WebIDBKey::createNull(); |
| 84 } | 86 } |
| 85 NOTREACHED(); | 87 NOTREACHED(); |
| 86 return WebIDBKey::createInvalid(); | 88 return WebIDBKey::createInvalid(); |
| 87 } | 89 } |
| 90 |
| 91 } // namespace content |
| OLD | NEW |