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

Unified Diff: content/browser/fileapi/fileapi_message_filter.h

Issue 12084077: FileSystem mods: Changes to snapshot file creation to remove dependencies on blobs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/fileapi/fileapi_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/fileapi/fileapi_message_filter.h
===================================================================
--- content/browser/fileapi/fileapi_message_filter.h (revision 182366)
+++ content/browser/fileapi/fileapi_message_filter.h (working copy)
@@ -5,6 +5,7 @@
#ifndef CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_
+#include <map>
#include <set>
#include <string>
@@ -115,9 +116,13 @@
void OnSyncGetPlatformPath(const GURL& path,
base::FilePath* platform_path);
void OnCreateSnapshotFile(int request_id,
- const GURL& blob_url,
const GURL& path);
+ void OnDidReceiveSnapshotFile(int request_id);
+ void OnCreateSnapshotFile_Deprecated(int request_id,
+ const GURL& blob_url,
+ const GURL& path);
+
void OnStartBuildingBlob(const GURL& url);
void OnAppendBlobDataItem(const GURL& url,
const webkit_blob::BlobData::Item& item);
@@ -155,14 +160,21 @@
base::PlatformFileError result);
void DidCreateSnapshot(
int request_id,
+ const fileapi::FileSystemURL& url,
+ base::PlatformFileError result,
+ const base::PlatformFileInfo& info,
+ const base::FilePath& platform_path,
+ const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
+
+ void DidCreateSnapshot_Deprecated(
+ int request_id,
const base::Callback<void(const base::FilePath&)>& register_file_callback,
base::PlatformFileError result,
const base::PlatformFileInfo& info,
const base::FilePath& platform_path,
const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
-
// Registers the given file pointed by |virtual_path| and backed by
- // |platform_path| as the |blob_url|. Called by DidCreateSnapshot.
+ // |platform_path| as the |blob_url|. Called by DidCreateSnapshot_Deprecated.
void RegisterFileAsBlob(const GURL& blob_url,
const fileapi::FileSystemURL& url,
const base::FilePath& platform_path);
@@ -196,6 +208,11 @@
// all of them when the renderer process dies.
base::hash_set<std::string> blob_urls_;
+ // Used to keep snapshot files alive while a DidCreateSnapshot
+ // is being sent to the renderer.
+ std::map<int, scoped_refptr<webkit_blob::ShareableFileReference> >
+ in_transit_snapshot_files_;
+
// Keep track of file system file URLs opened by OpenFile() in this process.
// Need to close all of them when the renderer process dies.
std::multiset<GURL> open_filesystem_urls_;
« no previous file with comments | « no previous file | content/browser/fileapi/fileapi_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698