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

Side by Side Diff: content/browser/indexed_db/indexed_db_blob_info.h

Issue 197753011: Add IndexedDBValue wrapper class to group blob info with bits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yet still happier clang, I hope. Created 6 years, 9 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 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
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_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store_unittest.cc ('k') | content/browser/indexed_db/indexed_db_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698