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

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

Issue 10543037: gdata: Convert public synchronous functions in GDataFileSystem to asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Toni's comments @ 06/08/12 10:59AM PDT. Created 8 years, 6 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 #pragma once 7 #pragma once
8 8
9 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" 9 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h"
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Helper callback for relaying reply for metadata retrieval request to the 62 // Helper callback for relaying reply for metadata retrieval request to the
63 // calling thread. 63 // calling thread.
64 void OnGetMetadata( 64 void OnGetMetadata(
65 const FilePath& file_path, 65 const FilePath& file_path,
66 const fileapi::FileSystemOperationInterface::GetMetadataCallback& 66 const fileapi::FileSystemOperationInterface::GetMetadataCallback&
67 callback, 67 callback,
68 base::PlatformFileError error, 68 base::PlatformFileError error,
69 const FilePath& entry_path, 69 const FilePath& entry_path,
70 scoped_ptr<gdata::GDataEntryProto> entry_proto); 70 scoped_ptr<gdata::GDataEntryProto> entry_proto);
71 71
72 // Helper callback for relaying reply for GetEntryInfoByPathAsync() to the
73 // calling thread.
74 void OnGetEntryInfoByPathAsync(
75 const fileapi::FileSystemOperationInterface::SnapshotFileCallback&
76 callback,
77 base::PlatformFileError error,
78 const FilePath& entry_path,
79 scoped_ptr<GDataEntryProto> entry_proto);
80
72 // Helper callback for relaying reply for ReadDirectory() to the calling 81 // Helper callback for relaying reply for ReadDirectory() to the calling
73 // thread. 82 // thread.
74 void OnReadDirectory( 83 void OnReadDirectory(
75 bool hide_hosted_documents, 84 bool hide_hosted_documents,
76 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback& 85 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback&
77 callback, 86 callback,
78 base::PlatformFileError error, 87 base::PlatformFileError error,
79 scoped_ptr<GDataDirectoryProto> directory_proto); 88 scoped_ptr<GDataDirectoryProto> directory_proto);
80 89
81 // GDataFileSystemProxy is owned by Profile, which outlives 90 // GDataFileSystemProxy is owned by Profile, which outlives
82 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by 91 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by
83 // the time Profile is removed, the file manager is already gone). Hence 92 // the time Profile is removed, the file manager is already gone). Hence
84 // it's safe to use this as a raw pointer. 93 // it's safe to use this as a raw pointer.
85 GDataFileSystemInterface* file_system_; 94 GDataFileSystemInterface* file_system_;
86 }; 95 };
87 96
88 } // namespace chromeos 97 } // namespace chromeos
89 98
90 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ 99 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('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