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.cc

Issue 371883003: Files.app: Add an private API to get a download URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 int at_most_num_matches, 184 int at_most_num_matches,
185 const SearchMetadataCallback& callback) { 185 const SearchMetadataCallback& callback) {
186 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 186 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
187 } 187 }
188 188
189 void FakeFileSystem::GetAvailableSpace( 189 void FakeFileSystem::GetAvailableSpace(
190 const GetAvailableSpaceCallback& callback) { 190 const GetAvailableSpaceCallback& callback) {
191 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 191 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
192 } 192 }
193 193
194 void FakeFileSystem::GetShareUrl( 194 void FakeFileSystem::GetShareUrl(const base::FilePath& file_path,
195 const base::FilePath& file_path, 195 const GURL& embed_origin,
196 const GURL& embed_origin, 196 const GetUrlCallback& callback) {
197 const GetShareUrlCallback& callback) {
198 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 197 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
199 } 198 }
200 199
200 void FakeFileSystem::GetDownloadUrl(const base::FilePath& file_path,
201 const GetUrlCallback& callback) {
202 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
203 }
204
201 void FakeFileSystem::GetMetadata( 205 void FakeFileSystem::GetMetadata(
202 const GetFilesystemMetadataCallback& callback) { 206 const GetFilesystemMetadataCallback& callback) {
203 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 207 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
204 } 208 }
205 209
206 void FakeFileSystem::MarkCacheFileAsMounted( 210 void FakeFileSystem::MarkCacheFileAsMounted(
207 const base::FilePath& drive_file_path, 211 const base::FilePath& drive_file_path,
208 const MarkMountedCallback& callback) { 212 const MarkMountedCallback& callback) {
209 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 213 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
210 } 214 }
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 callback.Run(FILE_ERROR_OK, entry.Pass()); 386 callback.Run(FILE_ERROR_OK, entry.Pass());
383 return; 387 return;
384 } 388 }
385 } 389 }
386 390
387 callback.Run(FILE_ERROR_NOT_FOUND, scoped_ptr<ResourceEntry>()); 391 callback.Run(FILE_ERROR_NOT_FOUND, scoped_ptr<ResourceEntry>());
388 } 392 }
389 393
390 } // namespace test_util 394 } // namespace test_util
391 } // namespace drive 395 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698