| OLD | NEW |
| 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/create_file_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/create_file_operation.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "chrome/browser/chromeos/drive/drive.pb.h" | |
| 11 #include "chrome/browser/chromeos/drive/file_change.h" | 10 #include "chrome/browser/chromeos/drive/file_change.h" |
| 12 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" | 11 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" |
| 13 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 12 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
| 14 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 13 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
| 14 #include "components/drive/drive.pb.h" |
| 15 #include "net/base/mime_util.h" | 15 #include "net/base/mime_util.h" |
| 16 | 16 |
| 17 namespace drive { | 17 namespace drive { |
| 18 namespace file_system { | 18 namespace file_system { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 const char kMimeTypeOctetStream[] = "application/octet-stream"; | 22 const char kMimeTypeOctetStream[] = "application/octet-stream"; |
| 23 | 23 |
| 24 // Updates local state. | 24 // Updates local state. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 delegate_->OnFileChangedByOperation(changed_file); | 130 delegate_->OnFileChangedByOperation(changed_file); |
| 131 // Synchronize in the background. | 131 // Synchronize in the background. |
| 132 delegate_->OnEntryUpdatedByOperation(ClientContext(BACKGROUND), | 132 delegate_->OnEntryUpdatedByOperation(ClientContext(BACKGROUND), |
| 133 entry->local_id()); | 133 entry->local_id()); |
| 134 } | 134 } |
| 135 callback.Run(error); | 135 callback.Run(error); |
| 136 } | 136 } |
| 137 | 137 |
| 138 } // namespace file_system | 138 } // namespace file_system |
| 139 } // namespace drive | 139 } // namespace drive |
| OLD | NEW |