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

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

Issue 145973016: Support cross-profile copy between Chrome OS Google Drive folders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 6 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 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 content {
13 class BrowserContext;
14 } // namespace content
15
16 namespace fileapi { 12 namespace fileapi {
17 class AsyncFileUtil; 13 class AsyncFileUtil;
18 } // namespace fileapi 14 } // namespace fileapi
19 15
20 namespace drive { 16 namespace drive {
21 17
22 // Delegate implementation of the some methods in chromeos::FileSystemBackend 18 // Delegate implementation of the some methods in chromeos::FileSystemBackend
23 // for Drive file system. 19 // for Drive file system.
24 class FileSystemBackendDelegate : public chromeos::FileSystemBackendDelegate { 20 class FileSystemBackendDelegate : public chromeos::FileSystemBackendDelegate {
25 public: 21 public:
26 // |browser_context| is used to obtain |profile_id_|. 22 FileSystemBackendDelegate();
27 explicit FileSystemBackendDelegate(content::BrowserContext* browser_context);
28 virtual ~FileSystemBackendDelegate(); 23 virtual ~FileSystemBackendDelegate();
29 24
30 // FileSystemBackend::Delegate overrides. 25 // FileSystemBackend::Delegate overrides.
31 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( 26 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil(
32 fileapi::FileSystemType type) OVERRIDE; 27 fileapi::FileSystemType type) OVERRIDE;
33 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( 28 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
34 const fileapi::FileSystemURL& url, 29 const fileapi::FileSystemURL& url,
35 int64 offset, 30 int64 offset,
36 const base::Time& expected_modification_time, 31 const base::Time& expected_modification_time,
37 fileapi::FileSystemContext* context) OVERRIDE; 32 fileapi::FileSystemContext* context) OVERRIDE;
38 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( 33 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter(
39 const fileapi::FileSystemURL& url, 34 const fileapi::FileSystemURL& url,
40 int64 offset, 35 int64 offset,
41 fileapi::FileSystemContext* context) OVERRIDE; 36 fileapi::FileSystemContext* context) OVERRIDE;
42 37
43 private: 38 private:
44 // The profile for processing Drive accesses. Should not be NULL.
45 void* profile_id_;
46 scoped_ptr<fileapi::AsyncFileUtil> async_file_util_; 39 scoped_ptr<fileapi::AsyncFileUtil> async_file_util_;
47 40
48 DISALLOW_COPY_AND_ASSIGN(FileSystemBackendDelegate); 41 DISALLOW_COPY_AND_ASSIGN(FileSystemBackendDelegate);
49 }; 42 };
50 43
51 } // namespace drive 44 } // namespace drive
52 45
53 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 46 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698