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

Unified Diff: content/browser/download/base_file.h

Issue 7646025: Detect file system errors during downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed namespace for MockFileStream. Created 9 years, 4 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 | « chrome/browser/download/download_manager_unittest.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/base_file.h
diff --git a/content/browser/download/base_file.h b/content/browser/download/base_file.h
index d07fb1d561eab8cc8598c49258fc077bf26255d2..ff119d4c7403bf99357d612ab9a54ca145eded86 100644
--- a/content/browser/download/base_file.h
+++ b/content/browser/download/base_file.h
@@ -65,6 +65,7 @@ class BaseFile {
virtual std::string DebugString() const;
protected:
+ virtual void CreateFileStream(); // For testing.
bool Open();
void Close();
@@ -72,6 +73,9 @@ class BaseFile {
FilePath full_path_;
private:
+ friend class BaseFileTest;
+ friend class DownloadFileWithMockStream;
+
static const size_t kSha256HashLen = 32;
// Source URL for the file being downloaded.
« no previous file with comments | « chrome/browser/download/download_manager_unittest.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698