| 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/gdata/drive_function_remove.h" | 5 #include "chrome/browser/chromeos/gdata/drive_function_remove.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/gdata/drive_cache.h" | 7 #include "chrome/browser/chromeos/gdata/drive_cache.h" |
| 8 #include "chrome/browser/chromeos/gdata/drive_file_system.h" | 8 #include "chrome/browser/chromeos/gdata/drive_file_system.h" |
| 9 #include "chrome/browser/chromeos/gdata/drive.pb.h" | |
| 10 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" | 9 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" |
| 11 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" | 10 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" |
| 11 #include "chrome/browser/google_apis/drive.pb.h" |
| 12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 | 13 |
| 14 using content::BrowserThread; | 14 using content::BrowserThread; |
| 15 | 15 |
| 16 namespace gdata { | 16 namespace gdata { |
| 17 | 17 |
| 18 DriveFunctionRemove::DriveFunctionRemove(DriveServiceInterface* drive_service, | 18 DriveFunctionRemove::DriveFunctionRemove(DriveServiceInterface* drive_service, |
| 19 DriveFileSystem* file_system, | 19 DriveFileSystem* file_system, |
| 20 DriveCache* cache) | 20 DriveCache* cache) |
| 21 : drive_service_(drive_service), | 21 : drive_service_(drive_service), |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 DriveFileError error, | 98 DriveFileError error, |
| 99 const FilePath& directory_path) { | 99 const FilePath& directory_path) { |
| 100 if (error == DRIVE_FILE_OK) | 100 if (error == DRIVE_FILE_OK) |
| 101 file_system_->OnDirectoryChanged(directory_path); | 101 file_system_->OnDirectoryChanged(directory_path); |
| 102 | 102 |
| 103 if (!callback.is_null()) | 103 if (!callback.is_null()) |
| 104 callback.Run(error); | 104 callback.Run(error); |
| 105 } | 105 } |
| 106 | 106 |
| 107 } // namespace gdata | 107 } // namespace gdata |
| OLD | NEW |