| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "content/common/content_export.h" |
| 11 #include "webkit/common/blob/shareable_file_reference.h" | 12 #include "webkit/common/blob/shareable_file_reference.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 | 15 |
| 15 class IndexedDBBlobInfo { | 16 class CONTENT_EXPORT IndexedDBBlobInfo { |
| 16 public: | 17 public: |
| 17 typedef webkit_blob::ShareableFileReference::FinalReleaseCallback | 18 typedef webkit_blob::ShareableFileReference::FinalReleaseCallback |
| 18 ReleaseCallback; | 19 ReleaseCallback; |
| 19 IndexedDBBlobInfo(); | 20 IndexedDBBlobInfo(); |
| 20 ~IndexedDBBlobInfo(); | 21 ~IndexedDBBlobInfo(); |
| 21 // These two are used for Blobs. | 22 // These two are used for Blobs. |
| 22 IndexedDBBlobInfo(const std::string& uuid, | 23 IndexedDBBlobInfo(const std::string& uuid, |
| 23 const base::string16& type, | 24 const base::string16& type, |
| 24 int64 size); | 25 int64 size); |
| 25 IndexedDBBlobInfo(const base::string16& type, int64 size, int64 key); | 26 IndexedDBBlobInfo(const base::string16& type, int64 size, int64 key); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 64 |
| 64 // Valid only when this comes out of the database. | 65 // Valid only when this comes out of the database. |
| 65 int64 key_; | 66 int64 key_; |
| 66 base::Closure mark_used_callback_; | 67 base::Closure mark_used_callback_; |
| 67 ReleaseCallback release_callback_; | 68 ReleaseCallback release_callback_; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace content | 71 } // namespace content |
| 71 | 72 |
| 72 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_ | 73 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_ |
| OLD | NEW |