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

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

Issue 10873005: Rename GDataDirectoryService to DriveResourceMetadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 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) 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_uploader.h" 5 #include "chrome/browser/chromeos/gdata/gdata_uploader.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" 11 #include "chrome/browser/chromeos/gdata/drive_service_interface.h"
12 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h"
13 #include "chrome/browser/chromeos/gdata/gdata_upload_file_info.h" 12 #include "chrome/browser/chromeos/gdata/gdata_upload_file_info.h"
14 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" 13 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
15 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
16 #include "content/public/browser/download_item.h" 15 #include "content/public/browser/download_item.h"
17 #include "net/base/file_stream.h" 16 #include "net/base/file_stream.h"
18 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
19 18
20 using content::BrowserThread; 19 using content::BrowserThread;
21 20
22 namespace { 21 namespace {
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 if (!callback.is_null()) 474 if (!callback.is_null())
476 callback.Run(error, upload_file_info.Pass()); 475 callback.Run(error, upload_file_info.Pass());
477 } 476 }
478 477
479 void GDataUploader::RemoveUpload(int upload_id) { 478 void GDataUploader::RemoveUpload(int upload_id) {
480 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 479 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
481 pending_uploads_.erase(upload_id); 480 pending_uploads_.erase(upload_id);
482 } 481 }
483 482
484 } // namespace gdata 483 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_test_util.h ('k') | chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698