| 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 14 matching lines...) Expand all Loading... |
| 25 #include "content/browser/indexed_db/leveldb/leveldb_comparator.h" | 25 #include "content/browser/indexed_db/leveldb/leveldb_comparator.h" |
| 26 #include "content/browser/indexed_db/leveldb/leveldb_database.h" | 26 #include "content/browser/indexed_db/leveldb/leveldb_database.h" |
| 27 #include "content/browser/indexed_db/leveldb/leveldb_factory.h" | 27 #include "content/browser/indexed_db/leveldb/leveldb_factory.h" |
| 28 #include "content/browser/indexed_db/leveldb/leveldb_iterator.h" | 28 #include "content/browser/indexed_db/leveldb/leveldb_iterator.h" |
| 29 #include "content/browser/indexed_db/leveldb/leveldb_transaction.h" | 29 #include "content/browser/indexed_db/leveldb/leveldb_transaction.h" |
| 30 #include "content/common/indexed_db/indexed_db_key.h" | 30 #include "content/common/indexed_db/indexed_db_key.h" |
| 31 #include "content/common/indexed_db/indexed_db_key_path.h" | 31 #include "content/common/indexed_db/indexed_db_key_path.h" |
| 32 #include "content/common/indexed_db/indexed_db_key_range.h" | 32 #include "content/common/indexed_db/indexed_db_key_range.h" |
| 33 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" |
| 34 #include "net/url_request/url_request_context.h" | 34 #include "net/url_request/url_request_context.h" |
| 35 #include "storage/common/database/database_identifier.h" |
| 35 #include "third_party/WebKit/public/platform/WebIDBTypes.h" | 36 #include "third_party/WebKit/public/platform/WebIDBTypes.h" |
| 36 #include "third_party/WebKit/public/web/WebSerializedScriptValueVersion.h" | 37 #include "third_party/WebKit/public/web/WebSerializedScriptValueVersion.h" |
| 37 #include "third_party/leveldatabase/env_chromium.h" | 38 #include "third_party/leveldatabase/env_chromium.h" |
| 38 #include "webkit/browser/blob/blob_data_handle.h" | 39 #include "webkit/browser/blob/blob_data_handle.h" |
| 39 #include "webkit/browser/fileapi/file_stream_writer.h" | 40 #include "webkit/browser/fileapi/file_stream_writer.h" |
| 40 #include "webkit/browser/fileapi/file_writer_delegate.h" | 41 #include "webkit/browser/fileapi/file_writer_delegate.h" |
| 41 #include "webkit/browser/fileapi/local_file_stream_writer.h" | 42 #include "webkit/browser/fileapi/local_file_stream_writer.h" |
| 42 #include "webkit/common/database/database_identifier.h" | |
| 43 | 43 |
| 44 using base::FilePath; | 44 using base::FilePath; |
| 45 using base::StringPiece; | 45 using base::StringPiece; |
| 46 using storage::FileWriterDelegate; | 46 using storage::FileWriterDelegate; |
| 47 | 47 |
| 48 namespace content { | 48 namespace content { |
| 49 | 49 |
| 50 namespace { | 50 namespace { |
| 51 | 51 |
| 52 FilePath GetBlobDirectoryName(const FilePath& pathBase, int64 database_id) { | 52 FilePath GetBlobDirectoryName(const FilePath& pathBase, int64 database_id) { |
| (...skipping 4241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4294 int64_t size, | 4294 int64_t size, |
| 4295 base::Time last_modified) | 4295 base::Time last_modified) |
| 4296 : is_file_(true), | 4296 : is_file_(true), |
| 4297 file_path_(file_path), | 4297 file_path_(file_path), |
| 4298 key_(key), | 4298 key_(key), |
| 4299 size_(size), | 4299 size_(size), |
| 4300 last_modified_(last_modified) { | 4300 last_modified_(last_modified) { |
| 4301 } | 4301 } |
| 4302 | 4302 |
| 4303 } // namespace content | 4303 } // namespace content |
| OLD | NEW |