OLD | NEW |
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 "chrome/browser/chromeos/drive/file_system/create_directory_operation.h
" | 5 #include "chrome/browser/chromeos/drive/file_system/create_directory_operation.h
" |
6 | 6 |
7 #include "chrome/browser/chromeos/drive/drive.pb.h" | 7 #include "chrome/browser/chromeos/drive/drive.pb.h" |
8 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" | 8 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" |
9 #include "chrome/browser/chromeos/drive/file_system_util.h" | 9 #include "chrome/browser/chromeos/drive/file_system_util.h" |
10 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 10 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
11 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" | 11 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
12 #include "chrome/browser/google_apis/gdata_errorcode.h" | |
13 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | |
14 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "google_apis/drive/gdata_errorcode.h" |
| 14 #include "google_apis/drive/gdata_wapi_parser.h" |
15 | 15 |
16 using content::BrowserThread; | 16 using content::BrowserThread; |
17 | 17 |
18 namespace drive { | 18 namespace drive { |
19 namespace file_system { | 19 namespace file_system { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // Part of CreateDirectoryRecursively(). Adds an |entry| for new directory | 23 // Part of CreateDirectoryRecursively(). Adds an |entry| for new directory |
24 // to |metadata|, and return the status. If succeeded, |file_path| will store | 24 // to |metadata|, and return the status. If succeeded, |file_path| will store |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 callback.Run(FILE_ERROR_OK); | 251 callback.Run(FILE_ERROR_OK); |
252 return; | 252 return; |
253 } | 253 } |
254 | 254 |
255 // Create descendant directories. | 255 // Create descendant directories. |
256 CreateDirectoryRecursively(resource_id, remaining_path, callback); | 256 CreateDirectoryRecursively(resource_id, remaining_path, callback); |
257 } | 257 } |
258 | 258 |
259 } // namespace file_system | 259 } // namespace file_system |
260 } // namespace drive | 260 } // namespace drive |
OLD | NEW |