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

Side by Side Diff: webkit/fileapi/file_system_file_stream_reader.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_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "webkit/blob/file_stream_reader.h" 12 #include "webkit/blob/file_stream_reader.h"
13 #include "webkit/blob/shareable_file_reference.h" 13 #include "webkit/blob/shareable_file_reference.h"
14 #include "webkit/fileapi/file_system_url.h" 14 #include "webkit/fileapi/file_system_url.h"
15 #include "webkit/storage/webkit_storage_export.h" 15 #include "webkit/storage/webkit_storage_export.h"
16 16
17 namespace base {
17 class FilePath; 18 class FilePath;
18
19 namespace base {
20 class SequencedTaskRunner; 19 class SequencedTaskRunner;
21 } 20 }
22 21
23 namespace webkit_blob { 22 namespace webkit_blob {
24 class LocalFileStreamReader; 23 class LocalFileStreamReader;
25 } 24 }
26 25
27 namespace fileapi { 26 namespace fileapi {
28 27
29 class FileSystemContext; 28 class FileSystemContext;
(...skipping 23 matching lines...) Expand all
53 const net::Int64CompletionCallback& callback) OVERRIDE; 52 const net::Int64CompletionCallback& callback) OVERRIDE;
54 53
55 private: 54 private:
56 int CreateSnapshot(const base::Closure& callback, 55 int CreateSnapshot(const base::Closure& callback,
57 const net::CompletionCallback& error_callback); 56 const net::CompletionCallback& error_callback);
58 void DidCreateSnapshot( 57 void DidCreateSnapshot(
59 const base::Closure& callback, 58 const base::Closure& callback,
60 const net::CompletionCallback& error_callback, 59 const net::CompletionCallback& error_callback,
61 base::PlatformFileError file_error, 60 base::PlatformFileError file_error,
62 const base::PlatformFileInfo& file_info, 61 const base::PlatformFileInfo& file_info,
63 const FilePath& platform_path, 62 const base::FilePath& platform_path,
64 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); 63 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
65 64
66 scoped_refptr<FileSystemContext> file_system_context_; 65 scoped_refptr<FileSystemContext> file_system_context_;
67 FileSystemURL url_; 66 FileSystemURL url_;
68 const int64 initial_offset_; 67 const int64 initial_offset_;
69 const base::Time expected_modification_time_; 68 const base::Time expected_modification_time_;
70 scoped_ptr<webkit_blob::LocalFileStreamReader> local_file_reader_; 69 scoped_ptr<webkit_blob::LocalFileStreamReader> local_file_reader_;
71 scoped_refptr<webkit_blob::ShareableFileReference> snapshot_ref_; 70 scoped_refptr<webkit_blob::ShareableFileReference> snapshot_ref_;
72 bool has_pending_create_snapshot_; 71 bool has_pending_create_snapshot_;
73 base::WeakPtrFactory<FileSystemFileStreamReader> weak_factory_; 72 base::WeakPtrFactory<FileSystemFileStreamReader> weak_factory_;
74 73
75 DISALLOW_COPY_AND_ASSIGN(FileSystemFileStreamReader); 74 DISALLOW_COPY_AND_ASSIGN(FileSystemFileStreamReader);
76 }; 75 };
77 76
78 } // namespace fileapi 77 } // namespace fileapi
79 78
80 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_ 79 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_directory_database_unittest.cc ('k') | webkit/fileapi/file_system_file_stream_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698