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

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

Issue 10829233: Remove gdata:: from gdata_file_system_proxy.cc and .h (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: more namespace cleanup. 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Checks if a given |url| belongs to this file system. If it does, 84 // Checks if a given |url| belongs to this file system. If it does,
85 // the call will return true and fill in |file_path| with a file path of 85 // the call will return true and fill in |file_path| with a file path of
86 // a corresponding element within this file system. 86 // a corresponding element within this file system.
87 static bool ValidateUrl(const fileapi::FileSystemURL& url, 87 static bool ValidateUrl(const fileapi::FileSystemURL& url,
88 FilePath* file_path); 88 FilePath* file_path);
89 89
90 // Helper callback for relaying reply for status callbacks to the 90 // Helper callback for relaying reply for status callbacks to the
91 // calling thread. 91 // calling thread.
92 void OnStatusCallback( 92 void OnStatusCallback(
93 const fileapi::FileSystemOperationInterface::StatusCallback& callback, 93 const fileapi::FileSystemOperationInterface::StatusCallback& callback,
94 gdata::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<gdata::GDataEntryProto> entry_proto); 103 scoped_ptr<GDataEntryProto> 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<GDataEntryProto> 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<gdata::GDataEntryProtoVector> proto_entries); 121 scoped_ptr<GDataEntryProtoVector> 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698