summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_file_system_proxy.cc
diff options
context:
space:
mode:
authorsanga@chromium.org <sanga@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-07 18:34:40 +0000
committersanga@chromium.org <sanga@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-07 18:34:40 +0000
commitea505a9d49ef9770557423d2e4525d8fb91eab69 (patch)
tree7ace0236f95b3d101fd0e392d0506845c23d8223 /ppapi/proxy/ppb_file_system_proxy.cc
parent054498a7c3951d4047812ed918c06d46b3daa6ee (diff)
downloadchromium_src-ea505a9d49ef9770557423d2e4525d8fb91eab69.zip
chromium_src-ea505a9d49ef9770557423d2e4525d8fb91eab69.tar.gz
chromium_src-ea505a9d49ef9770557423d2e4525d8fb91eab69.tar.bz2
Migrating PPB_FileIO_Dev, PPB_FileRef_Dev, and PPB_FileSystem_Dev dependencies to PPB_FileIO, PPB_FileRef, and PPB_FileSystem.
Also fixed some lint errors. Review URL: http://codereview.chromium.org/7248047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91733 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_file_system_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_file_system_proxy.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/ppapi/proxy/ppb_file_system_proxy.cc b/ppapi/proxy/ppb_file_system_proxy.cc
index b95e0b9..1edf5d7 100644
--- a/ppapi/proxy/ppb_file_system_proxy.cc
+++ b/ppapi/proxy/ppb_file_system_proxy.cc
@@ -6,8 +6,8 @@
#include "base/message_loop.h"
#include "base/task.h"
-#include "ppapi/c/dev/ppb_file_system_dev.h"
#include "ppapi/c/pp_errors.h"
+#include "ppapi/c/ppb_file_system.h"
#include "ppapi/proxy/enter_proxy.h"
#include "ppapi/proxy/host_dispatcher.h"
#include "ppapi/proxy/plugin_dispatcher.h"
@@ -40,7 +40,7 @@ InterfaceProxy* CreateFileSystemProxy(Dispatcher* dispatcher,
// the host.
class FileSystem : public PluginResource, public PPB_FileSystem_API {
public:
- FileSystem(const HostResource& host_resource, PP_FileSystemType_Dev type);
+ FileSystem(const HostResource& host_resource, PP_FileSystemType type);
virtual ~FileSystem();
// ResourceObjectBase override.
@@ -49,13 +49,13 @@ class FileSystem : public PluginResource, public PPB_FileSystem_API {
// PPB_FileSystem_APi implementation.
virtual int32_t Open(int64_t expected_size,
PP_CompletionCallback callback) OVERRIDE;
- virtual PP_FileSystemType_Dev GetType() OVERRIDE;
+ virtual PP_FileSystemType GetType() OVERRIDE;
// Called when the host has responded to our open request.
void OpenComplete(int32_t result);
private:
- PP_FileSystemType_Dev type_;
+ PP_FileSystemType type_;
bool called_open_;
PP_CompletionCallback current_open_callback_;
@@ -63,7 +63,7 @@ class FileSystem : public PluginResource, public PPB_FileSystem_API {
};
FileSystem::FileSystem(const HostResource& host_resource,
- PP_FileSystemType_Dev type)
+ PP_FileSystemType type)
: PluginResource(host_resource),
type_(type),
called_open_(false),
@@ -102,7 +102,7 @@ int32_t FileSystem::Open(int64_t expected_size,
return PP_OK_COMPLETIONPENDING;
}
-PP_FileSystemType_Dev FileSystem::GetType() {
+PP_FileSystemType FileSystem::GetType() {
return type_;
}
@@ -122,7 +122,7 @@ PPB_FileSystem_Proxy::~PPB_FileSystem_Proxy() {
const InterfaceProxy::Info* PPB_FileSystem_Proxy::GetInfo() {
static const Info info = {
::ppapi::thunk::GetPPB_FileSystem_Thunk(),
- PPB_FILESYSTEM_DEV_INTERFACE,
+ PPB_FILESYSTEM_INTERFACE,
INTERFACE_ID_PPB_FILE_SYSTEM,
false,
&CreateFileSystemProxy,
@@ -133,7 +133,7 @@ const InterfaceProxy::Info* PPB_FileSystem_Proxy::GetInfo() {
// static
PP_Resource PPB_FileSystem_Proxy::CreateProxyResource(
PP_Instance instance,
- PP_FileSystemType_Dev type) {
+ PP_FileSystemType type) {
PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance);
if (!dispatcher)
return PP_ERROR_BADARGUMENT;
@@ -166,7 +166,7 @@ void PPB_FileSystem_Proxy::OnMsgCreate(PP_Instance instance,
if (enter.failed())
return;
PP_Resource resource = enter.functions()->CreateFileSystem(
- instance, static_cast<PP_FileSystemType_Dev>(type));
+ instance, static_cast<PP_FileSystemType>(type));
if (!resource)
return; // CreateInfo default constructor initializes to 0.
result->SetHostResource(instance, resource);