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

Side by Side Diff: webkit/chromeos/fileapi/remote_file_stream_writer.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_ 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_
6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_ 6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual int Flush(const net::CompletionCallback& callback) OVERRIDE; 45 virtual int Flush(const net::CompletionCallback& callback) OVERRIDE;
46 46
47 private: 47 private:
48 // Callback function to do the continuation of the work of the first Write() 48 // Callback function to do the continuation of the work of the first Write()
49 // call, which tries to open the local copy of the file before writing. 49 // call, which tries to open the local copy of the file before writing.
50 void OnFileOpened( 50 void OnFileOpened(
51 net::IOBuffer* buf, 51 net::IOBuffer* buf,
52 int buf_len, 52 int buf_len,
53 const net::CompletionCallback& callback, 53 const net::CompletionCallback& callback,
54 base::PlatformFileError open_result, 54 base::PlatformFileError open_result,
55 const FilePath& local_path, 55 const base::FilePath& local_path,
56 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); 56 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
57 // Calls |pending_cancel_callback_|, assuming it is non-null. 57 // Calls |pending_cancel_callback_|, assuming it is non-null.
58 void InvokePendingCancelCallback(int result); 58 void InvokePendingCancelCallback(int result);
59 59
60 scoped_refptr<RemoteFileSystemProxyInterface> remote_filesystem_; 60 scoped_refptr<RemoteFileSystemProxyInterface> remote_filesystem_;
61 const FileSystemURL url_; 61 const FileSystemURL url_;
62 const int64 initial_offset_; 62 const int64 initial_offset_;
63 scoped_ptr<fileapi::FileStreamWriter> local_file_writer_; 63 scoped_ptr<fileapi::FileStreamWriter> local_file_writer_;
64 scoped_refptr<webkit_blob::ShareableFileReference> file_ref_; 64 scoped_refptr<webkit_blob::ShareableFileReference> file_ref_;
65 bool has_pending_create_snapshot_; 65 bool has_pending_create_snapshot_;
66 net::CompletionCallback pending_cancel_callback_; 66 net::CompletionCallback pending_cancel_callback_;
67 67
68 base::WeakPtrFactory<RemoteFileStreamWriter> weak_factory_; 68 base::WeakPtrFactory<RemoteFileStreamWriter> weak_factory_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(RemoteFileStreamWriter); 70 DISALLOW_COPY_AND_ASSIGN(RemoteFileStreamWriter);
71 }; 71 };
72 72
73 } // namespace fileapi 73 } // namespace fileapi
74 74
75 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_ 75 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_
OLDNEW
« no previous file with comments | « webkit/chromeos/fileapi/memory_file_util_unittest.cc ('k') | webkit/chromeos/fileapi/remote_file_stream_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698