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

Unified Diff: content/browser/renderer_host/pepper_file_message_filter.h

Issue 6592071: Pepper/Flapper: Add an interface to do sync file ops on FileRefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/renderer
Patch Set: oops, forgot one Created 9 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 | « chrome/common/pepper_file_messages.cc ('k') | content/browser/renderer_host/pepper_file_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/pepper_file_message_filter.h
diff --git a/content/browser/renderer_host/pepper_file_message_filter.h b/content/browser/renderer_host/pepper_file_message_filter.h
index 530d9c67c051060db346195849104f836ec205b7..7fa02129819c7593dde56562c9b19eb14fb5d869 100644
--- a/content/browser/renderer_host/pepper_file_message_filter.h
+++ b/content/browser/renderer_host/pepper_file_message_filter.h
@@ -38,6 +38,8 @@ class PepperFileMessageFilter : public BrowserMessageFilter {
bool* message_was_ok);
virtual void OnDestruct() const;
+ int child_id() const { return child_id_; }
+
private:
friend class BrowserThread;
friend class DeleteTask<PepperFileMessageFilter>;
@@ -63,6 +65,14 @@ class PepperFileMessageFilter : public BrowserMessageFilter {
webkit::ppapi::DirContents* contents,
base::PlatformFileError* error);
+ // Validate and convert the Pepper file path to a "real" |FilePath|. Returns
+ // an empty |FilePath| on error.
+ FilePath ValidateAndConvertPepperFilePath(
+ const webkit::ppapi::PepperFilePath& pepper_path, int flags);
+
+ // The ID of the child process.
+ const int child_id_;
+
// The channel associated with the renderer connection. This pointer is not
// owned by this class.
IPC::Channel* channel_;
« no previous file with comments | « chrome/common/pepper_file_messages.cc ('k') | content/browser/renderer_host/pepper_file_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698