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 CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ |
benwells
2014/08/13 05:50:47
Is this meant to be "privet"?
mtomasz
2014/08/13 07:02:09
Yep, it's the name of the protocol.
https://develo
benwells
2014/08/14 05:16:32
Huh, there you go.
| |
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
13 #include "webkit/browser/blob/file_stream_reader.h" | 13 #include "webkit/browser/blob/file_stream_reader.h" |
14 #include "webkit/browser/fileapi/external_mount_points.h" | 14 #include "webkit/browser/fileapi/external_mount_points.h" |
15 #include "webkit/browser/fileapi/file_stream_writer.h" | 15 #include "webkit/browser/fileapi/file_stream_writer.h" |
(...skipping 12 matching lines...) Expand all Loading... | |
28 // FileSystemBackend implementation. | 28 // FileSystemBackend implementation. |
29 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; | 29 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; |
30 virtual void Initialize(fileapi::FileSystemContext* context) OVERRIDE; | 30 virtual void Initialize(fileapi::FileSystemContext* context) OVERRIDE; |
31 | 31 |
32 virtual void ResolveURL(const fileapi::FileSystemURL& url, | 32 virtual void ResolveURL(const fileapi::FileSystemURL& url, |
33 fileapi::OpenFileSystemMode mode, | 33 fileapi::OpenFileSystemMode mode, |
34 const OpenFileSystemCallback& callback) OVERRIDE; | 34 const OpenFileSystemCallback& callback) OVERRIDE; |
35 | 35 |
36 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( | 36 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( |
37 fileapi::FileSystemType type) OVERRIDE; | 37 fileapi::FileSystemType type) OVERRIDE; |
38 virtual fileapi::WatcherManager* GetWatcherManager( | |
39 fileapi::FileSystemType type) OVERRIDE; | |
38 virtual fileapi::CopyOrMoveFileValidatorFactory* | 40 virtual fileapi::CopyOrMoveFileValidatorFactory* |
39 GetCopyOrMoveFileValidatorFactory( | 41 GetCopyOrMoveFileValidatorFactory( |
40 fileapi::FileSystemType type, | 42 fileapi::FileSystemType type, |
41 base::File::Error* error_code) OVERRIDE; | 43 base::File::Error* error_code) OVERRIDE; |
42 | 44 |
43 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( | 45 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( |
44 const fileapi::FileSystemURL& url, | 46 const fileapi::FileSystemURL& url, |
45 fileapi::FileSystemContext* context, | 47 fileapi::FileSystemContext* context, |
46 base::File::Error* error_code) const OVERRIDE; | 48 base::File::Error* error_code) const OVERRIDE; |
47 | 49 |
(...skipping 15 matching lines...) Expand all Loading... | |
63 | 65 |
64 private: | 66 private: |
65 // User mount points. | 67 // User mount points. |
66 scoped_refptr<fileapi::ExternalMountPoints> mount_points_; | 68 scoped_refptr<fileapi::ExternalMountPoints> mount_points_; |
67 scoped_ptr<PrivetFileSystemAsyncUtil> async_util_; | 69 scoped_ptr<PrivetFileSystemAsyncUtil> async_util_; |
68 }; | 70 }; |
69 | 71 |
70 } // namespace local_discovery | 72 } // namespace local_discovery |
71 | 73 |
72 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ | 74 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ |
OLD | NEW |