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

Side by Side Diff: chrome/browser/local_discovery/storage/privet_filesystem_async_util.h

Issue 492693004: Delete Privet filesystem code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_ASYNC_UTIL_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_ASYNC_UTIL_H_
7
8 #include "chrome/browser/local_discovery/storage/privet_filesystem_attribute_cac he.h"
9 #include "chrome/browser/local_discovery/storage/privet_filesystem_operations.h"
10 #include "content/public/browser/browser_context.h"
11 #include "webkit/browser/fileapi/async_file_util.h"
12
13 namespace local_discovery {
14
15 class PrivetFileSystemAsyncUtil : public storage::AsyncFileUtil {
16 public:
17 explicit PrivetFileSystemAsyncUtil(content::BrowserContext* browser_context);
18 virtual ~PrivetFileSystemAsyncUtil();
19
20 virtual void CreateOrOpen(
21 scoped_ptr<storage::FileSystemOperationContext> context,
22 const storage::FileSystemURL& url,
23 int file_flags,
24 const CreateOrOpenCallback& callback) OVERRIDE;
25 virtual void EnsureFileExists(
26 scoped_ptr<storage::FileSystemOperationContext> context,
27 const storage::FileSystemURL& url,
28 const EnsureFileExistsCallback& callback) OVERRIDE;
29 virtual void CreateDirectory(
30 scoped_ptr<storage::FileSystemOperationContext> context,
31 const storage::FileSystemURL& url,
32 bool exclusive,
33 bool recursive,
34 const StatusCallback& callback) OVERRIDE;
35 virtual void GetFileInfo(
36 scoped_ptr<storage::FileSystemOperationContext> context,
37 const storage::FileSystemURL& url,
38 const GetFileInfoCallback& callback) OVERRIDE;
39 virtual void ReadDirectory(
40 scoped_ptr<storage::FileSystemOperationContext> context,
41 const storage::FileSystemURL& url,
42 const ReadDirectoryCallback& callback) OVERRIDE;
43 virtual void Touch(scoped_ptr<storage::FileSystemOperationContext> context,
44 const storage::FileSystemURL& url,
45 const base::Time& last_access_time,
46 const base::Time& last_modified_time,
47 const StatusCallback& callback) OVERRIDE;
48 virtual void Truncate(scoped_ptr<storage::FileSystemOperationContext> context,
49 const storage::FileSystemURL& url,
50 int64 length,
51 const StatusCallback& callback) OVERRIDE;
52 virtual void CopyFileLocal(
53 scoped_ptr<storage::FileSystemOperationContext> context,
54 const storage::FileSystemURL& src_url,
55 const storage::FileSystemURL& dest_url,
56 CopyOrMoveOption option,
57 const CopyFileProgressCallback& progress_callback,
58 const StatusCallback& callback) OVERRIDE;
59 virtual void MoveFileLocal(
60 scoped_ptr<storage::FileSystemOperationContext> context,
61 const storage::FileSystemURL& src_url,
62 const storage::FileSystemURL& dest_url,
63 CopyOrMoveOption option,
64 const StatusCallback& callback) OVERRIDE;
65 virtual void CopyInForeignFile(
66 scoped_ptr<storage::FileSystemOperationContext> context,
67 const base::FilePath& src_file_path,
68 const storage::FileSystemURL& dest_url,
69 const StatusCallback& callback) OVERRIDE;
70 virtual void DeleteFile(
71 scoped_ptr<storage::FileSystemOperationContext> context,
72 const storage::FileSystemURL& url,
73 const StatusCallback& callback) OVERRIDE;
74 virtual void DeleteDirectory(
75 scoped_ptr<storage::FileSystemOperationContext> context,
76 const storage::FileSystemURL& url,
77 const StatusCallback& callback) OVERRIDE;
78 virtual void DeleteRecursively(
79 scoped_ptr<storage::FileSystemOperationContext> context,
80 const storage::FileSystemURL& url,
81 const StatusCallback& callback) OVERRIDE;
82 virtual void CreateSnapshotFile(
83 scoped_ptr<storage::FileSystemOperationContext> context,
84 const storage::FileSystemURL& url,
85 const CreateSnapshotFileCallback& callback) OVERRIDE;
86
87 private:
88 PrivetFileSystemOperationFactory* operation_factory_;
89 };
90
91 } // namespace local_discovery
92
93 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_ASYNC_UTIL_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698