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

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

Issue 10541113: Notify CloseFile from Pepper to FileSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added DLOG, DCHECK. Created 8 years, 6 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 88b8197dd34a34ab79d099d973420bb09372d523..278fdb0d68a0137464911919b2ed1b137def8a58 100644
--- a/content/browser/fileapi/fileapi_message_filter.h
+++ b/content/browser/fileapi/fileapi_message_filter.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_
#include <string>
+#include <set>
kinuko 2012/06/26 11:13:36 nit: not alphabetically sorted
kinaba 2012/06/27 03:47:42 Done.
#include "base/basictypes.h"
#include "base/file_util_proxy.h"
@@ -102,6 +103,7 @@ class FileAPIMessageFilter : public content::BrowserMessageFilter {
const base::Time& last_modified_time);
void OnCancel(int request_id, int request_to_cancel);
void OnOpenFile(int request_id, const GURL& path, int file_flags);
+ void OnNotifyCloseFile(const GURL& path);
void OnWillUpdate(const GURL& path);
void OnDidUpdate(const GURL& path, int64 delta);
void OnSyncGetPlatformPath(const GURL& path,
@@ -131,6 +133,7 @@ class FileAPIMessageFilter : public content::BrowserMessageFilter {
const std::vector<base::FileUtilProxy::Entry>& entries,
bool has_more);
void DidOpenFile(int request_id,
+ const GURL& path,
base::PlatformFileError result,
base::PlatformFile file,
base::ProcessHandle peer_handle);
@@ -179,6 +182,10 @@ class FileAPIMessageFilter : public content::BrowserMessageFilter {
// all of them when the renderer process dies.
base::hash_set<std::string> blob_urls_;
+ // 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_;
+
DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter);
};

Powered by Google App Engine
This is Rietveld 408576698