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

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

Issue 2124373002: [PPAPI] Quarantine files that are writeable by a Pepper plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@consolidate-file-metadata
Patch Set: Address comments. Created 4 years 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/renderer_host/pepper/pepper_file_io_host.h
diff --git a/content/browser/renderer_host/pepper/pepper_file_io_host.h b/content/browser/renderer_host/pepper/pepper_file_io_host.h
index cc214ec27713f3d98880deb139a38d4a5905f446..0e8d47fb2b4e478e8e9c3fcfc202ed6e0363e2d0 100644
--- a/content/browser/renderer_host/pepper/pepper_file_io_host.h
+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.h
@@ -15,6 +15,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h"
+#include "content/public/common/quarantine.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_platform_file.h"
#include "ppapi/c/pp_file_info.h"
@@ -82,8 +83,16 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
ppapi::host::ReplyMessageContext reply_context,
base::File::Error error_code);
- void OnOpenProxyCallback(ppapi::host::ReplyMessageContext reply_context,
- base::File::Error error_code);
+ void OnLocalFileOpened(ppapi::host::ReplyMessageContext reply_context,
+ const base::FilePath& path,
+ base::File::Error error_code);
+
+ void OnLocalFileQuarantined(ppapi::host::ReplyMessageContext reply_context,
+ const base::FilePath& path,
+ QuarantineFileResult quarantine_result);
+
+ void SendFileOpenReply(ppapi::host::ReplyMessageContext reply_context,
+ base::File::Error error_code);
void GotUIThreadStuffForInternalFileSystems(
ppapi::host::ReplyMessageContext reply_context,
« no previous file with comments | « content/browser/download/quarantine_win_unittest.cc ('k') | content/browser/renderer_host/pepper/pepper_file_io_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698