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_path.h" | 5 #include "content/common/indexed_db/indexed_db_key_path.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/Platform/chromium/public/WebString.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 using WebKit::WebIDBKeyPath; | 13 using WebKit::WebIDBKeyPath; |
14 using WebKit::WebString; | 14 using WebKit::WebString; |
15 using WebKit::WebVector; | 15 using WebKit::WebVector; |
16 | 16 |
17 IndexedDBKeyPath::IndexedDBKeyPath() | 17 IndexedDBKeyPath::IndexedDBKeyPath() |
18 : type_(WebIDBKeyPath::NullType) { | 18 : type_(WebIDBKeyPath::NullType) { |
19 } | 19 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 case WebIDBKeyPath::StringType: | 69 case WebIDBKeyPath::StringType: |
70 return WebIDBKeyPath::create(WebString(string_)); | 70 return WebIDBKeyPath::create(WebString(string_)); |
71 case WebIDBKeyPath::NullType: | 71 case WebIDBKeyPath::NullType: |
72 return WebIDBKeyPath::createNull(); | 72 return WebIDBKeyPath::createNull(); |
73 } | 73 } |
74 NOTREACHED(); | 74 NOTREACHED(); |
75 return WebIDBKeyPath::createNull(); | 75 return WebIDBKeyPath::createNull(); |
76 } | 76 } |
77 | 77 |
78 } // namespace content | 78 } // namespace content |
OLD | NEW |