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

Unified Diff: content/browser/renderer_host/pepper/pepper_flash_file_message_filter.h

Issue 19723010: Pepper Message Filters: Port to use explicit permission grants in ChildProcessSecurityPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0044-write-support-remove-child-process-security-policy-bitmask-usage
Patch Set: Created 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_flash_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/pepper_flash_file_message_filter.h
diff --git a/content/browser/renderer_host/pepper/pepper_flash_file_message_filter.h b/content/browser/renderer_host/pepper/pepper_flash_file_message_filter.h
index 7931764cce96b11019971f5e314cbda99ac1195e..f89d7cf5907d262c151e8f9205abface632d8b84 100644
--- a/content/browser/renderer_host/pepper/pepper_flash_file_message_filter.h
+++ b/content/browser/renderer_host/pepper/pepper_flash_file_message_filter.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_FILE_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_FILE_MESSAGE_FILTER_H_
+#include "base/callback_forward.h"
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
@@ -40,6 +41,9 @@ class PepperFlashFileMessageFilter : public ppapi::host::ResourceMessageFilter {
static base::FilePath GetDataDirName(const base::FilePath& profile_path);
private:
+ typedef base::Callback<bool(int, const base::FilePath&)>
+ CheckPermissionsCallback;
+
virtual ~PepperFlashFileMessageFilter();
// ppapi::host::ResourceMessageFilter overrides.
@@ -51,7 +55,7 @@ class PepperFlashFileMessageFilter : public ppapi::host::ResourceMessageFilter {
int32_t OnOpenFile(ppapi::host::HostMessageContext* context,
const ppapi::PepperFilePath& path,
- int flags);
+ int pp_open_flags);
int32_t OnRenameFile(ppapi::host::HostMessageContext* context,
const ppapi::PepperFilePath& from_path,
const ppapi::PepperFilePath& to_path);
@@ -68,7 +72,7 @@ class PepperFlashFileMessageFilter : public ppapi::host::ResourceMessageFilter {
base::FilePath ValidateAndConvertPepperFilePath(
const ppapi::PepperFilePath& pepper_path,
- int flags);
+ const CheckPermissionsCallback& check_permissions_callback) const;
base::FilePath plugin_data_directory_;
int render_process_id_;
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_flash_file_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698