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

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

Issue 15650008: drive: Rename drive::DriveClientContext to drive::ClientContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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_DRIVE_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const base::Time& last_modified_time, 105 const base::Time& last_modified_time,
106 const FileOperationCallback& callback) OVERRIDE; 106 const FileOperationCallback& callback) OVERRIDE;
107 virtual void Pin(const base::FilePath& file_path, 107 virtual void Pin(const base::FilePath& file_path,
108 const FileOperationCallback& callback) OVERRIDE; 108 const FileOperationCallback& callback) OVERRIDE;
109 virtual void Unpin(const base::FilePath& file_path, 109 virtual void Unpin(const base::FilePath& file_path,
110 const FileOperationCallback& callback) OVERRIDE; 110 const FileOperationCallback& callback) OVERRIDE;
111 virtual void GetFileByPath(const base::FilePath& file_path, 111 virtual void GetFileByPath(const base::FilePath& file_path,
112 const GetFileCallback& callback) OVERRIDE; 112 const GetFileCallback& callback) OVERRIDE;
113 virtual void GetFileByResourceId( 113 virtual void GetFileByResourceId(
114 const std::string& resource_id, 114 const std::string& resource_id,
115 const DriveClientContext& context, 115 const ClientContext& context,
116 const GetFileCallback& get_file_callback, 116 const GetFileCallback& get_file_callback,
117 const google_apis::GetContentCallback& get_content_callback) OVERRIDE; 117 const google_apis::GetContentCallback& get_content_callback) OVERRIDE;
118 virtual void GetFileContentByPath( 118 virtual void GetFileContentByPath(
119 const base::FilePath& file_path, 119 const base::FilePath& file_path,
120 const GetFileContentInitializedCallback& initialized_callback, 120 const GetFileContentInitializedCallback& initialized_callback,
121 const google_apis::GetContentCallback& get_content_callback, 121 const google_apis::GetContentCallback& get_content_callback,
122 const FileOperationCallback& completion_callback) OVERRIDE; 122 const FileOperationCallback& completion_callback) OVERRIDE;
123 virtual void UpdateFileByResourceId( 123 virtual void UpdateFileByResourceId(
124 const std::string& resource_id, 124 const std::string& resource_id,
125 const DriveClientContext& context, 125 const ClientContext& context,
126 const FileOperationCallback& callback) OVERRIDE; 126 const FileOperationCallback& callback) OVERRIDE;
127 virtual void GetResourceEntryByPath( 127 virtual void GetResourceEntryByPath(
128 const base::FilePath& file_path, 128 const base::FilePath& file_path,
129 const GetResourceEntryCallback& callback) OVERRIDE; 129 const GetResourceEntryCallback& callback) OVERRIDE;
130 virtual void ReadDirectoryByPath( 130 virtual void ReadDirectoryByPath(
131 const base::FilePath& directory_path, 131 const base::FilePath& directory_path,
132 const ReadDirectoryWithSettingCallback& callback) OVERRIDE; 132 const ReadDirectoryWithSettingCallback& callback) OVERRIDE;
133 virtual void RefreshDirectory( 133 virtual void RefreshDirectory(
134 const base::FilePath& directory_path, 134 const base::FilePath& directory_path,
135 const FileOperationCallback& callback) OVERRIDE; 135 const FileOperationCallback& callback) OVERRIDE;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 const GetResourceEntryWithFilePathCallback& callback, 298 const GetResourceEntryWithFilePathCallback& callback,
299 FileError error, 299 FileError error,
300 const base::FilePath& file_path, 300 const base::FilePath& file_path,
301 scoped_ptr<ResourceEntry> entry); 301 scoped_ptr<ResourceEntry> entry);
302 302
303 // Part of GetFileByResourceId(). Called after 303 // Part of GetFileByResourceId(). Called after
304 // ResourceMetadata::GetResourceEntryById() is complete. 304 // ResourceMetadata::GetResourceEntryById() is complete.
305 // |get_file_callback| must not be null. 305 // |get_file_callback| must not be null.
306 // |get_content_callback| may be null. 306 // |get_content_callback| may be null.
307 void GetFileByResourceIdAfterGetEntry( 307 void GetFileByResourceIdAfterGetEntry(
308 const DriveClientContext& context, 308 const ClientContext& context,
309 const GetFileCallback& get_file_callback, 309 const GetFileCallback& get_file_callback,
310 const google_apis::GetContentCallback& get_content_callback, 310 const google_apis::GetContentCallback& get_content_callback,
311 FileError error, 311 FileError error,
312 const base::FilePath& file_path, 312 const base::FilePath& file_path,
313 scoped_ptr<ResourceEntry> entry); 313 scoped_ptr<ResourceEntry> entry);
314 314
315 // Part of RefreshDirectory(). Called after 315 // Part of RefreshDirectory(). Called after
316 // GetResourceEntryByPath() is complete. 316 // GetResourceEntryByPath() is complete.
317 void RefreshDirectoryAfterGetResourceEntry( 317 void RefreshDirectoryAfterGetResourceEntry(
318 const base::FilePath& directory_path, 318 const base::FilePath& directory_path,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // Note: This should remain the last member so it'll be destroyed and 387 // Note: This should remain the last member so it'll be destroyed and
388 // invalidate the weak pointers before any other members are destroyed. 388 // invalidate the weak pointers before any other members are destroyed.
389 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; 389 base::WeakPtrFactory<FileSystem> weak_ptr_factory_;
390 390
391 DISALLOW_COPY_AND_ASSIGN(FileSystem); 391 DISALLOW_COPY_AND_ASSIGN(FileSystem);
392 }; 392 };
393 393
394 } // namespace drive 394 } // namespace drive
395 395
396 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ 396 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/fake_file_system.cc ('k') | chrome/browser/chromeos/drive/file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698