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

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

Issue 452043003: [ew] Add basic classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up. Created 6 years, 4 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 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_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" 10 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h"
11 11
12 namespace fileapi { 12 namespace fileapi {
13 class AsyncFileUtil; 13 class AsyncFileUtil;
14 class FileSystemContext;
15 class FileSystemURL;
16 class FileStreamWriter;
17 class WatcherManager;
14 } // namespace fileapi 18 } // namespace fileapi
15 19
20 namespace webkit_blob {
21 class FileStreamReader;
22 } // namespace webkit_blob
23
16 namespace drive { 24 namespace drive {
17 25
18 // Delegate implementation of the some methods in chromeos::FileSystemBackend 26 // Delegate implementation of the some methods in chromeos::FileSystemBackend
19 // for Drive file system. 27 // for Drive file system.
20 class FileSystemBackendDelegate : public chromeos::FileSystemBackendDelegate { 28 class FileSystemBackendDelegate : public chromeos::FileSystemBackendDelegate {
21 public: 29 public:
22 FileSystemBackendDelegate(); 30 FileSystemBackendDelegate();
23 virtual ~FileSystemBackendDelegate(); 31 virtual ~FileSystemBackendDelegate();
24 32
25 // FileSystemBackend::Delegate overrides. 33 // FileSystemBackend::Delegate overrides.
26 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( 34 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil(
27 fileapi::FileSystemType type) OVERRIDE; 35 fileapi::FileSystemType type) OVERRIDE;
28 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( 36 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
29 const fileapi::FileSystemURL& url, 37 const fileapi::FileSystemURL& url,
30 int64 offset, 38 int64 offset,
31 const base::Time& expected_modification_time, 39 const base::Time& expected_modification_time,
32 fileapi::FileSystemContext* context) OVERRIDE; 40 fileapi::FileSystemContext* context) OVERRIDE;
33 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( 41 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter(
34 const fileapi::FileSystemURL& url, 42 const fileapi::FileSystemURL& url,
35 int64 offset, 43 int64 offset,
36 fileapi::FileSystemContext* context) OVERRIDE; 44 fileapi::FileSystemContext* context) OVERRIDE;
45 virtual fileapi::WatcherManager* GetWatcherManager(
46 const fileapi::FileSystemURL& url) OVERRIDE;
37 47
38 private: 48 private:
39 scoped_ptr<fileapi::AsyncFileUtil> async_file_util_; 49 scoped_ptr<fileapi::AsyncFileUtil> async_file_util_;
40 50
41 DISALLOW_COPY_AND_ASSIGN(FileSystemBackendDelegate); 51 DISALLOW_COPY_AND_ASSIGN(FileSystemBackendDelegate);
42 }; 52 };
43 53
44 } // namespace drive 54 } // namespace drive
45 55
46 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 56 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698