| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_LOADER_TEMPORARY_FILE_STREAM_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_TEMPORARY_FILE_STREAM_H_ |
| 6 #define CONTENT_BROWSER_LOADER_TEMPORARY_FILE_STREAM_H_ | 6 #define CONTENT_BROWSER_LOADER_TEMPORARY_FILE_STREAM_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/files/file.h" | 9 #include "base/files/file.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/platform_file.h" | |
| 12 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 13 | 12 |
| 14 namespace net { | 13 namespace net { |
| 15 class FileStream; | 14 class FileStream; |
| 16 } | 15 } |
| 17 | 16 |
| 18 namespace webkit_blob { | 17 namespace webkit_blob { |
| 19 class ShareableFileReference; | 18 class ShareableFileReference; |
| 20 } | 19 } |
| 21 | 20 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 37 // | 36 // |
| 38 // TODO(davidben): Juggling the net::FileStream and | 37 // TODO(davidben): Juggling the net::FileStream and |
| 39 // webkit_blob::ShareableFileReference lifetimes is a nuisance. The two should | 38 // webkit_blob::ShareableFileReference lifetimes is a nuisance. The two should |
| 40 // be tied together so the consumer need not deal with it. | 39 // be tied together so the consumer need not deal with it. |
| 41 CONTENT_EXPORT void CreateTemporaryFileStream( | 40 CONTENT_EXPORT void CreateTemporaryFileStream( |
| 42 const CreateTemporaryFileStreamCallback& callback); | 41 const CreateTemporaryFileStreamCallback& callback); |
| 43 | 42 |
| 44 } // namespace content | 43 } // namespace content |
| 45 | 44 |
| 46 #endif // CONTENT_BROWSER_LOADER_TEMPORARY_FILE_STREAM_H_ | 45 #endif // CONTENT_BROWSER_LOADER_TEMPORARY_FILE_STREAM_H_ |
| OLD | NEW |