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

Unified Diff: net/base/file_stream.h

Issue 647883002: git cl format the final third of the net/base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: net/base/file_stream.h
diff --git a/net/base/file_stream.h b/net/base/file_stream.h
index 89db65e15b5ae49e50de78874e64c3babf7df640..f564ea12a22c32f174faadadd786c4e073bf09a5 100644
--- a/net/base/file_stream.h
+++ b/net/base/file_stream.h
@@ -50,7 +50,8 @@ class NET_EXPORT FileStream {
// automatically closed when FileStream is destructed in an asynchronous
// manner (i.e. the file stream is closed in the background but you don't
// know when).
- virtual int Open(const base::FilePath& path, int open_flags,
+ virtual int Open(const base::FilePath& path,
+ int open_flags,
const CompletionCallback& callback);
// Returns ERR_IO_PENDING and closes the file asynchronously, calling
@@ -68,7 +69,8 @@ class NET_EXPORT FileStream {
// relative to the start of the file. Otherwise, an error code is returned.
// It is invalid to request any asynchronous operations while there is an
// in-flight asynchronous operation.
- virtual int Seek(base::File::Whence whence, int64 offset,
+ virtual int Seek(base::File::Whence whence,
+ int64 offset,
const Int64CompletionCallback& callback);
// Call this method to read data from the current stream position
@@ -91,7 +93,8 @@ class NET_EXPORT FileStream {
// in-flight asynchronous operation.
//
// This method must not be called if the stream was opened WRITE_ONLY.
- virtual int Read(IOBuffer* buf, int buf_len,
+ virtual int Read(IOBuffer* buf,
+ int buf_len,
const CompletionCallback& callback);
// Call this method to write data at the current stream position
@@ -116,7 +119,8 @@ class NET_EXPORT FileStream {
// This method must not be called if the stream was opened READ_ONLY.
//
// Zero byte writes are not allowed.
- virtual int Write(IOBuffer* buf, int buf_len,
+ virtual int Write(IOBuffer* buf,
+ int buf_len,
const CompletionCallback& callback);
// Forces out a filesystem sync on this file to make sure that the file was

Powered by Google App Engine
This is Rietveld 408576698