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

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

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 #include "chrome/browser/chromeos/drive/fake_file_system.h" 5 #include "chrome/browser/chromeos/drive/fake_file_system.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void FakeFileSystem::Unpin(const base::FilePath& file_path, 127 void FakeFileSystem::Unpin(const base::FilePath& file_path,
128 const FileOperationCallback& callback) { 128 const FileOperationCallback& callback) {
129 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 129 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
130 } 130 }
131 131
132 void FakeFileSystem::GetFileByPath(const base::FilePath& file_path, 132 void FakeFileSystem::GetFileByPath(const base::FilePath& file_path,
133 const GetFileCallback& callback) { 133 const GetFileCallback& callback) {
134 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 134 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
135 } 135 }
136 136
137 void FakeFileSystem::GetFileByPathForSaving(const base::FilePath& file_path,
138 const GetFileCallback& callback) {
139 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
140 }
141
137 void FakeFileSystem::GetFileContentByPath( 142 void FakeFileSystem::GetFileContentByPath(
138 const base::FilePath& file_path, 143 const base::FilePath& file_path,
139 const GetFileContentInitializedCallback& initialized_callback, 144 const GetFileContentInitializedCallback& initialized_callback,
140 const google_apis::GetContentCallback& get_content_callback, 145 const google_apis::GetContentCallback& get_content_callback,
141 const FileOperationCallback& completion_callback) { 146 const FileOperationCallback& completion_callback) {
142 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 147 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
143 148
144 GetResourceEntryByPath( 149 GetResourceEntryByPath(
145 file_path, 150 file_path,
146 base::Bind(&FakeFileSystem::GetFileContentByPathAfterGetResourceEntry, 151 base::Bind(&FakeFileSystem::GetFileContentByPathAfterGetResourceEntry,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 callback.Run(FILE_ERROR_OK, entry.Pass()); 384 callback.Run(FILE_ERROR_OK, entry.Pass());
380 return; 385 return;
381 } 386 }
382 } 387 }
383 388
384 callback.Run(FILE_ERROR_NOT_FOUND, scoped_ptr<ResourceEntry>()); 389 callback.Run(FILE_ERROR_NOT_FOUND, scoped_ptr<ResourceEntry>());
385 } 390 }
386 391
387 } // namespace test_util 392 } // namespace test_util
388 } // namespace drive 393 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/fake_file_system.h ('k') | chrome/browser/chromeos/drive/file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698