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

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

Issue 10821096: Use the virtual path to set the blob's mime type for CreateSnapshotFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
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,
« no previous file with comments | « no previous file | content/browser/fileapi/fileapi_message_filter.cc » ('j') | content/browser/fileapi/fileapi_message_filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698