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

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

Issue 18667002: Pass BrowserContext to drive::MountPointProviderDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_MOUNT_POINT_PROVIDER_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOUNT_POINT_PROVIDER_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOUNT_POINT_PROVIDER_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/cros_mount_point_provider_delegate.h"
11 11
12 namespace content {
13 class BrowserContext;
14 } // namespace content
15
12 namespace fileapi { 16 namespace fileapi {
13 class ExternalMountPoints; 17 class ExternalMountPoints;
14 } // namespace fileapi 18 } // namespace fileapi
15 19
16 namespace drive { 20 namespace drive {
17 21
18 // Delegate implementation of the some methods in CrosMountPointProvider 22 // Delegate implementation of the some methods in CrosMountPointProvider
19 // for Drive file system. 23 // for Drive file system.
20 class MountPointProviderDelegate 24 class MountPointProviderDelegate
21 : public chromeos::CrosMountPointProviderDelegate { 25 : public chromeos::CrosMountPointProviderDelegate {
22 public: 26 public:
27 // |browser_context| is currently used to take the ExternalMountPoints.
23 explicit MountPointProviderDelegate( 28 explicit MountPointProviderDelegate(
24 fileapi::ExternalMountPoints* mount_points); 29 content::BrowserContext* browser_context);
25 virtual ~MountPointProviderDelegate(); 30 virtual ~MountPointProviderDelegate();
26 31
27 // CrosMountPointProvider::Delegate overrides. 32 // CrosMountPointProvider::Delegate overrides.
28 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( 33 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil(
29 fileapi::FileSystemType type) OVERRIDE; 34 fileapi::FileSystemType type) OVERRIDE;
30 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( 35 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
31 const fileapi::FileSystemURL& url, 36 const fileapi::FileSystemURL& url,
32 int64 offset, 37 int64 offset,
33 const base::Time& expected_modification_time, 38 const base::Time& expected_modification_time,
34 fileapi::FileSystemContext* context) OVERRIDE; 39 fileapi::FileSystemContext* context) OVERRIDE;
35 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( 40 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter(
36 const fileapi::FileSystemURL& url, 41 const fileapi::FileSystemURL& url,
37 int64 offset, 42 int64 offset,
38 fileapi::FileSystemContext* context) OVERRIDE; 43 fileapi::FileSystemContext* context) OVERRIDE;
39 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( 44 virtual fileapi::FileSystemOperation* CreateFileSystemOperation(
40 const fileapi::FileSystemURL& url, 45 const fileapi::FileSystemURL& url,
41 fileapi::FileSystemContext* context, 46 fileapi::FileSystemContext* context,
42 base::PlatformFileError* error_code) OVERRIDE; 47 base::PlatformFileError* error_code) OVERRIDE;
43 48
44 private: 49 private:
45 scoped_refptr<fileapi::ExternalMountPoints> mount_points_; 50 scoped_refptr<fileapi::ExternalMountPoints> mount_points_;
46 51
47 DISALLOW_COPY_AND_ASSIGN(MountPointProviderDelegate); 52 DISALLOW_COPY_AND_ASSIGN(MountPointProviderDelegate);
48 }; 53 };
49 54
50 } // namespace drive 55 } // namespace drive
51 56
52 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOUNT_POINT_PROVIDER_DELEGATE_H_ 57 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOUNT_POINT_PROVIDER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698