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

Unified Diff: ppapi/proxy/file_io_resource.h

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr Created 4 years, 8 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 | « ppapi/proxy/dispatcher.h ('k') | ppapi/proxy/file_io_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ppapi/proxy/dispatcher.h ('k') | ppapi/proxy/file_io_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698