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