OLD | NEW |
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_backing_store.h" | 5 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
6 | 6 |
| 7 #include <string> |
| 8 |
7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
9 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
10 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
11 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
14 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
15 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
16 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
(...skipping 19 matching lines...) Expand all Loading... |
36 #include "storage/browser/fileapi/file_stream_writer.h" | 38 #include "storage/browser/fileapi/file_stream_writer.h" |
37 #include "storage/browser/fileapi/file_writer_delegate.h" | 39 #include "storage/browser/fileapi/file_writer_delegate.h" |
38 #include "storage/browser/fileapi/local_file_stream_writer.h" | 40 #include "storage/browser/fileapi/local_file_stream_writer.h" |
39 #include "storage/common/database/database_identifier.h" | 41 #include "storage/common/database/database_identifier.h" |
40 #include "third_party/WebKit/public/platform/WebIDBTypes.h" | 42 #include "third_party/WebKit/public/platform/WebIDBTypes.h" |
41 #include "third_party/WebKit/public/web/WebSerializedScriptValueVersion.h" | 43 #include "third_party/WebKit/public/web/WebSerializedScriptValueVersion.h" |
42 #include "third_party/leveldatabase/env_chromium.h" | 44 #include "third_party/leveldatabase/env_chromium.h" |
43 | 45 |
44 using base::FilePath; | 46 using base::FilePath; |
45 using base::StringPiece; | 47 using base::StringPiece; |
| 48 using std::string; |
46 using storage::FileWriterDelegate; | 49 using storage::FileWriterDelegate; |
47 | 50 |
48 namespace content { | 51 namespace content { |
49 | 52 |
50 namespace { | 53 namespace { |
51 | 54 |
52 FilePath GetBlobDirectoryName(const FilePath& pathBase, int64 database_id) { | 55 FilePath GetBlobDirectoryName(const FilePath& pathBase, int64 database_id) { |
53 return pathBase.AppendASCII(base::StringPrintf("%" PRIx64, database_id)); | 56 return pathBase.AppendASCII(base::StringPrintf("%" PRIx64, database_id)); |
54 } | 57 } |
55 | 58 |
(...skipping 4232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4288 int64_t size, | 4291 int64_t size, |
4289 base::Time last_modified) | 4292 base::Time last_modified) |
4290 : is_file_(true), | 4293 : is_file_(true), |
4291 file_path_(file_path), | 4294 file_path_(file_path), |
4292 key_(key), | 4295 key_(key), |
4293 size_(size), | 4296 size_(size), |
4294 last_modified_(last_modified) { | 4297 last_modified_(last_modified) { |
4295 } | 4298 } |
4296 | 4299 |
4297 } // namespace content | 4300 } // namespace content |
OLD | NEW |