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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system.cc

Issue 10533042: Remove chromeos::GDataFileSystem::GetOperationRegistry() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/gdata/gdata_file_system.h" 5 #include "chrome/browser/chromeos/gdata/gdata_file_system.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 2776 matching lines...) Expand 10 before | Expand all | Expand 10 after
2787 if (!feed.get()) { 2787 if (!feed.get()) {
2788 callback.Run(base::PLATFORM_FILE_ERROR_FAILED, -1, -1); 2788 callback.Run(base::PLATFORM_FILE_ERROR_FAILED, -1, -1);
2789 return; 2789 return;
2790 } 2790 }
2791 2791
2792 callback.Run(base::PLATFORM_FILE_OK, 2792 callback.Run(base::PLATFORM_FILE_OK,
2793 feed->quota_bytes_total(), 2793 feed->quota_bytes_total(),
2794 feed->quota_bytes_used()); 2794 feed->quota_bytes_used());
2795 } 2795 }
2796 2796
2797 GDataOperationRegistry* GDataFileSystem::GetOperationRegistry() {
2798 return documents_service_->operation_registry();
2799 }
2800
2801 void GDataFileSystem::OnCreateDirectoryCompleted( 2797 void GDataFileSystem::OnCreateDirectoryCompleted(
2802 const CreateDirectoryParams& params, 2798 const CreateDirectoryParams& params,
2803 GDataErrorCode status, 2799 GDataErrorCode status,
2804 scoped_ptr<base::Value> data) { 2800 scoped_ptr<base::Value> data) {
2805 2801
2806 base::PlatformFileError error = GDataToPlatformError(status); 2802 base::PlatformFileError error = GDataToPlatformError(status);
2807 if (error != base::PLATFORM_FILE_OK) { 2803 if (error != base::PLATFORM_FILE_OK) {
2808 if (!params.callback.is_null()) 2804 if (!params.callback.is_null())
2809 params.callback.Run(error); 2805 params.callback.Run(error);
2810 2806
(...skipping 2432 matching lines...) Expand 10 before | Expand all | Expand 10 after
5243 base::PlatformFileError error, 5239 base::PlatformFileError error,
5244 const std::string& resource_id, 5240 const std::string& resource_id,
5245 const std::string& md5) { 5241 const std::string& md5) {
5246 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 5242 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
5247 5243
5248 if (!callback.is_null()) 5244 if (!callback.is_null())
5249 callback.Run(error); 5245 callback.Run(error);
5250 } 5246 }
5251 5247
5252 } // namespace gdata 5248 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.h ('k') | chrome/browser/chromeos/gdata/gdata_protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698