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

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

Issue 252583007: Replace FileUtilProxy with FileProxy in renderer_host/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments Created 6 years, 7 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 | « base/files/file_proxy_unittest.cc ('k') | content/browser/renderer_host/pepper/pepper_file_io_host.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_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 9d729fe67acab07f40c2a0aa81e96c5e8af550a4..ecb7d22ed16dfb8f5718abbeca6c3b342e236e2f 100644
--- a/content/browser/renderer_host/pepper/pepper_file_io_host.h
+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "base/files/file.h"
+#include "base/files/file_proxy.h"
#include "base/memory/weak_ptr.h"
#include "base/platform_file.h"
#include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h"
@@ -84,6 +85,9 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
base::PassPlatformFile file,
bool unused_created);
+ void OnOpenProxyCallback(ppapi::host::ReplyMessageContext reply_context,
+ base::File::Error error_code);
+
void GotUIThreadStuffForInternalFileSystems(
ppapi::host::ReplyMessageContext reply_context,
int platform_file_flags,
@@ -95,7 +99,7 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
void GotResolvedRenderProcessId(
ppapi::host::ReplyMessageContext reply_context,
base::FilePath path,
- int platform_file_flags,
+ int file_flags,
base::ProcessId resolved_render_process_id);
void DidOpenQuotaFile(ppapi::host::ReplyMessageContext reply_context,
@@ -119,7 +123,7 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
int render_process_id_;
base::ProcessId resolved_render_process_id_;
- base::PlatformFile file_;
+ base::FileProxy file_;
int32_t open_flags_;
// The file system type specified in the Open() call. This will be
@@ -137,8 +141,6 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
ppapi::FileIOStateManager state_manager_;
- scoped_refptr<base::MessageLoopProxy> file_message_loop_;
-
base::WeakPtrFactory<PepperFileIOHost> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost);
« no previous file with comments | « base/files/file_proxy_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