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

Unified Diff: components/filesystem/directory_impl.h

Issue 1158253002: mandoline filesystem: Rewrite using base::File. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup Created 5 years, 7 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
Index: components/filesystem/directory_impl.h
diff --git a/components/filesystem/directory_impl.h b/components/filesystem/directory_impl.h
index f06ebc29793771a9a793c0190c90f5c030b433e7..17c752f38cd3cb2fa2c024291547afdc55def8ef 100644
--- a/components/filesystem/directory_impl.h
+++ b/components/filesystem/directory_impl.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_
#define COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_
+#include "base/files/file_path.h"
#include "base/files/scoped_file.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
@@ -23,16 +24,12 @@ class DirectoryImpl : public Directory {
// Set |temp_dir| only if there's a temporary directory that should be deleted
// when this object is destroyed.
DirectoryImpl(mojo::InterfaceRequest<Directory> request,
- base::ScopedFD dir_fd,
+ base::FilePath directory_path,
scoped_ptr<base::ScopedTempDir> temp_dir);
~DirectoryImpl() override;
// |Directory| implementation:
void Read(const ReadCallback& callback) override;
- void Stat(const StatCallback& callback) override;
- void Touch(TimespecOrNowPtr atime,
- TimespecOrNowPtr mtime,
- const TouchCallback& callback) override;
void OpenFile(const mojo::String& path,
mojo::InterfaceRequest<File> file,
uint32_t open_flags,
@@ -50,7 +47,7 @@ class DirectoryImpl : public Directory {
private:
mojo::StrongBinding<Directory> binding_;
- base::ScopedFD dir_fd_;
+ base::FilePath directory_path_;
scoped_ptr<base::ScopedTempDir> temp_dir_;
DISALLOW_COPY_AND_ASSIGN(DirectoryImpl);

Powered by Google App Engine
This is Rietveld 408576698