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

Unified Diff: components/nacl/renderer/manifest_service_channel.h

Issue 348323002: Use base::File for the OpenResourceCallback's argument. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | components/nacl/renderer/manifest_service_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/manifest_service_channel.h
diff --git a/components/nacl/renderer/manifest_service_channel.h b/components/nacl/renderer/manifest_service_channel.h
index c75b35ad00934d225e5cbafa4c876f5955e234f7..a1af5301bf226386799817bede9bf101d1f70e05 100644
--- a/components/nacl/renderer/manifest_service_channel.h
+++ b/components/nacl/renderer/manifest_service_channel.h
@@ -6,10 +6,10 @@
#define COMPONENTS_NACL_RENDERER_MANIFEST_SERVICE_CHANNEL_H_
#include "base/callback.h"
+#include "base/files/file.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
-#include "base/platform_file.h"
#include "base/process/process.h"
#include "base/synchronization/lock.h"
#include "ipc/ipc_listener.h"
@@ -28,7 +28,7 @@ namespace nacl {
class ManifestServiceChannel : public IPC::Listener {
public:
- typedef base::Callback<void(const base::PlatformFile&)> OpenResourceCallback;
+ typedef base::Callback<void(base::File)> OpenResourceCallback;
class Delegate {
public:
@@ -38,7 +38,7 @@ class ManifestServiceChannel : public IPC::Listener {
virtual void StartupInitializationComplete() = 0;
// Called when irt_open_resource() is invoked in the NaCl plugin.
- // Upon completion, callback is invoked with the platform file.
+ // Upon completion, callback is invoked with the file.
virtual void OpenResource(
const std::string& key,
const OpenResourceCallback& callback) = 0;
@@ -62,8 +62,7 @@ class ManifestServiceChannel : public IPC::Listener {
void OnStartupInitializationComplete();
void OnOpenResource(const std::string& key, IPC::Message* reply);
#if !defined(OS_WIN)
- void DidOpenResource(
- IPC::Message* reply, const base::PlatformFile& platform_file);
+ void DidOpenResource(IPC::Message* reply, base::File file);
#endif
base::Callback<void(int32_t)> connected_callback_;
« no previous file with comments | « no previous file | components/nacl/renderer/manifest_service_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698