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

Side by Side Diff: chrome/browser/chromeos/drive/file_system_backend_delegate.h

Issue 18344013: fileapi: Rename FileSystemMountProvider to FileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROMEOS_DRIVE_MOUNT_POINT_PROVIDER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_BACKEND_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOUNT_POINT_PROVIDER_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_BACKEND_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "chrome/browser/chromeos/fileapi/cros_mount_point_provider_delegate.h" 10 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h"
11 11
12 namespace fileapi { 12 namespace fileapi {
13 class ExternalMountPoints; 13 class ExternalMountPoints;
14 } // namespace fileapi 14 } // namespace fileapi
15 15
16 namespace drive { 16 namespace drive {
17 17
18 // Delegate implementation of the some methods in CrosMountPointProvider 18 // Delegate implementation of the some methods in CrosMountPointProvider
19 // for Drive file system. 19 // for Drive file system.
20 class MountPointProviderDelegate 20 class FileSystemBackendDelegate
21 : public chromeos::CrosMountPointProviderDelegate { 21 : public chromeos::FileSystemBackendDelegate {
22 public: 22 public:
23 explicit MountPointProviderDelegate( 23 explicit FileSystemBackendDelegate(
24 fileapi::ExternalMountPoints* mount_points); 24 fileapi::ExternalMountPoints* mount_points);
25 virtual ~MountPointProviderDelegate(); 25 virtual ~FileSystemBackendDelegate();
26 26
27 // CrosMountPointProvider::Delegate overrides. 27 // CrosMountPointProvider::Delegate overrides.
28 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( 28 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil(
29 fileapi::FileSystemType type) OVERRIDE; 29 fileapi::FileSystemType type) OVERRIDE;
30 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( 30 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
31 const fileapi::FileSystemURL& url, 31 const fileapi::FileSystemURL& url,
32 int64 offset, 32 int64 offset,
33 const base::Time& expected_modification_time, 33 const base::Time& expected_modification_time,
34 fileapi::FileSystemContext* context) OVERRIDE; 34 fileapi::FileSystemContext* context) OVERRIDE;
35 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( 35 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter(
36 const fileapi::FileSystemURL& url, 36 const fileapi::FileSystemURL& url,
37 int64 offset, 37 int64 offset,
38 fileapi::FileSystemContext* context) OVERRIDE; 38 fileapi::FileSystemContext* context) OVERRIDE;
39 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( 39 virtual fileapi::FileSystemOperation* CreateFileSystemOperation(
40 const fileapi::FileSystemURL& url, 40 const fileapi::FileSystemURL& url,
41 fileapi::FileSystemContext* context, 41 fileapi::FileSystemContext* context,
42 base::PlatformFileError* error_code) OVERRIDE; 42 base::PlatformFileError* error_code) OVERRIDE;
43 43
44 private: 44 private:
45 scoped_refptr<fileapi::ExternalMountPoints> mount_points_; 45 scoped_refptr<fileapi::ExternalMountPoints> mount_points_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(MountPointProviderDelegate); 47 DISALLOW_COPY_AND_ASSIGN(FileSystemBackendDelegate);
48 }; 48 };
49 49
50 } // namespace drive 50 } // namespace drive
51 51
52 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOUNT_POINT_PROVIDER_DELEGATE_H_ 52 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698