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_; |