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

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

Issue 22335004: Add drive::FileSystem::GetFileByPathForSaving(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 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) 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const FileOperationCallback& callback) OVERRIDE; 84 const FileOperationCallback& callback) OVERRIDE;
85 virtual void TruncateFile(const base::FilePath& file_path, 85 virtual void TruncateFile(const base::FilePath& file_path,
86 int64 length, 86 int64 length,
87 const FileOperationCallback& callback) OVERRIDE; 87 const FileOperationCallback& callback) OVERRIDE;
88 virtual void Pin(const base::FilePath& file_path, 88 virtual void Pin(const base::FilePath& file_path,
89 const FileOperationCallback& callback) OVERRIDE; 89 const FileOperationCallback& callback) OVERRIDE;
90 virtual void Unpin(const base::FilePath& file_path, 90 virtual void Unpin(const base::FilePath& file_path,
91 const FileOperationCallback& callback) OVERRIDE; 91 const FileOperationCallback& callback) OVERRIDE;
92 virtual void GetFileByPath(const base::FilePath& file_path, 92 virtual void GetFileByPath(const base::FilePath& file_path,
93 const GetFileCallback& callback) OVERRIDE; 93 const GetFileCallback& callback) OVERRIDE;
94 virtual void GetFileByPathForSaving(const base::FilePath& file_path,
95 const GetFileCallback& callback) OVERRIDE;
94 virtual void GetFileContentByPath( 96 virtual void GetFileContentByPath(
95 const base::FilePath& file_path, 97 const base::FilePath& file_path,
96 const GetFileContentInitializedCallback& initialized_callback, 98 const GetFileContentInitializedCallback& initialized_callback,
97 const google_apis::GetContentCallback& get_content_callback, 99 const google_apis::GetContentCallback& get_content_callback,
98 const FileOperationCallback& completion_callback) OVERRIDE; 100 const FileOperationCallback& completion_callback) OVERRIDE;
99 virtual void GetResourceEntryByPath( 101 virtual void GetResourceEntryByPath(
100 const base::FilePath& file_path, 102 const base::FilePath& file_path,
101 const GetResourceEntryCallback& callback) OVERRIDE; 103 const GetResourceEntryCallback& callback) OVERRIDE;
102 virtual void ReadDirectoryByPath( 104 virtual void ReadDirectoryByPath(
103 const base::FilePath& file_path, 105 const base::FilePath& file_path,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // invalidate the weak pointers before any other members are destroyed. 193 // invalidate the weak pointers before any other members are destroyed.
192 base::WeakPtrFactory<FakeFileSystem> weak_ptr_factory_; 194 base::WeakPtrFactory<FakeFileSystem> weak_ptr_factory_;
193 195
194 DISALLOW_COPY_AND_ASSIGN(FakeFileSystem); 196 DISALLOW_COPY_AND_ASSIGN(FakeFileSystem);
195 }; 197 };
196 198
197 } // namespace test_util 199 } // namespace test_util
198 } // namespace drive 200 } // namespace drive
199 201
200 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_ 202 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/dummy_file_system.h ('k') | chrome/browser/chromeos/drive/fake_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698