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

Side by Side Diff: webkit/browser/fileapi/async_file_test_helper.cc

Issue 17948002: Update Linux to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/run_loop.h" 6 #include "base/run_loop.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "webkit/browser/fileapi/async_file_test_helper.h" 8 #include "webkit/browser/fileapi/async_file_test_helper.h"
9 #include "webkit/browser/fileapi/file_system_context.h" 9 #include "webkit/browser/fileapi/file_system_context.h"
10 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" 10 #include "webkit/browser/fileapi/file_system_mount_point_provider.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 void CreateSnapshotFileCallback( 46 void CreateSnapshotFileCallback(
47 base::RunLoop* run_loop, 47 base::RunLoop* run_loop,
48 base::PlatformFileError* result_out, 48 base::PlatformFileError* result_out,
49 base::FilePath* platform_path_out, 49 base::FilePath* platform_path_out,
50 base::PlatformFileError result, 50 base::PlatformFileError result,
51 const base::PlatformFileInfo& file_info, 51 const base::PlatformFileInfo& file_info,
52 const base::FilePath& platform_path, 52 const base::FilePath& platform_path,
53 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref) { 53 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref) {
54 DCHECK(!file_ref); 54 DCHECK(!file_ref.get());
55 *result_out = result; 55 *result_out = result;
56 if (platform_path_out) 56 if (platform_path_out)
57 *platform_path_out = platform_path; 57 *platform_path_out = platform_path;
58 run_loop->Quit(); 58 run_loop->Quit();
59 } 59 }
60 60
61 void ReadDirectoryCallback(base::RunLoop* run_loop, 61 void ReadDirectoryCallback(base::RunLoop* run_loop,
62 base::PlatformFileError* result_out, 62 base::PlatformFileError* result_out,
63 FileEntryList* entries_out, 63 FileEntryList* entries_out,
64 base::PlatformFileError result, 64 base::PlatformFileError result,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 quota::QuotaStatusCode status = quota::kQuotaStatusUnknown; 230 quota::QuotaStatusCode status = quota::kQuotaStatusUnknown;
231 quota_manager->GetUsageAndQuota( 231 quota_manager->GetUsageAndQuota(
232 origin, 232 origin,
233 FileSystemTypeToQuotaStorageType(type), 233 FileSystemTypeToQuotaStorageType(type),
234 base::Bind(&DidGetUsageAndQuota, &status, usage, quota)); 234 base::Bind(&DidGetUsageAndQuota, &status, usage, quota));
235 base::MessageLoop::current()->RunUntilIdle(); 235 base::MessageLoop::current()->RunUntilIdle();
236 return status; 236 return status;
237 } 237 }
238 238
239 } // namespace fileapi 239 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/blob/blob_storage_controller.cc ('k') | webkit/browser/fileapi/sandbox_quota_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698