OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/file_system_provider/fileapi/file_stream_reade
r.h" | 5 #include "chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reade
r.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | |
8 #include "base/files/file.h" | 7 #include "base/files/file.h" |
9 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/trace_event/trace_event.h" |
10 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h" | 10 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h" |
11 #include "chrome/browser/chromeos/file_system_provider/fileapi/provider_async_fi
le_util.h" | 11 #include "chrome/browser/chromeos/file_system_provider/fileapi/provider_async_fi
le_util.h" |
12 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" | 12 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" |
13 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 13 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
17 | 17 |
18 using content::BrowserThread; | 18 using content::BrowserThread; |
19 | 19 |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 callback.Run(net::ERR_UPLOAD_FILE_CHANGED); | 480 callback.Run(net::ERR_UPLOAD_FILE_CHANGED); |
481 return; | 481 return; |
482 } | 482 } |
483 | 483 |
484 DCHECK_EQ(base::File::FILE_OK, result); | 484 DCHECK_EQ(base::File::FILE_OK, result); |
485 callback.Run(metadata->size); | 485 callback.Run(metadata->size); |
486 } | 486 } |
487 | 487 |
488 } // namespace file_system_provider | 488 } // namespace file_system_provider |
489 } // namespace chromeos | 489 } // namespace chromeos |
OLD | NEW |