| Index: ppapi/proxy/file_io_resource.h
|
| diff --git a/ppapi/proxy/file_io_resource.h b/ppapi/proxy/file_io_resource.h
|
| index 9834c8e76bbb59e16292c60c2d0163db87e385f1..f20f1346cfb2f7b2c700ee452680be147dd0fb27 100644
|
| --- a/ppapi/proxy/file_io_resource.h
|
| +++ b/ppapi/proxy/file_io_resource.h
|
| @@ -7,12 +7,12 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include <memory>
|
| #include <string>
|
|
|
| #include "base/files/file.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| #include "ppapi/c/private/pp_file_handle.h"
|
| #include "ppapi/proxy/connection.h"
|
| #include "ppapi/proxy/plugin_resource.h"
|
| @@ -147,7 +147,7 @@ class PPAPI_PROXY_EXPORT FileIOResource
|
| scoped_refptr<FileHolder> file_holder_;
|
| int64_t offset_;
|
| int32_t bytes_to_read_;
|
| - scoped_ptr<char[]> buffer_;
|
| + std::unique_ptr<char[]> buffer_;
|
| };
|
|
|
| // Class to perform file write operations across multiple threads.
|
| @@ -155,7 +155,7 @@ class PPAPI_PROXY_EXPORT FileIOResource
|
| public:
|
| WriteOp(scoped_refptr<FileHolder> file_holder,
|
| int64_t offset,
|
| - scoped_ptr<char[]> buffer,
|
| + std::unique_ptr<char[]> buffer,
|
| int32_t bytes_to_write,
|
| bool append);
|
|
|
| @@ -169,13 +169,13 @@ class PPAPI_PROXY_EXPORT FileIOResource
|
|
|
| scoped_refptr<FileHolder> file_holder_;
|
| int64_t offset_;
|
| - scoped_ptr<char[]> buffer_;
|
| + std::unique_ptr<char[]> buffer_;
|
| int32_t bytes_to_write_;
|
| bool append_;
|
| };
|
|
|
| void OnRequestWriteQuotaComplete(int64_t offset,
|
| - scoped_ptr<char[]> buffer,
|
| + std::unique_ptr<char[]> buffer,
|
| int32_t bytes_to_write,
|
| scoped_refptr<TrackedCallback> callback,
|
| int64_t granted);
|
|
|