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

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

Issue 214363002: drive: Return cancel closure from FileSystem::GetFileContent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 6 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_FAKE_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 int64 length, 80 int64 length,
81 const FileOperationCallback& callback) OVERRIDE; 81 const FileOperationCallback& callback) OVERRIDE;
82 virtual void Pin(const base::FilePath& file_path, 82 virtual void Pin(const base::FilePath& file_path,
83 const FileOperationCallback& callback) OVERRIDE; 83 const FileOperationCallback& callback) OVERRIDE;
84 virtual void Unpin(const base::FilePath& file_path, 84 virtual void Unpin(const base::FilePath& file_path,
85 const FileOperationCallback& callback) OVERRIDE; 85 const FileOperationCallback& callback) OVERRIDE;
86 virtual void GetFile(const base::FilePath& file_path, 86 virtual void GetFile(const base::FilePath& file_path,
87 const GetFileCallback& callback) OVERRIDE; 87 const GetFileCallback& callback) OVERRIDE;
88 virtual void GetFileForSaving(const base::FilePath& file_path, 88 virtual void GetFileForSaving(const base::FilePath& file_path,
89 const GetFileCallback& callback) OVERRIDE; 89 const GetFileCallback& callback) OVERRIDE;
90 virtual void GetFileContent( 90 virtual base::Closure GetFileContent(
91 const base::FilePath& file_path, 91 const base::FilePath& file_path,
92 const GetFileContentInitializedCallback& initialized_callback, 92 const GetFileContentInitializedCallback& initialized_callback,
93 const google_apis::GetContentCallback& get_content_callback, 93 const google_apis::GetContentCallback& get_content_callback,
94 const FileOperationCallback& completion_callback) OVERRIDE; 94 const FileOperationCallback& completion_callback) OVERRIDE;
95 virtual void GetResourceEntry( 95 virtual void GetResourceEntry(
96 const base::FilePath& file_path, 96 const base::FilePath& file_path,
97 const GetResourceEntryCallback& callback) OVERRIDE; 97 const GetResourceEntryCallback& callback) OVERRIDE;
98 virtual void ReadDirectory( 98 virtual void ReadDirectory(
99 const base::FilePath& file_path, 99 const base::FilePath& file_path,
100 const ReadDirectoryCallback& callback) OVERRIDE; 100 const ReadDirectoryCallback& callback) OVERRIDE;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // invalidate the weak pointers before any other members are destroyed. 188 // invalidate the weak pointers before any other members are destroyed.
189 base::WeakPtrFactory<FakeFileSystem> weak_ptr_factory_; 189 base::WeakPtrFactory<FakeFileSystem> weak_ptr_factory_;
190 190
191 DISALLOW_COPY_AND_ASSIGN(FakeFileSystem); 191 DISALLOW_COPY_AND_ASSIGN(FakeFileSystem);
192 }; 192 };
193 193
194 } // namespace test_util 194 } // namespace test_util
195 } // namespace drive 195 } // namespace drive
196 196
197 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_ 197 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/dummy_file_system.cc ('k') | chrome/browser/chromeos/drive/fake_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698