Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: content/browser/indexed_db/indexed_db_leveldb_coding.cc

Issue 16755004: Use a direct include of strings headers in content/browser/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/browser/indexed_db/indexed_db_leveldb_coding.h" 5 #include "content/browser/indexed_db/indexed_db_leveldb_coding.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/sys_byteorder.h" 13 #include "base/sys_byteorder.h"
14 #include "content/browser/indexed_db/leveldb/leveldb_slice.h" 14 #include "content/browser/indexed_db/leveldb/leveldb_slice.h"
15 #include "content/common/indexed_db/indexed_db_key.h" 15 #include "content/common/indexed_db/indexed_db_key.h"
16 #include "content/common/indexed_db/indexed_db_key_path.h" 16 #include "content/common/indexed_db/indexed_db_key_path.h"
17 #include "third_party/WebKit/public/platform/WebIDBKeyPath.h" 17 #include "third_party/WebKit/public/platform/WebIDBKeyPath.h"
18 18
19 // LevelDB stores key/value pairs. Keys and values are strings of bytes, 19 // LevelDB stores key/value pairs. Keys and values are strings of bytes,
20 // normally of type std::vector<char>. 20 // normally of type std::vector<char>.
21 // 21 //
22 // The keys in the backing store are variable-length tuples with different types 22 // The keys in the backing store are variable-length tuples with different types
(...skipping 1857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1880 scoped_ptr<IndexedDBKey> IndexDataKey::primary_key() const { 1880 scoped_ptr<IndexedDBKey> IndexDataKey::primary_key() const {
1881 scoped_ptr<IndexedDBKey> key; 1881 scoped_ptr<IndexedDBKey> key;
1882 StringPiece slice(&encoded_primary_key_[0], encoded_primary_key_.size()); 1882 StringPiece slice(&encoded_primary_key_[0], encoded_primary_key_.size());
1883 if (!DecodeIDBKey(&slice, &key)) { 1883 if (!DecodeIDBKey(&slice, &key)) {
1884 // TODO(jsbell): Return error. 1884 // TODO(jsbell): Return error.
1885 } 1885 }
1886 return key.Pass(); 1886 return key.Pass();
1887 } 1887 }
1888 1888
1889 } // namespace content 1889 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698