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

Unified Diff: net/disk_cache/file.h

Issue 8843: Add write and read/write support to FileStream (renamed from FileInputStream)... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « net/disk_cache/disk_cache_test_util.cc ('k') | net/disk_cache/file_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/file.h
===================================================================
--- net/disk_cache/file.h (revision 4450)
+++ net/disk_cache/file.h (working copy)
@@ -9,8 +9,8 @@
#include <string>
+#include "base/platform_file.h"
#include "base/ref_counted.h"
-#include "net/disk_cache/os_file.h"
namespace disk_cache {
@@ -35,14 +35,14 @@
// Initializes the object to use the passed in file instead of opening it with
// the Init() call. No asynchronous operations can be performed with this
// object.
- explicit File(OSFile file);
+ explicit File(base::PlatformFile file);
// Initializes the object to point to a given file. The file must aready exist
// on disk, and allow shared read and write.
bool Init(const std::wstring& name);
// Returns the handle or file descriptor.
- OSFile os_file() const;
+ base::PlatformFile platform_file() const;
// Returns true if the file was opened properly.
bool IsValid() const;
@@ -78,8 +78,8 @@
private:
bool init_;
bool mixed_;
- OSFile os_file_; // Regular, asynchronous IO handle.
- OSFile sync_os_file_; // Synchronous IO hanlde.
+ base::PlatformFile platform_file_; // Regular, asynchronous IO handle.
+ base::PlatformFile sync_platform_file_; // Synchronous IO handle.
DISALLOW_COPY_AND_ASSIGN(File);
};
« no previous file with comments | « net/disk_cache/disk_cache_test_util.cc ('k') | net/disk_cache/file_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698