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

Unified Diff: media/base/media_file_checker.h

Issue 109273002: Convert base::MemoryMappedFile to use File instead of PlatformFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Posix GetSize Created 7 years 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
Index: media/base/media_file_checker.h
diff --git a/media/base/media_file_checker.h b/media/base/media_file_checker.h
index 6e8fc9f285fc7f97dd2a2cc14151078a1190aab6..8ed191a7c8ed0a9b04d34370547629ea25432e92 100644
--- a/media/base/media_file_checker.h
+++ b/media/base/media_file_checker.h
@@ -6,8 +6,7 @@
#define MEDIA_BASE_MEDIA_FILE_CHECKER_H_
#include "base/basictypes.h"
-#include "base/files/scoped_platform_file_closer.h"
-#include "base/platform_file.h"
+#include "base/files/file.h"
#include "media/base/media_export.h"
namespace base {
@@ -21,7 +20,7 @@ namespace media {
// file safe to use in the browser process.
class MEDIA_EXPORT MediaFileChecker {
public:
- explicit MediaFileChecker(const base::PlatformFile& file);
+ explicit MediaFileChecker(base::File file);
~MediaFileChecker();
// After opening |file|, up to |check_time| amount of wall-clock time is spent
@@ -30,8 +29,7 @@ class MEDIA_EXPORT MediaFileChecker {
bool Start(base::TimeDelta check_time);
private:
- base::PlatformFile file_;
- base::ScopedPlatformFileCloser file_closer_;
cpu_(ooo_6.6-7.5) 2013/12/28 01:40:52 33 + 34 above look awful. Shame on us.
+ base::File file_;
DISALLOW_COPY_AND_ASSIGN(MediaFileChecker);
};

Powered by Google App Engine
This is Rietveld 408576698