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

Side by Side Diff: chrome/browser/chromeos/drive/file_system/download_operation.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/file_system/download_operation.h" 5 #include "chrome/browser/chromeos/drive/file_system/download_operation.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/task_runner_util.h" 10 #include "base/task_runner_util.h"
11 #include "chrome/browser/chromeos/drive/drive.pb.h" 11 #include "chrome/browser/chromeos/drive/drive.pb.h"
12 #include "chrome/browser/chromeos/drive/file_cache.h" 12 #include "chrome/browser/chromeos/drive/file_cache.h"
13 #include "chrome/browser/chromeos/drive/file_errors.h" 13 #include "chrome/browser/chromeos/drive/file_errors.h"
14 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" 14 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h"
15 #include "chrome/browser/chromeos/drive/file_system_util.h" 15 #include "chrome/browser/chromeos/drive/file_system_util.h"
16 #include "chrome/browser/chromeos/drive/job_scheduler.h" 16 #include "chrome/browser/chromeos/drive/job_scheduler.h"
17 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" 17 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h"
18 #include "chrome/browser/chromeos/drive/resource_metadata.h" 18 #include "chrome/browser/chromeos/drive/resource_metadata.h"
19 #include "chrome/browser/google_apis/gdata_errorcode.h"
20 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "google_apis/drive/gdata_errorcode.h"
21 21
22 using content::BrowserThread; 22 using content::BrowserThread;
23 23
24 namespace drive { 24 namespace drive {
25 namespace file_system { 25 namespace file_system {
26 namespace { 26 namespace {
27 27
28 // If the resource is a hosted document, creates a JSON file representing the 28 // If the resource is a hosted document, creates a JSON file representing the
29 // resource locally, and returns FILE_ERROR_OK with |cache_file_path| storing 29 // resource locally, and returns FILE_ERROR_OK with |cache_file_path| storing
30 // the path to the JSON file. 30 // the path to the JSON file.
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 observer_->OnDirectoryChangedByOperation(file_path.DirName()); 481 observer_->OnDirectoryChangedByOperation(file_path.DirName());
482 params->OnComplete(*cache_file_path); 482 params->OnComplete(*cache_file_path);
483 } 483 }
484 484
485 void DownloadOperation::CancelJob(JobID job_id) { 485 void DownloadOperation::CancelJob(JobID job_id) {
486 scheduler_->CancelJob(job_id); 486 scheduler_->CancelJob(job_id);
487 } 487 }
488 488
489 } // namespace file_system 489 } // namespace file_system
490 } // namespace drive 490 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698