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/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::WebIDBKeyPath; | 13 using WebKit::WebIDBKeyPath; |
14 using WebKit::WebString; | 14 using WebKit::WebString; |
15 using WebKit::WebVector; | 15 using WebKit::WebVector; |
16 | 16 |
17 namespace { | 17 namespace { |
18 static std::vector<string16> CopyArray(const WebVector<WebString>& array) { | 18 static std::vector<string16> CopyArray(const WebVector<WebString>& array) { |
19 std::vector<string16> copy(array.size()); | 19 std::vector<string16> copy(array.size()); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 case WebIDBKeyPath::StringType: | 78 case WebIDBKeyPath::StringType: |
79 return WebIDBKeyPath::create(WebString(string_)); | 79 return WebIDBKeyPath::create(WebString(string_)); |
80 case WebIDBKeyPath::NullType: | 80 case WebIDBKeyPath::NullType: |
81 return WebIDBKeyPath::createNull(); | 81 return WebIDBKeyPath::createNull(); |
82 } | 82 } |
83 NOTREACHED(); | 83 NOTREACHED(); |
84 return WebIDBKeyPath::createNull(); | 84 return WebIDBKeyPath::createNull(); |
85 } | 85 } |
86 | 86 |
87 } // namespace content | 87 } // namespace content |
OLD | NEW |