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/Platform/chromium/public/WebString.h" | 8 #include "third_party/WebKit/public/platform/WebString.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 9 #include "third_party/WebKit/public/platform/WebVector.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 using WebKit::WebIDBKey; | 13 using WebKit::WebIDBKey; |
14 using WebKit::WebVector; | 14 using WebKit::WebVector; |
15 | 15 |
16 namespace { | 16 namespace { |
17 size_t CalculateKeySize(const WebIDBKey& key); | 17 size_t CalculateKeySize(const WebIDBKey& key); |
18 | 18 |
19 template <typename T> static size_t CalculateSize(const T& keys) { | 19 template <typename T> static size_t CalculateSize(const T& keys) { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 case WebIDBKey::NullType: | 155 case WebIDBKey::NullType: |
156 return WebIDBKey::createNull(); | 156 return WebIDBKey::createNull(); |
157 default: | 157 default: |
158 // This is a placeholder for WebKit::WebIDBKey::MinType | 158 // This is a placeholder for WebKit::WebIDBKey::MinType |
159 NOTREACHED(); | 159 NOTREACHED(); |
160 return WebIDBKey::createInvalid(); | 160 return WebIDBKey::createInvalid(); |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
164 } // namespace content | 164 } // namespace content |
OLD | NEW |