Searched refs:ShareableFileReference (Results 1 - 25 of 52) sorted by relevance

123

/external/chromium_org/storage/common/blob/
H A Dshareable_file_reference.h14 // ShareableFileReference allows consumers to share FileReference for the
18 class STORAGE_COMMON_EXPORT ShareableFileReference class in namespace:storage
19 : public base::RefCounted<ShareableFileReference> {
28 // Returns a ShareableFileReference for the given path, if no reference
30 static scoped_refptr<ShareableFileReference> Get(const base::FilePath& path);
32 // Returns a ShareableFileReference for the given path, creating a new
35 static scoped_refptr<ShareableFileReference> GetOrCreate(
40 // Returns a ShareableFileReference for the given path of the |scoped_file|,
50 static scoped_refptr<ShareableFileReference> GetOrCreate(
62 friend class base::RefCounted<ShareableFileReference>;
[all...]
H A Dshareable_file_reference.cc21 typedef std::map<base::FilePath, ShareableFileReference*> FileMap;
62 scoped_refptr<ShareableFileReference> ShareableFileReference::Get(
65 ShareableFileReference* reference =
67 return scoped_refptr<ShareableFileReference>(reference);
71 scoped_refptr<ShareableFileReference> ShareableFileReference::GetOrCreate(
81 scoped_refptr<ShareableFileReference> ShareableFileReference::GetOrCreate(
84 return scoped_refptr<ShareableFileReference>();
111 ShareableFileReference::ShareableFileReference(ScopedFile scoped_file) function in class:storage::ShareableFileReference
[all...]
H A Dblob_data.h43 void AttachShareableFileReference(ShareableFileReference* reference) {
71 std::vector<scoped_refptr<ShareableFileReference> > shareable_files_;
/external/chromium_org/content/common/
H A Dshareable_file_reference_unittest.cc13 using storage::ShareableFileReference;
30 scoped_refptr<ShareableFileReference> reference1;
31 reference1 = ShareableFileReference::Get(file);
33 reference1 = ShareableFileReference::GetOrCreate(
34 file, ShareableFileReference::DELETE_ON_FINAL_RELEASE, loop_proxy.get());
39 scoped_refptr<ShareableFileReference> reference2;
40 reference2 = ShareableFileReference::Get(file);
42 reference2 = ShareableFileReference::GetOrCreate(
43 file, ShareableFileReference::DELETE_ON_FINAL_RELEASE, loop_proxy.get());
48 EXPECT_TRUE(ShareableFileReference
[all...]
/external/chromium_org/content/browser/loader/
H A Dtemporary_file_stream.h18 class ShareableFileReference;
25 storage::ShareableFileReference*)>
29 // net::FileStream and storage::ShareableFileReference. The file is deleted
30 // when the storage::ShareableFileReference is deleted. Note it is the
31 // consumer's responsibility to ensure the storage::ShareableFileReference
38 // storage::ShareableFileReference lifetimes is a nuisance. The two should
H A Dtemporary_file_stream.cc15 using storage::ShareableFileReference;
37 scoped_refptr<ShareableFileReference> deletable_file =
38 ShareableFileReference::GetOrCreate(
40 ShareableFileReference::DELETE_ON_FINAL_RELEASE,
H A Dtemporary_file_stream_unittest.cc24 using storage::ShareableFileReference;
37 ShareableFileReference* deletable_file() const {
43 ShareableFileReference* deletable_file) {
62 scoped_refptr<ShareableFileReference> deletable_file_;
H A Dredirect_to_file_resource_handler.h29 class ShareableFileReference;
53 // ShareableFileReference and then asynchronously pass them to the
73 storage::ShareableFileReference* deletable_file);
96 // storage::ShareableFileReference. This is maintained separately so that,
H A Dredirect_to_file_resource_handler.cc20 using storage::ShareableFileReference;
54 // the ShareableFileReference. When the handler is destroyed, it asynchronously
56 // stream is closed is the ShareableFileReference released, to ensure the
62 ShareableFileReference* deletable_file)
122 // We create a ShareableFileReference that's deletable for the temp file
124 scoped_refptr<storage::ShareableFileReference> deletable_file_;
245 ShareableFileReference* deletable_file) {
H A Dresource_loader_unittest.cc33 using storage::ShareableFileReference;
279 scoped_refptr<ShareableFileReference>()));
488 ShareableFileReference* deletable_file() const {
514 // Create mock file streams and a ShareableFileReference.
519 deletable_file_ = ShareableFileReference::GetOrCreate(
521 ShareableFileReference::DELETE_ON_FINAL_RELEASE,
548 scoped_refptr<ShareableFileReference> deletable_file_;
/external/chromium_org/chrome/browser/chromeos/file_manager/
H A Dsnapshot_manager.h26 class ShareableFileReference;
52 scoped_refptr<storage::ShareableFileReference> ref,
55 scoped_refptr<storage::ShareableFileReference> file_ref;
72 const scoped_refptr<storage::ShareableFileReference>& file_ref);
H A Dsnapshot_manager.cc104 scoped_refptr<storage::ShareableFileReference> ref,
200 const scoped_refptr<storage::ShareableFileReference>& file_ref) {
/external/chromium_org/storage/browser/fileapi/
H A Dfile_system_file_stream_reader.h63 const scoped_refptr<storage::ShareableFileReference>& file_ref);
70 scoped_refptr<storage::ShareableFileReference> snapshot_ref_;
H A Dasync_file_util.h24 class ShareableFileReference;
77 const scoped_refptr<storage::ShareableFileReference>& file_ref)>
H A Dfile_system_operation.h27 class ShareableFileReference;
114 // Please see the comment for ShareableFileReference for details.
120 const scoped_refptr<storage::ShareableFileReference>& file_ref)>
H A Dsandbox_file_stream_writer.h58 const scoped_refptr<storage::ShareableFileReference>& file_ref);
H A Dfile_system_file_stream_reader.cc119 const scoped_refptr<storage::ShareableFileReference>& file_ref) {
/external/chromium_org/chrome/browser/extensions/api/page_capture/
H A Dpage_capture_api.cc27 using storage::ShareableFileReference;
47 storage::ShareableFileReference* to_release = mhtml_file_.get();
104 // Setup a ShareableFileReference so the temporary file gets deleted
106 mhtml_file_ = ShareableFileReference::GetOrCreate(
108 ShareableFileReference::DELETE_ON_FINAL_RELEASE,
H A Dpage_capture_api.h63 scoped_refptr<storage::ShareableFileReference> mhtml_file_;
/external/chromium_org/content/browser/indexed_db/
H A Dindexed_db_active_blob_registry.h34 storage::ShareableFileReference::FinalReleaseCallback GetFinalReleaseCallback(
H A Dindexed_db_blob_info.h20 typedef storage::ShareableFileReference::FinalReleaseCallback ReleaseCallback;
/external/chromium_org/content/browser/fileapi/
H A Dfileapi_message_filter.h51 class ShareableFileReference;
195 const scoped_refptr<storage::ShareableFileReference>& file_ref);
239 std::map<int, scoped_refptr<storage::ShareableFileReference> >
/external/chromium_org/chrome/browser/media_galleries/fileapi/
H A Ddevice_media_async_file_util.cc28 using storage::ShareableFileReference;
107 scoped_refptr<storage::ShareableFileReference> platform_file,
126 scoped_refptr<storage::ShareableFileReference> file =
127 ShareableFileReference::GetOrCreate(
129 ShareableFileReference::DELETE_ON_FINAL_RELEASE,
154 scoped_refptr<ShareableFileReference>());
H A Ditunes_file_util.h62 scoped_refptr<storage::ShareableFileReference>* file_ref) OVERRIDE;
H A Ditunes_file_util.cc301 scoped_refptr<storage::ShareableFileReference>* file_ref) {
314 *file_ref = scoped_refptr<storage::ShareableFileReference>();
403 scoped_refptr<storage::ShareableFileReference> file_ref;

Completed in 468 milliseconds

123