Index: content/browser/fileapi/fileapi_message_filter.h |
diff --git a/content/browser/fileapi/fileapi_message_filter.h b/content/browser/fileapi/fileapi_message_filter.h |
index bd6dba4e32b96c6efe004b4e94985a4108643286..c7f49e5deac4948ab0e2487f334813dbf3c04d65 100644 |
--- a/content/browser/fileapi/fileapi_message_filter.h |
+++ b/content/browser/fileapi/fileapi_message_filter.h |
@@ -8,7 +8,7 @@ |
#include <set> |
#include <string> |
-#include "base/basictypes.h" |
+#include "base/callback.h" |
#include "base/file_util_proxy.h" |
#include "base/hash_tables.h" |
#include "base/id_map.h" |
@@ -148,12 +148,18 @@ class FileAPIMessageFilter : public content::BrowserMessageFilter { |
const GURL& root); |
void DidCreateSnapshot( |
int request_id, |
- const GURL& blob_url, |
+ const base::Callback<void(const FilePath&)>& register_file_callback, |
base::PlatformFileError result, |
const base::PlatformFileInfo& info, |
const 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. |
+ void RegisterFileAsBlob(const GURL& blob_url, |
+ const FilePath& virtual_path, |
+ const FilePath& platform_path); |
+ |
// Checks renderer's access permissions for single file. |
bool HasPermissionsForFile(const fileapi::FileSystemURL& url, |
int permissions, |