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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system_proxy.h

Issue 10830211: Revert 150436 - gdata: Remove hide_hosted_documents from ReadDirectoryCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_
7 7
8 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" 8 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
9 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" 9 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h"
10 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" 10 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h"
11 11
12 namespace fileapi { 12 namespace fileapi {
13 class FileSystemURL; 13 class FileSystemURL;
14 } 14 }
15 15
16 class Profile;
17
18 namespace gdata { 16 namespace gdata {
19 17
20 class GDataEntryProto; 18 class GDataEntryProto;
21 class GDataFileSystemInterface; 19 class GDataFileSystemInterface;
22 20
23 // Implementation of File API's remote file system proxy for GData file system. 21 // Implementation of File API's remote file system proxy for GData file system.
24 class GDataFileSystemProxy : public fileapi::RemoteFileSystemProxyInterface { 22 class GDataFileSystemProxy : public fileapi::RemoteFileSystemProxyInterface {
25 public: 23 public:
26 // |file_system| is the GDataFileSystem instance owned by GDataSystemService. 24 // |file_system| is the GDataFileSystem instance owned by GDataSystemService.
27 explicit GDataFileSystemProxy(GDataFileSystemInterface* file_system, 25 explicit GDataFileSystemProxy(GDataFileSystemInterface* file_system);
28 Profile* profile);
29 26
30 // fileapi::RemoteFileSystemProxyInterface overrides. 27 // fileapi::RemoteFileSystemProxyInterface overrides.
31 virtual void GetFileInfo( 28 virtual void GetFileInfo(
32 const fileapi::FileSystemURL& url, 29 const fileapi::FileSystemURL& url,
33 const fileapi::FileSystemOperationInterface::GetMetadataCallback& 30 const fileapi::FileSystemOperationInterface::GetMetadataCallback&
34 callback) OVERRIDE; 31 callback) OVERRIDE;
35 virtual void Copy( 32 virtual void Copy(
36 const fileapi::FileSystemURL& src_url, 33 const fileapi::FileSystemURL& src_url,
37 const fileapi::FileSystemURL& dest_url, 34 const fileapi::FileSystemURL& dest_url,
38 const fileapi::FileSystemOperationInterface::StatusCallback& callback) 35 const fileapi::FileSystemOperationInterface::StatusCallback& callback)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 callback, 110 callback,
114 GDataFileError error, 111 GDataFileError error,
115 scoped_ptr<GDataEntryProto> entry_proto); 112 scoped_ptr<GDataEntryProto> entry_proto);
116 113
117 // Helper callback for relaying reply for ReadDirectory() to the calling 114 // Helper callback for relaying reply for ReadDirectory() to the calling
118 // thread. 115 // thread.
119 void OnReadDirectory( 116 void OnReadDirectory(
120 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback& 117 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback&
121 callback, 118 callback,
122 GDataFileError error, 119 GDataFileError error,
120 bool hide_hosted_documents,
123 scoped_ptr<gdata::GDataEntryProtoVector> proto_entries); 121 scoped_ptr<gdata::GDataEntryProtoVector> proto_entries);
124 122
125 // Helper callback for relaying reply for CreateWritableSnapshotFile() to 123 // Helper callback for relaying reply for CreateWritableSnapshotFile() to
126 // the calling thread. 124 // the calling thread.
127 void OnCreateWritableSnapshotFile( 125 void OnCreateWritableSnapshotFile(
128 const FilePath& virtual_path, 126 const FilePath& virtual_path,
129 const fileapi::WritableSnapshotFile& callback, 127 const fileapi::WritableSnapshotFile& callback,
130 GDataFileError result, 128 GDataFileError result,
131 const FilePath& local_path); 129 const FilePath& local_path);
132 130
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 base::ProcessHandle peer_handle, 176 base::ProcessHandle peer_handle,
179 const fileapi::FileSystemOperationInterface::OpenFileCallback& callback, 177 const fileapi::FileSystemOperationInterface::OpenFileCallback& callback,
180 base::PlatformFile* platform_file, 178 base::PlatformFile* platform_file,
181 base::PlatformFileError* truncate_result); 179 base::PlatformFileError* truncate_result);
182 180
183 // GDataFileSystem is owned by Profile, which outlives GDataFileSystemProxy, 181 // GDataFileSystem is owned by Profile, which outlives GDataFileSystemProxy,
184 // which is owned by CrosMountPointProvider (i.e. by the time Profile is 182 // which is owned by CrosMountPointProvider (i.e. by the time Profile is
185 // removed, the file manager is already gone). Hence it's safe to use this as 183 // removed, the file manager is already gone). Hence it's safe to use this as
186 // a raw pointer. 184 // a raw pointer.
187 GDataFileSystemInterface* file_system_; 185 GDataFileSystemInterface* file_system_;
188
189 // Profile associated with the file system proxy.
190 Profile* profile_; // Not owned.
191 }; 186 };
192 187
193 } // namespace chromeos 188 } // namespace chromeos
194 189
195 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ 190 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_interface.h ('k') | chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698