diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 05:12:33 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 05:12:33 +0000 |
commit | a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e (patch) | |
tree | bdd4dac76e6034ef6cf33450e203269a715ea0e6 /net/base/file_stream_context.h | |
parent | 8bc574c57115e9ffd0169f33131c0865997dcb35 (diff) | |
download | chromium_src-a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e.zip chromium_src-a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e.tar.gz chromium_src-a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e.tar.bz2 |
Add FilePath to base namespace.
This updates headers that forward-declare it and a few random places to use the namespace explicitly. There us a using declaration in file_path.h that makes the rest compile, which we can do in future passes.
Review URL: https://codereview.chromium.org/12163003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/file_stream_context.h')
-rw-r--r-- | net/base/file_stream_context.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net/base/file_stream_context.h b/net/base/file_stream_context.h index 244c25f..42fc0eb 100644 --- a/net/base/file_stream_context.h +++ b/net/base/file_stream_context.h @@ -39,7 +39,9 @@ #include <errno.h> #endif +namespace base { class FilePath; +} namespace net { @@ -97,10 +99,10 @@ class FileStream::Context { // not closed yet. void Orphan(); - void OpenAsync(const FilePath& path, + void OpenAsync(const base::FilePath& path, int open_flags, const CompletionCallback& callback); - int OpenSync(const FilePath& path, int open_flags); + int OpenSync(const base::FilePath& path, int open_flags); void CloseSync(); @@ -137,9 +139,9 @@ class FileStream::Context { // Map system error into network error code and log it with |bound_net_log_|. int RecordAndMapError(int error, FileErrorSource source) const; - void BeginOpenEvent(const FilePath& path); + void BeginOpenEvent(const base::FilePath& path); - OpenResult OpenFileImpl(const FilePath& path, int open_flags); + OpenResult OpenFileImpl(const base::FilePath& path, int open_flags); int ProcessOpenError(int error_code); void OnOpenCompleted(const CompletionCallback& callback, OpenResult result); |