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/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "chrome/browser/chromeos/drive/drive.pb.h" | 10 #include "chrome/browser/chromeos/drive/drive.pb.h" |
11 #include "chrome/browser/chromeos/drive/file_change.h" | 11 #include "chrome/browser/chromeos/drive/file_change.h" |
12 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" | 12 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" |
13 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 13 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "net/base/mime_util.h" | 15 #include "net/base/mime_util.h" |
16 | 16 |
17 using content::BrowserThread; | 17 using content::BrowserThread; |
18 | 18 |
19 namespace drive { | 19 namespace drive { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 changed_file.Update( | 131 changed_file.Update( |
132 file_path, FileChange::FILE_TYPE_FILE, FileChange::ADD_OR_UPDATE); | 132 file_path, FileChange::FILE_TYPE_FILE, FileChange::ADD_OR_UPDATE); |
133 delegate_->OnFileChangedByOperation(changed_file); | 133 delegate_->OnFileChangedByOperation(changed_file); |
134 delegate_->OnEntryUpdatedByOperation(entry->local_id()); | 134 delegate_->OnEntryUpdatedByOperation(entry->local_id()); |
135 } | 135 } |
136 callback.Run(error); | 136 callback.Run(error); |
137 } | 137 } |
138 | 138 |
139 } // namespace file_system | 139 } // namespace file_system |
140 } // namespace drive | 140 } // namespace drive |
OLD | NEW |