OLD | NEW |
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/drive/file_system.h" | 5 #include "chrome/browser/chromeos/drive/file_system.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "chrome/browser/chromeos/drive/file_system/update_operation.h" | 27 #include "chrome/browser/chromeos/drive/file_system/update_operation.h" |
28 #include "chrome/browser/chromeos/drive/file_system_observer.h" | 28 #include "chrome/browser/chromeos/drive/file_system_observer.h" |
29 #include "chrome/browser/chromeos/drive/file_system_util.h" | 29 #include "chrome/browser/chromeos/drive/file_system_util.h" |
30 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 30 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
31 #include "chrome/browser/chromeos/drive/logging.h" | 31 #include "chrome/browser/chromeos/drive/logging.h" |
32 #include "chrome/browser/chromeos/drive/remove_stale_cache_files.h" | 32 #include "chrome/browser/chromeos/drive/remove_stale_cache_files.h" |
33 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" | 33 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
34 #include "chrome/browser/chromeos/drive/search_metadata.h" | 34 #include "chrome/browser/chromeos/drive/search_metadata.h" |
35 #include "chrome/browser/chromeos/drive/sync_client.h" | 35 #include "chrome/browser/chromeos/drive/sync_client.h" |
36 #include "chrome/browser/drive/drive_service_interface.h" | 36 #include "chrome/browser/drive/drive_service_interface.h" |
37 #include "chrome/browser/google_apis/drive_api_parser.h" | |
38 #include "chrome/common/pref_names.h" | 37 #include "chrome/common/pref_names.h" |
39 #include "content/public/browser/browser_thread.h" | 38 #include "content/public/browser/browser_thread.h" |
| 39 #include "google_apis/drive/drive_api_parser.h" |
40 | 40 |
41 using content::BrowserThread; | 41 using content::BrowserThread; |
42 | 42 |
43 namespace drive { | 43 namespace drive { |
44 namespace { | 44 namespace { |
45 | 45 |
46 // Gets a ResourceEntry from the metadata, and overwrites its file info when the | 46 // Gets a ResourceEntry from the metadata, and overwrites its file info when the |
47 // cached file is dirty. | 47 // cached file is dirty. |
48 FileError GetLocallyStoredResourceEntry( | 48 FileError GetLocallyStoredResourceEntry( |
49 internal::ResourceMetadata* resource_metadata, | 49 internal::ResourceMetadata* resource_metadata, |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 OpenMode open_mode, | 994 OpenMode open_mode, |
995 const std::string& mime_type, | 995 const std::string& mime_type, |
996 const OpenFileCallback& callback) { | 996 const OpenFileCallback& callback) { |
997 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 997 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
998 DCHECK(!callback.is_null()); | 998 DCHECK(!callback.is_null()); |
999 | 999 |
1000 open_file_operation_->OpenFile(file_path, open_mode, mime_type, callback); | 1000 open_file_operation_->OpenFile(file_path, open_mode, mime_type, callback); |
1001 } | 1001 } |
1002 | 1002 |
1003 } // namespace drive | 1003 } // namespace drive |
OLD | NEW |