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

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

Issue 10836354: Rename GData* to Drive* in gdata.proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. 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 namespace gdata { 16 namespace gdata {
17 17
18 class GDataEntryProto; 18 class DriveEntryProto;
kinaba 2012/08/21 09:15:14 No declaration for DriveEntryProtoVector.
kochi 2012/08/21 09:37:34 Done.
19 class GDataFileSystemInterface; 19 class GDataFileSystemInterface;
20 20
21 // 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.
22 class GDataFileSystemProxy : public fileapi::RemoteFileSystemProxyInterface { 22 class GDataFileSystemProxy : public fileapi::RemoteFileSystemProxyInterface {
23 public: 23 public:
24 // |file_system| is the GDataFileSystem instance owned by GDataSystemService. 24 // |file_system| is the GDataFileSystem instance owned by GDataSystemService.
25 explicit GDataFileSystemProxy(GDataFileSystemInterface* file_system); 25 explicit GDataFileSystemProxy(GDataFileSystemInterface* file_system);
26 26
27 // fileapi::RemoteFileSystemProxyInterface overrides. 27 // fileapi::RemoteFileSystemProxyInterface overrides.
28 virtual void GetFileInfo( 28 virtual void GetFileInfo(
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 const fileapi::FileSystemOperationInterface::StatusCallback& callback, 93 const fileapi::FileSystemOperationInterface::StatusCallback& callback,
94 GDataFileError error); 94 GDataFileError error);
95 95
96 // Helper callback for relaying reply for metadata retrieval request to the 96 // Helper callback for relaying reply for metadata retrieval request to the
97 // calling thread. 97 // calling thread.
98 void OnGetMetadata( 98 void OnGetMetadata(
99 const FilePath& file_path, 99 const FilePath& file_path,
100 const fileapi::FileSystemOperationInterface::GetMetadataCallback& 100 const fileapi::FileSystemOperationInterface::GetMetadataCallback&
101 callback, 101 callback,
102 GDataFileError error, 102 GDataFileError error,
103 scoped_ptr<GDataEntryProto> entry_proto); 103 scoped_ptr<DriveEntryProto> entry_proto);
104 104
105 // Helper callback for relaying reply for GetEntryInfoByPath() to the 105 // Helper callback for relaying reply for GetEntryInfoByPath() to the
106 // calling thread. 106 // calling thread.
107 void OnGetEntryInfoByPath( 107 void OnGetEntryInfoByPath(
108 const FilePath& entry_path, 108 const FilePath& entry_path,
109 const fileapi::FileSystemOperationInterface::SnapshotFileCallback& 109 const fileapi::FileSystemOperationInterface::SnapshotFileCallback&
110 callback, 110 callback,
111 GDataFileError error, 111 GDataFileError error,
112 scoped_ptr<GDataEntryProto> entry_proto); 112 scoped_ptr<DriveEntryProto> entry_proto);
113 113
114 // Helper callback for relaying reply for ReadDirectory() to the calling 114 // Helper callback for relaying reply for ReadDirectory() to the calling
115 // thread. 115 // thread.
116 void OnReadDirectory( 116 void OnReadDirectory(
117 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback& 117 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback&
118 callback, 118 callback,
119 GDataFileError error, 119 GDataFileError error,
120 bool hide_hosted_documents, 120 bool hide_hosted_documents,
121 scoped_ptr<GDataEntryProtoVector> proto_entries); 121 scoped_ptr<DriveEntryProtoVector> proto_entries);
122 122
123 // Helper callback for relaying reply for CreateWritableSnapshotFile() to 123 // Helper callback for relaying reply for CreateWritableSnapshotFile() to
124 // the calling thread. 124 // the calling thread.
125 void OnCreateWritableSnapshotFile( 125 void OnCreateWritableSnapshotFile(
126 const FilePath& virtual_path, 126 const FilePath& virtual_path,
127 const fileapi::WritableSnapshotFile& callback, 127 const fileapi::WritableSnapshotFile& callback,
128 GDataFileError result, 128 GDataFileError result,
129 const FilePath& local_path); 129 const FilePath& local_path);
130 130
131 // Helper callback for closing the local cache file and committing the dirty 131 // Helper callback for closing the local cache file and committing the dirty
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // GDataFileSystem is owned by Profile, which outlives GDataFileSystemProxy, 181 // GDataFileSystem is owned by Profile, which outlives GDataFileSystemProxy,
182 // 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
183 // 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
184 // a raw pointer. 184 // a raw pointer.
185 GDataFileSystemInterface* file_system_; 185 GDataFileSystemInterface* file_system_;
186 }; 186 };
187 187
188 } // namespace chromeos 188 } // namespace chromeos
189 189
190 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ 190 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698